From 4cebdb11fc7abb0178b53d446fe03bd6a600a684 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 24 Feb 2023 18:20:58 +0100 Subject: [PATCH] Minor fixes --- chroma_feedback/consumer/elgato/streamdeck/device.py | 2 +- chroma_feedback/systray.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chroma_feedback/consumer/elgato/streamdeck/device.py b/chroma_feedback/consumer/elgato/streamdeck/device.py index 9d77bad..9536fa0 100644 --- a/chroma_feedback/consumer/elgato/streamdeck/device.py +++ b/chroma_feedback/consumer/elgato/streamdeck/device.py @@ -54,7 +54,7 @@ def set_device(device : Any, producer_report : List[ProducerReport]) -> bool: if index < device.key_count(): device.set_key_image(index, create_image(device, report)) if 'url' in report and report['url']: - device.set_key_callback(lambda __, key, state : state is True and webbrowser.open(producer_report[key]['url'])) + device.set_key_callback(lambda __, key, state: state is True and webbrowser.open(producer_report[key]['url'])) for index in range(len(producer_report), device.key_count()): device.set_key_image(index, None) diff --git a/chroma_feedback/systray.py b/chroma_feedback/systray.py index fa53c17..a504296 100644 --- a/chroma_feedback/systray.py +++ b/chroma_feedback/systray.py @@ -71,7 +71,7 @@ def create_icon(status : Status) -> QIcon: pixmap = QPixmap(100, 100) pixmap.fill(Qt.transparent) painter = QPainter(pixmap) - painter.setBrush(QBrush(QColor(color_config['rgb'][0], color_config['rgb'][1], color_config['rgb'][2]), Qt.SolidPattern)) + painter.setBrush(QBrush(QColor(*color_config['rgb']), Qt.SolidPattern)) painter.drawEllipse(20, 20, 60, 60) painter.end() return QIcon(pixmap)