Change button to label
This commit is contained in:
parent
a795200245
commit
9242681bb2
@ -59,24 +59,19 @@ impl OutputsSettings {
|
|||||||
.monospace(),
|
.monospace(),
|
||||||
));
|
));
|
||||||
ui.label("Display Power Management");
|
ui.label("Display Power Management");
|
||||||
if ui
|
ui.label(WidgetText::RichText(
|
||||||
.button(WidgetText::RichText(
|
RichText::new(match output.display_power_managment {
|
||||||
RichText::new(match output.display_power_managment {
|
true => "On",
|
||||||
true => "On",
|
false => "Off",
|
||||||
false => "Off",
|
})
|
||||||
})
|
.color(match output.display_power_managment {
|
||||||
.color(match output.display_power_managment {
|
true => Color32::GREEN,
|
||||||
true => Color32::GREEN,
|
false => Color32::GRAY,
|
||||||
false => Color32::GRAY,
|
})
|
||||||
})
|
.monospace()
|
||||||
.monospace()
|
.code()
|
||||||
.code()
|
.strong(),
|
||||||
.strong(),
|
));
|
||||||
))
|
|
||||||
.clicked()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user