sculpt: use radio button for APs and launchers

This commit is contained in:
Norman Feske 2019-02-22 14:57:39 +01:00 committed by Christian Helmuth
parent 6110e6561c
commit 852c319399
2 changed files with 6 additions and 4 deletions

View File

@ -27,14 +27,15 @@ void Sculpt::Network_dialog::_gen_access_point(Xml_generator &xml,
xml.node("hbox", [&] () {
gen_named_node(xml, "button", "button", [&] () {
xml.attribute("style", "radio");
if (_wifi_connection.connected())
xml.attribute("selected", "yes");
else
_ap_item.gen_button_attr(xml, ap.bssid);
xml.node("label", [&] () {
xml.attribute("text", " "); }); });
xml.node("hbox", [&] () { });
});
gen_named_node(xml, "label", "ssid", [&] () {
xml.attribute("text", String<20>(" ", ap.ssid)); });

View File

@ -76,9 +76,10 @@ struct Sculpt::Popup_dialog
xml.node("hbox", [&] () {
gen_named_node(xml, "button", "button", [&] () {
xml.attribute("style", "radio");
_item.gen_button_attr(xml, info.path);
xml.node("label", [&] () {
xml.attribute("text", " "); }); });
xml.node("hbox", [&] () { });
});
gen_named_node(xml, "label", "name", [&] () {
xml.attribute("text", Path(" ", info.path)); });
});