fix(network): add dividers and network settings button
This commit is contained in:
parent
df8ab735a9
commit
d8a806b109
2 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ connected = Connected
|
||||||
connecting = Connecting
|
connecting = Connecting
|
||||||
connect = Connect
|
connect = Connect
|
||||||
cancel = Cancel
|
cancel = Cancel
|
||||||
|
settings = Network Settings...
|
||||||
visible-wireless-networks = Visible Wireless Networks
|
visible-wireless-networks = Visible Wireless Networks
|
||||||
enter-password = Enter the password or encryption key
|
enter-password = Enter the password or encryption key
|
||||||
router-wps-button = You can also connect by pressing the "WPS" button on the router
|
router-wps-button = You can also connect by pressing the "WPS" button on the router
|
||||||
|
|
|
||||||
|
|
@ -651,6 +651,7 @@ impl cosmic::Application for CosmicNetworkApplet {
|
||||||
.height(Length::Fixed(24.0)),
|
.height(Length::Fixed(24.0)),
|
||||||
])
|
])
|
||||||
.on_press(Message::ToggleVisibleNetworks);
|
.on_press(Message::ToggleVisibleNetworks);
|
||||||
|
content = content.push(padded_control(divider::horizontal::default()));
|
||||||
content = content.push(available_connections_btn);
|
content = content.push(available_connections_btn);
|
||||||
}
|
}
|
||||||
if self.show_visible_networks {
|
if self.show_visible_networks {
|
||||||
|
|
@ -782,6 +783,8 @@ impl cosmic::Application for CosmicNetworkApplet {
|
||||||
.push(scrollable(Column::with_children(list_col)).height(Length::Fixed(300.0)));
|
.push(scrollable(Column::with_children(list_col)).height(Length::Fixed(300.0)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
content = content.push(padded_control(divider::horizontal::default()));
|
||||||
|
content = content.push(menu_button(text(fl!("settings")).size(14)));
|
||||||
self.core
|
self.core
|
||||||
.applet
|
.applet
|
||||||
.popup_container(content.padding([8, 0, 8, 0]))
|
.popup_container(content.padding([8, 0, 8, 0]))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue