Skip to content

Commit

Permalink
use custom frames only on fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 1, 2024
1 parent 40952ec commit d20ca38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/headsetcontrol-qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ def __init__(self):
self.on_ledBox_state_changed()

def init_ui(self):
if not sys.platform == "win32":
set_frame_color_based_on_window(self, self.ui.frame)
set_frame_color_based_on_window(self, self.ui.settingsFrame)
if app.style().objectName() != "windows11":
self.ui.lightBatterySpinbox.setFrame(True)
self.ui.notificationBatterySpinbox.setFrame(True)
self.ui.themeComboBox.setFrame(True)
if app.style().objectName() == "fusion":
set_frame_color_based_on_window(self, self.ui.frame)
set_frame_color_based_on_window(self, self.ui.settingsFrame)

self.ui.ledBox.stateChanged.connect(self.on_ledBox_state_changed)
self.ui.lightBatterySpinbox.valueChanged.connect(self.save_settings)
Expand Down

0 comments on commit d20ca38

Please sign in to comment.