wip: blur

This commit is contained in:
Ashley Wulber 2026-04-29 11:54:20 -04:00
parent 0441c67b10
commit 405fddda2d
18 changed files with 706 additions and 495 deletions

View file

@ -202,24 +202,20 @@ impl cosmic::Application for IcedWorkspacesApplet {
let content = column!(content, space::horizontal().width(Length::Fixed(width)))
.align_x(Alignment::Center);
let btn = button(
container(content)
.align_x(Alignment::Center)
.align_y(Alignment::Center),
)
.padding(if horizontal {
[0, self.core.applet.suggested_padding(true).1]
} else {
[self.core.applet.suggested_padding(true).1, 0]
})
.on_press(
if w.state.contains(ext_workspace_handle_v1::State::Active) {
Message::WorkspaceOverview
let btn = button(content)
.padding(if horizontal {
[0, self.core.applet.suggested_padding(true).1]
} else {
Message::WorkspacePressed(w.handle.clone())
},
)
.padding(0);
[self.core.applet.suggested_padding(true).1, 0]
})
.on_press(
if w.state.contains(ext_workspace_handle_v1::State::Active) {
Message::WorkspaceOverview
} else {
Message::WorkspacePressed(w.handle.clone())
},
)
.padding(0);
btn.class(
if w.state.contains(ext_workspace_handle_v1::State::Active) {