From 71b35dd3e841939dd3ad7fd7e58a1abc59d0e7d8 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Sat, 20 Jun 2015 10:10:23 -0400 Subject: Fix a bug in the writeFile() function when passed an empty list of text. This fixes the issue with removing the last "favorite" from the system causing a crash.Also make sure to remove any empty lines from the favorites when loading them. --- libLumina/themes/Lumina-default.qss.template | 21 +++++++-------------- libLumina/themes/None.qss.template | 21 +++++++-------------- 2 files changed, 14 insertions(+), 28 deletions(-) (limited to 'libLumina/themes') diff --git a/libLumina/themes/Lumina-default.qss.template b/libLumina/themes/Lumina-default.qss.template index b8ea28da..ed02b310 100644 --- a/libLumina/themes/Lumina-default.qss.template +++ b/libLumina/themes/Lumina-default.qss.template @@ -16,23 +16,14 @@ QWidget#LuminaBootSplash{ } /* Set the default canvas appearance for Lumina desktop plugins*/ -LDPlugin#audioplayer{ +/* Default to a non-transparent background for all desktop plugins*/ +LDPlugin{ background: %%BASECOLOR%%; border-radius: 5px; } - -LDPlugin#calendar{ - background: %%BASECOLOR%%; - border-radius: 5px; -} - -LDPlugin#notepad{ - background: %%BASECOLOR%%; - border-radius: 5px; -} - -LDPlugin#systemmonitor{ - background: %%BASECOLOR%%; +/* Now specify which plugins should have a transparent background */ +LDPlugin#applauncher, LDPlugin#desktopview{ + background: transparent; border-radius: 5px; } @@ -41,11 +32,13 @@ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 transparent, stop: 0.7 transparent, stop: 1.0 %%PRIMARYDISABLECOLOR%%); + border: none; border-radius: 5px; color: %%TEXTCOLOR%%; } LDPlugin#applauncher QToolButton:hover{ background: %%PRIMARYDISABLECOLOR%%; + border: none; border-radius: 5px; color: %%TEXTHIGHLIGHTCOLOR%%; } diff --git a/libLumina/themes/None.qss.template b/libLumina/themes/None.qss.template index 57dd84e4..430bd44b 100644 --- a/libLumina/themes/None.qss.template +++ b/libLumina/themes/None.qss.template @@ -14,23 +14,14 @@ QWidget#LuminaBootSplash{ } /* Set the default canvas appearance for Lumina desktop plugins*/ -LDPlugin#audioplayer{ +/* Default to a non-transparent background for all desktop plugins*/ +LDPlugin{ background: %%BASECOLOR%%; border-radius: 5px; } - -LDPlugin#calendar{ - background: %%BASECOLOR%%; - border-radius: 5px; -} - -LDPlugin#notepad{ - background: %%BASECOLOR%%; - border-radius: 5px; -} - -LDPlugin#systemmonitor{ - background: %%BASECOLOR%%; +/* Now specify which plugins should have a transparent background */ +LDPlugin#applauncher, LDPlugin#desktopview{ + background: transparent; border-radius: 5px; } @@ -39,11 +30,13 @@ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 transparent, stop: 0.7 transparent, stop: 1.0 %%PRIMARYDISABLECOLOR%%); + border: none; border-radius: 5px; color: %%TEXTCOLOR%%; } LDPlugin#applauncher QToolButton:hover{ background: %%PRIMARYDISABLECOLOR%%; + border: none; border-radius: 5px; color: %%TEXTHIGHLIGHTCOLOR%%; } -- cgit