From f936d7d555972bb0f60d4f217356d7e43f231580 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 10 Oct 2014 15:10:19 -0400 Subject: 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. --- lumina-desktop/LSession.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lumina-desktop/LSession.h') diff --git a/lumina-desktop/LSession.h b/lumina-desktop/LSession.h index 3f3d31f9..cdf0cbd8 100644 --- a/lumina-desktop/LSession.h +++ b/lumina-desktop/LSession.h @@ -34,13 +34,13 @@ //#define SYSTEM_TRAY_BEGIN_MESSAGE 1 //#define SYSTEM_TRAY_CANCEL_MESSAGE 2 -class MenuProxyStyle : public QProxyStyle{ +/*class MenuProxyStyle : public QProxyStyle{ public: int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const{ if(metric==PM_SmallIconSize){ return 22; } //override QMenu icon size (make it larger) else{ return QProxyStyle::pixelMetric(metric, option, widget); } //use the current style for everything else } -}; +};*/ class LSession : public QApplication{ Q_OBJECT @@ -79,7 +79,6 @@ private slots: //Internal simplification functions void checkUserFiles(); - void loadStyleSheet(); void refreshWindowManager(); void updateDesktops(); -- cgit