aboutsummaryrefslogtreecommitdiff
path: root/libLumina/themes/SampleTheme.qss.template
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-06 17:49:31 -0400
committerKen Moore <ken@pcbsd.org>2014-10-06 17:49:31 -0400
commit9a7d82954a8e77ca72a9d0b995ec5c0160e6018c (patch)
tree0ecacf8b0510e4330bd368af86459709857eed9d /libLumina/themes/SampleTheme.qss.template
parentClean up the new global.h usage in all the Lumina subprojects. (diff)
downloadlumina-9a7d82954a8e77ca72a9d0b995ec5c0160e6018c.tar.gz
lumina-9a7d82954a8e77ca72a9d0b995ec5c0160e6018c.tar.bz2
lumina-9a7d82954a8e77ca72a9d0b995ec5c0160e6018c.zip
Get the new LuminaThemes class working with a sample color theme for Insight (for testing). The theme loading/usage appears to be working, now I just need to generalize the theme template so that it applies to all the QAbstract* widgets
Diffstat (limited to 'libLumina/themes/SampleTheme.qss.template')
-rw-r--r--libLumina/themes/SampleTheme.qss.template64
1 files changed, 64 insertions, 0 deletions
diff --git a/libLumina/themes/SampleTheme.qss.template b/libLumina/themes/SampleTheme.qss.template
new file mode 100644
index 00000000..b60fbf5a
--- /dev/null
+++ b/libLumina/themes/SampleTheme.qss.template
@@ -0,0 +1,64 @@
+QWidget{ color: %%TEXTCOLOR%%; }
+QWidget#page_browser,#page_audioPlayer,#page_zfs,#page_image_view{background:
+qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2,
+stop: 0 %%ACCENTCOLOR%%,
+stop: 1 %%PRIMARYCOLOR%%);
+}
+QMainWindow, QMenu{ background: %%BASECOLOR%%; }
+QMenuBar, QMenuBar::item, QToolBar{ background: transparent; }
+QMenuBar::item:selected, QMenuBar::item:pressed, QMenu::item:selected{ background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2,
+stop: 0 %%ACCENTCOLOR%%,
+stop: 1 %%HIGHLIGHTCOLOR%%);
+color: %%TEXTHIGHLIGHTCOLOR%%;
+}
+QMenu::item{ background: transparent; border: none; color: %%TEXTCOLOR%%; padding: 2px 25px 2px 20px;}
+QMenu::indicator{ width: 14px; height: 14px; }
+
+ QMenu::indicator:non-exclusive:unchecked {
+ image: url(:/trolltech/styles/commonstyle/images/standardbutton-no-16.png);
+ }
+
+ QMenu::indicator:non-exclusive:unchecked:selected {
+ image: url(:/trolltech/styles/commonstyle/images/standardbutton-no-16.png);
+ }
+
+ QMenu::indicator:non-exclusive:checked {
+ image: url(:/trolltech/styles/commonstyle/images/standardbutton-yes-16.png);
+ }
+
+ QMenu::indicator:non-exclusive:checked:selected {
+ image: url(:/trolltech/styles/commonstyle/images/standardbutton-yes-16.png);
+ }
+
+ QTabBar::tab {
+ background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2,
+stop: 0 %%SECONDARYDISABLECOLOR%%,
+stop: 1 %%SECONDARYCOLOR%%);
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
+ min-width: 8ex;
+ padding: 2px;
+ }
+
+ QTabBar::tab:selected{
+ background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2,
+stop: 0 %%ACCENTDISABLECOLOR%%,
+stop: 1 %%HIGHLIGHTCOLOR%%);
+ }
+QTabBar::tab:hover {
+ background: qradialgradient(cx: 0.5, cy: -1.8, fx: 0.5, fy: 0, radius: 2,
+stop: 0 %%ACCENTDISABLECOLOR%%,
+stop: 1 %%HIGHLIGHTDISABLECOLOR%%);
+ }
+
+ QTabBar::tab:!selected {
+ margin-top: 2px; /* make non-selected tabs look smaller */
+ }
+
+QToolTip{
+ background: %%BASECOLOR%%;
+ border: 1px solid %%PRIMARYDISABLECOLOR%%;
+ border-radius: 2px;
+ padding: 1px;
+ color: %%TEXTCOLOR%%;
+} \ No newline at end of file
bgstack15