From d017577e8f82ed3f67816e8d32e45e9ecb47124b Mon Sep 17 00:00:00 2001 From: MelianMiko Date: Tue, 17 Sep 2024 19:19:30 +0700 Subject: [PATCH] Fix Debian12 --- openfreebuds_qt/utils/icon/dual_connect_device.py | 5 ++++- scripts/make_qt_parts.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openfreebuds_qt/utils/icon/dual_connect_device.py b/openfreebuds_qt/utils/icon/dual_connect_device.py index 53d4190..b059eef 100644 --- a/openfreebuds_qt/utils/icon/dual_connect_device.py +++ b/openfreebuds_qt/utils/icon/dual_connect_device.py @@ -46,7 +46,10 @@ def create_dual_connect_icon( background=PRESET_TRANSPARENT) if is_playing: - accent_color = palette.accent().color().getRgb() + try: + accent_color = palette.accent().color().getRgb() + except AttributeError: + accent_color = (0, 128, 256) overlay = image_combine_mask(OVERLAY_PLAYING, foreground=Image.new("RGBA", ICON_SIZE, color=accent_color), background=PRESET_TRANSPARENT) diff --git a/scripts/make_qt_parts.sh b/scripts/make_qt_parts.sh index 072ab70..ada8463 100755 --- a/scripts/make_qt_parts.sh +++ b/scripts/make_qt_parts.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash cd "$(dirname "$0")"/.. -pyuic6 openfreebuds_qt/designer +poetry run pyuic6 openfreebuds_qt/designer /usr/lib/qt6/bin/lrelease openfreebuds_qt/assets/i18n/*.ts