aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/mainUI.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-10 15:10:19 -0400
committerKen Moore <ken@pcbsd.org>2014-10-10 15:10:19 -0400
commitf936d7d555972bb0f60d4f217356d7e43f231580 (patch)
tree87b602ce714d18b3230398b28d2f1b8def43512b /lumina-config/mainUI.h
parentMake sure the directory catch for running lumina-fm happens at the end (in ca... (diff)
downloadlumina-f936d7d555972bb0f60d4f217356d7e43f231580.tar.gz
lumina-f936d7d555972bb0f60d4f217356d7e43f231580.tar.bz2
lumina-f936d7d555972bb0f60d4f217356d7e43f231580.zip
Large update to the Lumina project: provide full theming capabilities.
1) New libLumina classes: LuminaThemes.h 2) Single-line usage to add lumina theme usage to an application (already added to all the Lumina utilities) 3) Include a Lumina-default theme template, as well as a single color scheme (will add more later) 4) Will create a global Qt style for "lumina" so that this theme engine can be automatically applied to all Qt applications at a later date (want to make sure to beat this up and get it working reliably before turning it on for everything). Major Features: 1) Full Qt theme capabilities through Qt stylesheets (so they can be modified and applied on the fly). 2) Stylesheets are broken into a couple pieces: an "incomplete" stylesheet file (the theme template) with variables in place of colors, font size, and font family. A "color" file which variable->value definitions for the different colors. And a themesettings.cfg files which keeps track of the files/font settings. 3) Along with this, add the ability to specify the icon theme that is used as well, and make that automatically re-loaded as necessary. 4) Add the ability to read/set thes values in lumina-config. The lumina-config usage is still a bit rough: working on cleaning it up right now.
Diffstat (limited to 'lumina-config/mainUI.h')
-rw-r--r--lumina-config/mainUI.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lumina-config/mainUI.h b/lumina-config/mainUI.h
index d40438db..038651d7 100644
--- a/lumina-config/mainUI.h
+++ b/lumina-config/mainUI.h
@@ -21,6 +21,7 @@
// libLumina includes
#include <LuminaXDG.h>
+#include <LuminaThemes.h>
// local includes
#include "LPlugins.h"
@@ -52,7 +53,6 @@ private:
int panelnumber;
//General purpose functions (not connected to buttons)
- void setupIcons(); //called during initialization
void setupMenus(); //called during initialization
void setupConnections(); //called during intialization
@@ -73,6 +73,9 @@ private:
QStringList readFile(QString path);
bool overwriteFile(QString path, QStringList contents);
+public slots:
+ void setupIcons(); //called during initialization
+
private slots:
void slotSingleInstance();
bgstack15