From 47c192444aa9806285e580c0c8d8cb3503279e62 Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Sun, 3 Aug 2025 15:56:19 +0530 Subject: [PATCH] Added Correct Sized Icon --- config/assets/icons/applets/wifi-clear.svg | 12 +++++++----- config/assets/icons/applets/wifi-off-clear.svg | 0 config/assets/icons/misc/search.svg | 6 +----- modules/panel/components/indicators.py | 13 +++++++++---- modules/panel/main.py | 2 +- 5 files changed, 18 insertions(+), 15 deletions(-) mode change 100755 => 100644 config/assets/icons/applets/wifi-clear.svg mode change 100755 => 100644 config/assets/icons/applets/wifi-off-clear.svg diff --git a/config/assets/icons/applets/wifi-clear.svg b/config/assets/icons/applets/wifi-clear.svg old mode 100755 new mode 100644 index 55e3494..6bd8a6a --- a/config/assets/icons/applets/wifi-clear.svg +++ b/config/assets/icons/applets/wifi-clear.svg @@ -1,6 +1,8 @@ - - - - - + + + + + + + diff --git a/config/assets/icons/applets/wifi-off-clear.svg b/config/assets/icons/applets/wifi-off-clear.svg old mode 100755 new mode 100644 diff --git a/config/assets/icons/misc/search.svg b/config/assets/icons/misc/search.svg index 9b396bb..73da906 100644 --- a/config/assets/icons/misc/search.svg +++ b/config/assets/icons/misc/search.svg @@ -1,5 +1 @@ - - - - \ No newline at end of file + \ No newline at end of file diff --git a/modules/panel/components/indicators.py b/modules/panel/components/indicators.py index fc599ff..4a46eb6 100644 --- a/modules/panel/components/indicators.py +++ b/modules/panel/components/indicators.py @@ -15,7 +15,7 @@ class BluetoothIndicator(Box): self.bluetooth = BluetoothClient() self.bt_icon = Svg( name="bt-icon", - size=23, + size=18, svg_file=get_relative_path( "../../../config/assets/icons/applets/bluetooth-clear.svg" ), @@ -49,7 +49,12 @@ class BluetoothIndicator(Box): "../../../config/assets/icons/applets/bluetooth-clear.svg" ) ) - if len(connected_devices) == 1: + if len(connected_devices) >= 1: + self.bt_icon.set_from_file( + get_relative_path( + "../../../config/assets/icons/applets/bluetooth-paired.svg" + ) + ) device = connected_devices[0] tooltip = f"Connected to {device.alias}" if device.battery_percentage > 0: @@ -111,7 +116,7 @@ class NetworkIndicator(Box): self.network_icon = Svg( name="network-icon", - size=25, + size=18, svg_file=get_relative_path( "../../../config/assets/icons/applets/wifi-clear.svg" ), @@ -236,7 +241,7 @@ class BatteryIndicator(Box): self.battery_icon = Svg( name="battery-icon", - size=22, + size=23, svg_file=get_relative_path( "../../../config/assets/icons/battery/battery-100.svg" ), diff --git a/modules/panel/main.py b/modules/panel/main.py index 5872a61..c34ef44 100644 --- a/modules/panel/main.py +++ b/modules/panel/main.py @@ -98,7 +98,7 @@ class Panel(Window): name="panel-button", on_clicked=lambda *_: self.search_apps(), child=Svg( - size=22, + size=18, svg_file=get_relative_path("../../config/assets/icons/misc/search.svg"), ), )