From e006327f4adfb5cfefad791bf840d4de4e96d2d8 Mon Sep 17 00:00:00 2001 From: Axel358 Date: Thu, 28 Dec 2023 14:56:06 -0500 Subject: [PATCH] feat: Use small toolbar size and text beside icons --- blueman/gui/manager/ManagerToolbar.py | 3 +-- data/ui/manager-main.ui | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/blueman/gui/manager/ManagerToolbar.py b/blueman/gui/manager/ManagerToolbar.py index bf0e17f35..f1902e571 100644 --- a/blueman/gui/manager/ManagerToolbar.py +++ b/blueman/gui/manager/ManagerToolbar.py @@ -91,8 +91,7 @@ def _update_buttons(self, adapter: Optional[Adapter]) -> None: self.b_remove.props.sensitive = True self.b_send.props.sensitive = powered and row["objpush"] - icon_name = "blueman-untrust-symbolic" if row["trusted"] else "blueman-trust-symbolic" - self.b_trust.props.icon_widget = Gtk.Image(icon_name=icon_name, pixel_size=24, visible=True) + self.b_trust.props.icon_name = "blueman-untrust-symbolic" if row["trusted"] else "blueman-trust-symbolic" self.b_trust.props.label = _("Untrust") if row["trusted"] else _("Trust") def on_device_propery_changed(self, dev_list: ManagerDeviceList, device: Device, tree_iter: Gtk.TreeIter, diff --git a/data/ui/manager-main.ui b/data/ui/manager-main.ui index f2111697a..f8fb38554 100644 --- a/data/ui/manager-main.ui +++ b/data/ui/manager-main.ui @@ -63,7 +63,6 @@ True - True False _Adapter True @@ -74,7 +73,6 @@ _Search - False False True im_search @@ -96,7 +94,6 @@ _Preferences - False False True im_prefs @@ -112,7 +109,6 @@ Turn Bluetooth _On - False False True im_power @@ -309,6 +305,8 @@ True False + both-horiz + 2 True @@ -340,6 +338,7 @@ False False Create pairing with the device + True Pair blueman-pair-symbolic @@ -354,6 +353,7 @@ False False Mark/Unmark this device as trusted + True Trust blueman-trust-symbolic @@ -368,6 +368,7 @@ False False Remove this device from the known devices list + True Remove list-remove-symbolic