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