aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaThemes.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-15 19:02:00 -0400
committerKen Moore <moorekou@gmail.com>2015-09-15 19:02:00 -0400
commit043cb2ef441b4ee46961ed837fedab082db14ceb (patch)
tree8f070d92e9b589d2cce1b1f522dfaac0d4ca6631 /libLumina/LuminaThemes.cpp
parentAdjust the theming of the calendar widgets so that the day/week are a bit mor... (diff)
downloadlumina-043cb2ef441b4ee46961ed837fedab082db14ceb.tar.gz
lumina-043cb2ef441b4ee46961ed837fedab082db14ceb.tar.bz2
lumina-043cb2ef441b4ee46961ed837fedab082db14ceb.zip
Finally fix up the system tray updates:
Found out that (at least on FreeBSD 10.2 right now), the xcb_damage_create() routine does absolutely nothing (no damage events ever sent out when the window changes). Switching this back to the Xlib XDamageCreate() routine makes it work perfectly again. Need to ask about this upstream and see if this is a known bug/regression in the XCB libraries.
Diffstat (limited to 'libLumina/LuminaThemes.cpp')
-rw-r--r--libLumina/LuminaThemes.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libLumina/LuminaThemes.cpp b/libLumina/LuminaThemes.cpp
index b64ace0f..7a4ce9ad 100644
--- a/libLumina/LuminaThemes.cpp
+++ b/libLumina/LuminaThemes.cpp
@@ -315,7 +315,7 @@ QString LTHEME::readCustomEnvSetting(QString var){
// =========================
// LuminaThemeStyle
// =========================
-LuminaThemeStyle::LuminaThemeStyle() : QProxyStyle(){
+/*LuminaThemeStyle::LuminaThemeStyle() : QProxyStyle(){
this->update();
}
@@ -326,10 +326,10 @@ LuminaThemeStyle::~LuminaThemeStyle(){
//Function to update the style (for use by the theme engine)
void LuminaThemeStyle::update(){
darkfont = true; //make this dynamic later
-}
+}*/
//Subclassed functions
-void LuminaThemeStyle::drawItemText(QPainter *painter, const QRect &rect, int alignment, const QPalette &palette, bool enabled, const QString &text, QPalette::ColorRole textRole) const{
+//void LuminaThemeStyle::drawItemText(QPainter *painter, const QRect &rect, int alignment, const QPalette &palette, bool enabled, const QString &text, QPalette::ColorRole textRole) const{
/*QFont cfont = painter->font();
cfont.setHintingPreference(QFont::PreferFullHinting);
QFont outfont = cfont;
@@ -348,7 +348,7 @@ void LuminaThemeStyle::drawItemText(QPainter *painter, const QRect &rect, int al
else{ painter->setPen(QPen(Qt::white)); }
painter->drawText(rect, text);*/
- QFont font = painter->font();
+ /*QFont font = painter->font();
QFont cfont = font; //save for later
if(font.pixelSize()>0){ font.setPixelSize( font.pixelSize()-4); }
else{ font.setPointSize(font.pointSize()-1); }
@@ -369,9 +369,9 @@ void LuminaThemeStyle::drawItemText(QPainter *painter, const QRect &rect, int al
}
painter->setPen(pen);
painter->drawPath(path);
- painter->setFont(cfont); //reset back to original font
+ painter->setFont(cfont); //reset back to original font*/
-}
+//}
//==================
@@ -439,7 +439,7 @@ void LuminaThemeEngine::reloadFiles(){
if(font!=current[3] || fontsize!=current[4]){
font=current[3]; fontsize=current[4];
QFont tmp = application->font();
- tmp.setStyleStrategy(QFont::PreferOutline);
+ tmp.setStyleStrategy(QFont::PreferAntialias);
tmp.setFamily(font);
if(fontsize.endsWith("pt")){ tmp.setPointSize(fontsize.section("pt",0,0).toInt()); }
else if(fontsize.endsWith("px")){ tmp.setPixelSize(fontsize.section("px",0,0).toInt()); }
bgstack15