mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
sculpt: append "..." to non-immediate buttons
Append "..." to button labels whenever the button does not perform an immediate action but merely toggles user-interface elements. This tells the user that the button can be pressed without risk.
This commit is contained in:
parent
852c319399
commit
1afec11dfc
@ -147,9 +147,9 @@ void Sculpt::Storage_dialog::_gen_partition_operations(Xml_generator &xml
|
||||
xml.attribute("selected", "yes");
|
||||
|
||||
if (whole_device) {
|
||||
xml.node("label", [&] () { xml.attribute("text", "Format device"); });
|
||||
xml.node("label", [&] () { xml.attribute("text", "Format device ..."); });
|
||||
} else {
|
||||
xml.node("label", [&] () { xml.attribute("text", "Format partition"); });
|
||||
xml.node("label", [&] () { xml.attribute("text", "Format partition ..."); });
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -162,7 +162,7 @@ void Sculpt::Storage_dialog::_gen_partition_operations(Xml_generator &xml
|
||||
if (partition.expand_in_progress())
|
||||
xml.attribute("selected", "yes");
|
||||
|
||||
xml.node("label", [&] () { xml.attribute("text", "Expand"); });
|
||||
xml.node("label", [&] () { xml.attribute("text", "Expand ..."); });
|
||||
});
|
||||
}
|
||||
|
||||
@ -390,7 +390,7 @@ void Sculpt::Storage_dialog::_gen_ram_fs(Xml_generator &xml) const
|
||||
xml.node("button", [&] () {
|
||||
_operation_item.gen_button_attr(xml, "reset");
|
||||
|
||||
xml.node("label", [&] () { xml.attribute("text", "Reset"); });
|
||||
xml.node("label", [&] () { xml.attribute("text", "Reset ..."); });
|
||||
});
|
||||
|
||||
if (_operation_item.selected("reset")) {
|
||||
|
Loading…
Reference in New Issue
Block a user