Skip to content

Commit

Permalink
fix(audio): fix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
git-f0x committed Sep 21, 2024
1 parent 0c37473 commit 3a6b1b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions cosmic-applet-audio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,7 @@ impl cosmic::Application for Audio {
)
.text_size(14)
.width(Length::Fill)
)
.padding([8, 24]),
),
padded_control(divider::horizontal::default()).padding([space_xxs, space_s]),
menu_button(text::body(fl!("sound-settings"))).on_press(Message::OpenSettings)
]
Expand Down
13 changes: 8 additions & 5 deletions cosmic-applet-power/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ impl cosmic::Application for Power {

fn view_window(&self, id: window::Id) -> Element<Message> {
let Spacing {
space_xxs, space_s, ..
space_xxs,
space_s,
space_m,
..
} = theme::active().cosmic().spacing;

if matches!(self.popup, Some(p) if p == id) {
Expand All @@ -264,7 +267,7 @@ impl cosmic::Application for Power {
text::body(fl!("lock-screen-shortcut")),
]
.align_items(Alignment::Center)
.spacing(8)
.spacing(space_xxs)
)
.on_press(Message::Action(PowerAction::Lock)),
menu_button(
Expand All @@ -275,7 +278,7 @@ impl cosmic::Application for Power {
text::body(fl!("log-out-shortcut")),
]
.align_items(Alignment::Center)
.spacing(8)
.spacing(space_xxs)
)
.on_press(Message::Action(PowerAction::LogOut)),
];
Expand All @@ -288,8 +291,8 @@ impl cosmic::Application for Power {
power_buttons("system-shutdown-symbolic", fl!("shutdown"))
.on_press(Message::Action(PowerAction::Shutdown)),
]
.spacing(24)
.padding([0, 24]);
.spacing(space_m)
.padding([0, space_m]);

let content = column![
settings,
Expand Down

0 comments on commit 3a6b1b6

Please sign in to comment.