From 873009219012f3947a1cac0fdca9e8fe0e4f8d3d Mon Sep 17 00:00:00 2001
From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com>
Date: Thu, 19 Jan 2023 12:11:12 +0100
Subject: [PATCH] Preferences: Hide style label too on Windows (#2336)
* Give new labels fitting names
* Hide styleLabel too on Windows
---
qt/aqt/forms/preferences.ui | 4 ++--
qt/aqt/preferences.py | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/qt/aqt/forms/preferences.ui b/qt/aqt/forms/preferences.ui
index 8ddb3995a..969861c2d 100644
--- a/qt/aqt/forms/preferences.ui
+++ b/qt/aqt/forms/preferences.ui
@@ -119,14 +119,14 @@
-
-
+
preferences_style
-
-
+
preferences_theme
diff --git a/qt/aqt/preferences.py b/qt/aqt/preferences.py
index df60086a8..7a96d1eaf 100644
--- a/qt/aqt/preferences.py
+++ b/qt/aqt/preferences.py
@@ -271,6 +271,7 @@ class Preferences(QDialog):
self.form.styleComboBox.currentIndexChanged,
self.mw.pm.set_widget_style,
)
+ self.form.styleLabel.setVisible(not is_win)
self.form.styleComboBox.setVisible(not is_win)
self.form.legacy_import_export.setChecked(self.mw.pm.legacy_import_export())