Kaynağa Gözat

Disable Style Sheets

Disable support for style sheets.. These have been causing inconsistencies and have been breaking the layout. Only use system styles and a dark palette option for now.
Felix Turowsky 1 yıl önce
ebeveyn
işleme
3db6f2503c
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      src/classes/style.h

+ 4 - 3
src/classes/style.h

@@ -75,9 +75,10 @@ public:
     static inline void loadStylesComboBox(QComboBox *combo_box){
         const QSignalBlocker blocker(combo_box);
         combo_box->addItems(Style::styles);
-        for (const auto &style_sheet : Style::styleSheets) {
-            combo_box->addItem(style_sheet.styleSheetName);
-        }
+        // TODO enable style sheets.. disabled for now because they are yanky, inconsistant and randomly break the layout
+        // for (const auto &style_sheet : Style::styleSheets) {
+        //     combo_box->addItem(style_sheet.styleSheetName);
+        // }
         combo_box->addItem(QStringLiteral("Dark-Palette"));
         combo_box->model()->sort(0);
     }