Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Feb 24, 2023
1 parent 8c184bd commit 4cebdb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/elgato/streamdeck/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/systray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4cebdb1

Please sign in to comment.