sculpt: use radio button for APs and launchers
This commit is contained in:
parent
6110e6561c
commit
852c319399
|
@ -27,14 +27,15 @@ void Sculpt::Network_dialog::_gen_access_point(Xml_generator &xml,
|
||||||
|
|
||||||
xml.node("hbox", [&] () {
|
xml.node("hbox", [&] () {
|
||||||
gen_named_node(xml, "button", "button", [&] () {
|
gen_named_node(xml, "button", "button", [&] () {
|
||||||
|
xml.attribute("style", "radio");
|
||||||
|
|
||||||
if (_wifi_connection.connected())
|
if (_wifi_connection.connected())
|
||||||
xml.attribute("selected", "yes");
|
xml.attribute("selected", "yes");
|
||||||
else
|
else
|
||||||
_ap_item.gen_button_attr(xml, ap.bssid);
|
_ap_item.gen_button_attr(xml, ap.bssid);
|
||||||
|
|
||||||
xml.node("label", [&] () {
|
xml.node("hbox", [&] () { });
|
||||||
xml.attribute("text", " "); }); });
|
});
|
||||||
|
|
||||||
gen_named_node(xml, "label", "ssid", [&] () {
|
gen_named_node(xml, "label", "ssid", [&] () {
|
||||||
xml.attribute("text", String<20>(" ", ap.ssid)); });
|
xml.attribute("text", String<20>(" ", ap.ssid)); });
|
||||||
|
|
|
@ -76,9 +76,10 @@ struct Sculpt::Popup_dialog
|
||||||
|
|
||||||
xml.node("hbox", [&] () {
|
xml.node("hbox", [&] () {
|
||||||
gen_named_node(xml, "button", "button", [&] () {
|
gen_named_node(xml, "button", "button", [&] () {
|
||||||
|
xml.attribute("style", "radio");
|
||||||
_item.gen_button_attr(xml, info.path);
|
_item.gen_button_attr(xml, info.path);
|
||||||
xml.node("label", [&] () {
|
xml.node("hbox", [&] () { });
|
||||||
xml.attribute("text", " "); }); });
|
});
|
||||||
gen_named_node(xml, "label", "name", [&] () {
|
gen_named_node(xml, "label", "name", [&] () {
|
||||||
xml.attribute("text", Path(" ", info.path)); });
|
xml.attribute("text", Path(" ", info.path)); });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user