aboutsummaryrefslogtreecommitdiff
path: root/libLumina
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-02-02 08:36:55 -0500
committerKen Moore <ken@pcbsd.org>2015-02-02 08:36:55 -0500
commitc98fad3c9c6676ebe9cfec182098f7e3dc26fb45 (patch)
tree32fec3dd2a5eff0cd4e94b88d583c0f8c248f60a /libLumina
parentMerge pull request #45 from Nanolx/lumina-x11 (diff)
downloadlumina-c98fad3c9c6676ebe9cfec182098f7e3dc26fb45.tar.gz
lumina-c98fad3c9c6676ebe9cfec182098f7e3dc26fb45.tar.bz2
lumina-c98fad3c9c6676ebe9cfec182098f7e3dc26fb45.zip
Make sure that the font-family declaration is set off within quotes when assembling the stylesheet. This fixes fonts that use strange characters such as brackets in the name.
Diffstat (limited to 'libLumina')
-rw-r--r--libLumina/LuminaThemes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libLumina/LuminaThemes.cpp b/libLumina/LuminaThemes.cpp
index fd740e20..269af259 100644
--- a/libLumina/LuminaThemes.cpp
+++ b/libLumina/LuminaThemes.cpp
@@ -157,7 +157,7 @@ QString LTHEME::assembleStyleSheet(QString themepath, QString colorpath, QString
else if(colors[i].startsWith("TEXTDISABLECOLOR=")){ stylesheet = stylesheet.replace("%%TEXTDISABLECOLOR%%", colors[i].section("=",1,1).simplified()); }
else if(colors[i].startsWith("TEXTHIGHLIGHTCOLOR=")){ stylesheet = stylesheet.replace("%%TEXTHIGHLIGHTCOLOR%%", colors[i].section("=",1,1).simplified()); }
}
- stylesheet = stylesheet.replace("%%FONT%%", font);
+ stylesheet = stylesheet.replace("%%FONT%%", "\""+font+"\"");
stylesheet = stylesheet.replace("%%FONTSIZE%%", fontsize);
//qDebug() << "Assembled Style Sheet:\n" << stylesheet;
return stylesheet;
bgstack15