Simplified the navbar events
- Made padding smaller to mach mockups
This commit is contained in:
parent
ff2f3e574c
commit
1eee5513bd
4 changed files with 60 additions and 67 deletions
|
|
@ -10,6 +10,6 @@ pub fn main() -> cosmic::iced::Result {
|
|||
let mut settings = settings();
|
||||
settings.window.min_size = Some((600, 300));
|
||||
// TODO: Window resize handles not functioning yet
|
||||
settings.window.decorations = false;
|
||||
settings.window.decorations = true;
|
||||
Window::run(settings)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -159,12 +159,22 @@ impl Application for Window {
|
|||
.title("Personalization")
|
||||
.icon("applications-system"),
|
||||
vec![
|
||||
nav_bar_item().title("Desktop Session").icon("desktop-panel"),
|
||||
nav_bar_item().title("Wallpaper").icon("preferences-desktop-wallpaper"),
|
||||
nav_bar_item()
|
||||
.title("Desktop Session")
|
||||
.icon("desktop-panel"),
|
||||
nav_bar_item()
|
||||
.title("Wallpaper")
|
||||
.icon("preferences-desktop-wallpaper"),
|
||||
nav_bar_item().title("Appearance").icon("cs-color"),
|
||||
nav_bar_item().title("Dock & Top Panel").icon("desktop-panel"),
|
||||
nav_bar_item().title("Workspaces").icon("preferences-system-windows"),
|
||||
nav_bar_item().title("Notifications").icon("cs-notifications"),
|
||||
nav_bar_item()
|
||||
.title("Dock & Top Panel")
|
||||
.icon("desktop-panel"),
|
||||
nav_bar_item()
|
||||
.title("Workspaces")
|
||||
.icon("preferences-system-windows"),
|
||||
nav_bar_item()
|
||||
.title("Notifications")
|
||||
.icon("cs-notifications"),
|
||||
],
|
||||
),
|
||||
(
|
||||
|
|
@ -280,7 +290,7 @@ impl Application for Window {
|
|||
);
|
||||
|
||||
container(row(widgets))
|
||||
.padding([16, 16])
|
||||
.padding(12)
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill)
|
||||
.into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue