diff options
author | Ken Moore <ken@pcbsd.org> | 2015-02-02 08:36:55 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-02-02 08:36:55 -0500 |
commit | c98fad3c9c6676ebe9cfec182098f7e3dc26fb45 (patch) | |
tree | 32fec3dd2a5eff0cd4e94b88d583c0f8c248f60a /libLumina | |
parent | Merge pull request #45 from Nanolx/lumina-x11 (diff) | |
download | lumina-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.cpp | 2 |
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; |