fix(network): add dividers and network settings button

This commit is contained in:
Ashley Wulber 2023-10-25 13:32:28 -04:00 committed by Ashley Wulber
parent df8ab735a9
commit d8a806b109
2 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,7 @@ connected = Connected
connecting = Connecting
connect = Connect
cancel = Cancel
settings = Network Settings...
visible-wireless-networks = Visible Wireless Networks
enter-password = Enter the password or encryption key
router-wps-button = You can also connect by pressing the "WPS" button on the router

View file

@ -651,6 +651,7 @@ impl cosmic::Application for CosmicNetworkApplet {
.height(Length::Fixed(24.0)),
])
.on_press(Message::ToggleVisibleNetworks);
content = content.push(padded_control(divider::horizontal::default()));
content = content.push(available_connections_btn);
}
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)));
}
}
content = content.push(padded_control(divider::horizontal::default()));
content = content.push(menu_button(text(fl!("settings")).size(14)));
self.core
.applet
.popup_container(content.padding([8, 0, 8, 0]))