1 //=========================================== 2 // Lumina Desktop Source Code 3 // Copyright (c) 2016, Ken Moore 4 // Available under the 3-clause BSD license 5 // See the LICENSE file for full details 6 //=========================================== 7 #ifndef _LUMINA_CONFIG_PAGE_THEME_H 8 #define _LUMINA_CONFIG_PAGE_THEME_H 9 #include "../globals.h" 10 #include "PageWidget.h" 11 12 #include "../LPlugins.h" 13 14 namespace Ui{ 15 class page_theme; 16 }; 17 18 class page_theme : public PageWidget{ 19 Q_OBJECT 20 public: 21 page_theme(QWidget *parent); 22 ~page_theme(); 23 24 public slots: 25 void SaveSettings(); 26 void LoadSettings(int screennum); 27 void updateIcons(); 28 29 private: 30 Ui::page_theme *ui; 31 LPlugins *PINFO; 32 bool loading; 33 34 void findQt5Themes(); 35 36 private slots: settingsChanged()37 void settingsChanged(){ 38 //qDebug() << "Setting Changed:" << !loading; 39 if(!loading){ emit HasPendingChanges(true); } 40 } 41 void sessionEditColor(); 42 void sessionEditTheme(); 43 void checkQt5Theme(); 44 }; 45 #endif 46