Преглед на файлове

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 година
родител
ревизия
3db6f2503c
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  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);
     }