update styling
This commit is contained in:
parent
e5f135a76e
commit
2efc93a38c
1 changed files with 9 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use cosmic::applet::button_theme;
|
use cosmic::applet::{menu_button, padded_control};
|
||||||
use cosmic::iced::wayland::popup::{destroy_popup, get_popup};
|
use cosmic::iced::wayland::popup::{destroy_popup, get_popup};
|
||||||
use cosmic::iced::{
|
use cosmic::iced::{
|
||||||
time,
|
time,
|
||||||
|
|
@ -7,7 +7,6 @@ use cosmic::iced::{
|
||||||
};
|
};
|
||||||
use cosmic::iced_core::alignment::{Horizontal, Vertical};
|
use cosmic::iced_core::alignment::{Horizontal, Vertical};
|
||||||
use cosmic::iced_style::application;
|
use cosmic::iced_style::application;
|
||||||
use cosmic::theme;
|
|
||||||
use cosmic::widget::{button, container, divider, grid, Button, Grid, Space};
|
use cosmic::widget::{button, container, divider, grid, Button, Grid, Space};
|
||||||
use cosmic::{app, applet::cosmic_panel_config::PanelAnchor, Command};
|
use cosmic::{app, applet::cosmic_panel_config::PanelAnchor, Command};
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
|
@ -217,7 +216,7 @@ impl cosmic::Application for Window {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.on_press(Message::TogglePopup)
|
.on_press(Message::TogglePopup)
|
||||||
.style(theme::Button::Text);
|
.style(cosmic::theme::Button::AppletIcon);
|
||||||
|
|
||||||
if let Some(tracker) = self.rectangle_tracker.as_ref() {
|
if let Some(tracker) = self.rectangle_tracker.as_ref() {
|
||||||
tracker.container(0, button).into()
|
tracker.container(0, button).into()
|
||||||
|
|
@ -277,13 +276,14 @@ impl cosmic::Application for Window {
|
||||||
]
|
]
|
||||||
.padding([12, 20]),
|
.padding([12, 20]),
|
||||||
calender.padding([0, 12].into()),
|
calender.padding([0, 12].into()),
|
||||||
container(divider::horizontal::light())
|
padded_control(divider::horizontal::default()),
|
||||||
.padding([12, 12])
|
/*container(divider::horizontal::light())
|
||||||
.width(Length::Fill),
|
.padding([12, 12])
|
||||||
button(text(fl!("datetime-settings")).size(14))
|
.width(Length::Fill),*/
|
||||||
.style(button_theme())
|
menu_button(text(fl!("datetime-settings")).size(14))
|
||||||
|
/*.style(button_theme())
|
||||||
.padding([8, 24])
|
.padding([8, 24])
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)*/
|
||||||
.on_press(Message::OpenDateTimeSettings),
|
.on_press(Message::OpenDateTimeSettings),
|
||||||
]
|
]
|
||||||
.padding([8, 0]);
|
.padding([8, 0]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue