From ed23949a957790da8105dc39393588aa87be273f Mon Sep 17 00:00:00 2001 From: Samuel Onoja Date: Mon, 5 Oct 2026 21:54:54 +0100 Subject: [PATCH] style MPRIS bar border and background Assign the result back to bar_style.border instead of mutating in place, and tint the media bar background with the palette border color. --- shell/ferese-shell/src/status_ui/media.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/ferese-shell/src/status_ui/media.rs b/shell/ferese-shell/src/status_ui/media.rs index a4d704d..a553e54 100644 --- a/shell/ferese-shell/src/status_ui/media.rs +++ b/shell/ferese-shell/src/status_ui/media.rs @@ -1,5 +1,5 @@ use cosmic::iced::border::Shape as BorderShape; -use cosmic::iced::{Alignment, Border, Length, Rectangle, mouse}; +use cosmic::iced::{Alignment, Length, Rectangle, mouse}; use cosmic::widget::{button, column, container, image, mouse_area, row, scrollable, slider}; use cosmic::{Element, theme}; use ferese_ipc::media::Playback; @@ -150,7 +150,9 @@ pub(super) fn bar<'a>( } let mut bar_style = crate::bar::bar_group_style(palette); - bar_style.border.width(0.0); + bar_style.border = bar_style.border.width(0.0); + bar_style.background = Some(super::Background::Color(color_with_opacity(palette.border, 0.30))); + let controls = container( row![ motion::button(details, foreground, false, 1.0),