diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-14 16:01:39 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-14 16:01:39 -0400 |
commit | 6c491c85494cdcbc750491817b68396775e9b04e (patch) | |
tree | 2c3ac506fd02e73bef5240a06a648ec6f5dc03dc /lumina-config/LPlugins.cpp | |
parent | Large update to the Lumina project: provide full theming capabilities. (diff) | |
download | lumina-6c491c85494cdcbc750491817b68396775e9b04e.tar.gz lumina-6c491c85494cdcbc750491817b68396775e9b04e.tar.bz2 lumina-6c491c85494cdcbc750491817b68396775e9b04e.zip |
Finish up the rest of the new Lumina Theme engine and the utilities for editing those themes in lumina-config. Also tag Lumina version 0.7.0 with this change.
Diffstat (limited to 'lumina-config/LPlugins.cpp')
-rw-r--r-- | lumina-config/LPlugins.cpp | 91 |
1 files changed, 90 insertions, 1 deletions
diff --git a/lumina-config/LPlugins.cpp b/lumina-config/LPlugins.cpp index 9e34994e..6b61441b 100644 --- a/lumina-config/LPlugins.cpp +++ b/lumina-config/LPlugins.cpp @@ -10,6 +10,7 @@ LPlugins::LPlugins(){ LoadPanelPlugins(); LoadDesktopPlugins(); LoadMenuPlugins(); + LoadColorItems(); } LPlugins::~LPlugins(){ @@ -25,7 +26,9 @@ QStringList LPlugins::desktopPlugins(){ QStringList LPlugins::menuPlugins(){ return MENU.keys(); } - +QStringList LPlugins::colorItems(){ + return COLORS.keys(); +} //Information on individual plugins LPI LPlugins::panelPluginInfo(QString plug){ if(PANEL.contains(plug)){ return PANEL[plug]; } @@ -39,6 +42,10 @@ LPI LPlugins::menuPluginInfo(QString plug){ if(MENU.contains(plug)){ return MENU[plug]; } else{ return LPI(); } } +LPI LPlugins::colorInfo(QString item){ + if(COLORS.contains(item)){ return COLORS[item]; } + else{ return LPI(); } +} //=================== // PLUGINS @@ -172,4 +179,86 @@ void LPlugins::LoadMenuPlugins(){ info.ID = "app"; info.icon = "application-x-desktop"; MENU.insert(info.ID, info); +} + +void LPlugins::LoadColorItems(){ + COLORS.clear(); + //Text Color + LPI info; + info.name = QObject::tr("Text"); + info.description = QObject::tr("Color to use for all visible text."); + info.ID = "TEXTCOLOR"; + COLORS.insert(info.ID, info); + //Text Color (Disabled) + info = LPI(); //clear it + info.name = QObject::tr("Text (Disabled)"); + info.description = QObject::tr("Text color for disabled or inactive items."); + info.ID = "TEXTDISABLECOLOR"; + COLORS.insert(info.ID, info); + //Text Color (Highlighted) + info = LPI(); //clear it + info.name = QObject::tr("Text (Highlighted)"); + info.description = QObject::tr("Text color when selection is highlighted."); + info.ID = "TEXTHIGHLIGHTCOLOR"; + COLORS.insert(info.ID, info); + //Base Color (Normal) + info = LPI(); //clear it + info.name = QObject::tr("Base Window Color"); + info.description = QObject::tr("Main background color for the window/dialog."); + info.ID = "BASECOLOR"; + COLORS.insert(info.ID, info); + //Base Color (Alternate) + info = LPI(); //clear it + info.name = QObject::tr("Base Window Color (Alternate)"); + info.description = QObject::tr("Main background color for widgets that list or display collections of items."); + info.ID = "ALTBASECOLOR"; + COLORS.insert(info.ID, info); + //Primary Color (Normal) + info = LPI(); //clear it + info.name = QObject::tr("Primary Color"); + info.description = QObject::tr("Dominant color for the theme."); + info.ID = "PRIMARYCOLOR"; + COLORS.insert(info.ID, info); + //Primary Color (Disabled) + info = LPI(); //clear it + info.name = QObject::tr("Primary Color (Disabled)"); + info.description = QObject::tr("Dominant color for the theme (more subdued)."); + info.ID = "PRIMARYDISABLECOLOR"; + COLORS.insert(info.ID, info); + //Secondary Color (Normal) + info = LPI(); //clear it + info.name = QObject::tr("Secondary Color"); + info.description = QObject::tr("Alternate color for the theme."); + info.ID = "SECONDARYCOLOR"; + COLORS.insert(info.ID, info); + //Secondary Color (Disabled) + info = LPI(); //clear it + info.name = QObject::tr("Secondary Color (Disabled)"); + info.description = QObject::tr("Alternate color for the theme (more subdued)."); + info.ID = "SECONDARYDISABLECOLOR"; + COLORS.insert(info.ID, info); + //Accent Color (Normal) + info = LPI(); //clear it + info.name = QObject::tr("Accent Color"); + info.description = QObject::tr("Color used for borders or other accents."); + info.ID = "ACCENTCOLOR"; + COLORS.insert(info.ID, info); + //Accent Color (Disabled) + info = LPI(); //clear it + info.name = QObject::tr("Accent Color (Disabled)"); + info.description = QObject::tr("Color used for borders or other accents (more subdued)."); + info.ID = "ACCENTDISABLECOLOR"; + COLORS.insert(info.ID, info); + //Highlight Color (Normal) + info = LPI(); //clear it + info.name = QObject::tr("Highlight Color"); + info.description = QObject::tr("Color used for highlighting an item."); + info.ID = "HIGHLIGHTCOLOR"; + COLORS.insert(info.ID, info); + //Highlight Color (Disabled) + info = LPI(); //clear it + info.name = QObject::tr("Highlight Color (Disabled)"); + info.description = QObject::tr("Color used for highlighting an item (more subdued)."); + info.ID = "HIGHLIGHTDISABLECOLOR"; + COLORS.insert(info.ID, info); }
\ No newline at end of file |