From a43df1df01e9f39fbd6489eaebc1b1160b25dd04 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 25 Oct 2023 11:34:31 -0400 Subject: [PATCH] fix(bluetooth): add divider and button for settings --- cosmic-applet-bluetooth/src/app.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cosmic-applet-bluetooth/src/app.rs b/cosmic-applet-bluetooth/src/app.rs index bb749e06..28286676 100644 --- a/cosmic-applet-bluetooth/src/app.rs +++ b/cosmic-applet-bluetooth/src/app.rs @@ -382,6 +382,7 @@ impl cosmic::Application for CosmicBluetoothApplet { .height(Length::Fixed(24.0)) ]) .on_press(Message::ToggleVisibleDevices(!self.show_visible_devices)); + content = content.push(padded_control(divider::horizontal::default())); content = content.push(available_connections_btn); let mut list_column: Vec> = Vec::with_capacity(self.bluer_state.devices.len()); @@ -485,6 +486,11 @@ impl cosmic::Application for CosmicBluetoothApplet { } else { content = content.push(Column::with_children(list_column)); } + content = content.push(padded_control(divider::horizontal::default())); + content = content.push( + menu_button(text(fl!("settings")).size(14).width(Length::Fill)) + .on_press(Message::Ignore), + ); self.core.applet.popup_container(content).into() }