-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 23 | ||||
-rw-r--r-- | noncore/styles/liquid/opie-liquid.diff | 128 |
2 files changed, 87 insertions, 64 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index 22bf8af..0d9d259 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp @@ -687,3 +687,2 @@ void LiquidStyle::polish(QPalette &appPal) { - int i; @@ -720,3 +719,3 @@ void LiquidStyle::polish(QPalette &appPal) - QPalette pal = QApplication::palette(); +// QPalette pal = QApplication::palette(); @@ -724,4 +723,7 @@ void LiquidStyle::polish(QPalette &appPal) config. setGroup ( "Appearance" ); - QColor c = QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); - if ( c == QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))) { + QColor c = // QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); + appPal. color ( QPalette::Active, QColorGroup::Button ); + if ( c == appPal. color ( QPalette::Active, QColorGroup::Background ) + //QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( ))) + ) { // force button color to be different from background @@ -776,3 +778,3 @@ void LiquidStyle::polish(QPalette &appPal) // background color stuff - c = QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( ))); + c = /*QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Background ); c.hsv(&bH, &bS, &bV); @@ -802,3 +804,3 @@ void LiquidStyle::polish(QPalette &appPal) // lineedits - c = QColor ( config. readEntry("Base", ( Qt::white). name ( ))); + c = /*QColor ( config. readEntry("Base", ( Qt::white). name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Base ); QPixmap basePix; @@ -827,3 +829,2 @@ void LiquidStyle::polish(QPalette &appPal) } - } @@ -950,3 +951,3 @@ void LiquidStyle::unPolish(QWidget *w) - w->setPalette(QApplication::palette()); + w->unsetPalette(); if(w->backgroundMode() == QWidget::X11ParentRelative || isViewportChild){ @@ -1007,4 +1008,4 @@ void LiquidStyle::polish(QApplication *app) - if ( config. readBoolEntry ( "WinDecoration", true )) - QApplication::qwsSetDecoration ( new LiquidDecoration ( )); +// if ( config. readBoolEntry ( "WinDecoration", true )) +// QApplication::qwsSetDecoration ( new LiquidDecoration ( )); @@ -1021,3 +1022,3 @@ void LiquidStyle::unPolish(QApplication *app) - QApplication::qwsSetDecoration ( new QPEDecoration ( )); +// QApplication::qwsSetDecoration ( new QPEDecoration ( )); } diff --git a/noncore/styles/liquid/opie-liquid.diff b/noncore/styles/liquid/opie-liquid.diff index 7dfd868..90ece90 100644 --- a/noncore/styles/liquid/opie-liquid.diff +++ b/noncore/styles/liquid/opie-liquid.diff @@ -5,4 +5,4 @@ Features: ---- - Mon Jul 15 02:34:13 2002 -+++ liquid.h Mon Jul 15 01:51:12 2002 +--- - Sat Sep 21 05:31:47 2002 ++++ liquid.h Mon Jul 15 02:52:50 2002 @@ -2,7 +2,7 @@ @@ -112,4 +112,4 @@ Features: QWidget *highlightWidget; ---- - Mon Jul 15 02:34:13 2002 -+++ liquid.cpp Mon Jul 15 02:31:59 2002 +--- - Sat Sep 21 05:31:48 2002 ++++ liquid.cpp Sat Sep 21 05:18:54 2002 @@ -10,12 +10,10 @@ @@ -345,3 +345,11 @@ Features: htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true); -@@ -730,20 +704,26 @@ +@@ -711,7 +685,6 @@ + + void LiquidStyle::polish(QPalette &appPal) + { +- + int i; + for(i=0; i < BITMAP_ITEMS; ++i){ + if(pixmaps[i]){ +@@ -730,20 +703,29 @@ } @@ -358,2 +366,3 @@ Features: - QString oldGrp = config->group(); +- QPalette pal = QApplication::palette(); + Config config ( "qpe" ); @@ -366,3 +375,3 @@ Features: + - QPalette pal = QApplication::palette(); ++// QPalette pal = QApplication::palette(); @@ -373,4 +382,7 @@ Features: + config. setGroup ( "Appearance" ); -+ QColor c = QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); -+ if ( c == QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))) { ++ QColor c = // QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); ++ appPal. color ( QPalette::Active, QColorGroup::Button ); ++ if ( c == appPal. color ( QPalette::Active, QColorGroup::Background ) ++ //QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( ))) ++ ) { // force button color to be different from background @@ -378,3 +390,3 @@ Features: appPal.setBrush(QColorGroup::Button, btnBrush); -@@ -794,15 +774,7 @@ +@@ -794,15 +776,7 @@ pagerBrush.setPixmap(*pix); @@ -391,3 +403,3 @@ Features: - } -+ c = QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( ))); ++ c = /*QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Background ); c.hsv(&bH, &bS, &bV); @@ -395,3 +407,3 @@ Features: -@@ -817,21 +789,18 @@ +@@ -817,21 +791,18 @@ wallPaper.fill(c.rgb()); @@ -416,3 +428,3 @@ Features: - c = config->readColorEntry("windowBackground", &Qt::white); -+ c = QColor ( config. readEntry("Base", ( Qt::white). name ( ))); ++ c = /*QColor ( config. readEntry("Base", ( Qt::white). name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Base ); QPixmap basePix; @@ -420,6 +432,7 @@ Features: basePix.fill(c.rgb()); -@@ -857,51 +826,39 @@ +@@ -856,52 +827,39 @@ + applyCustomAttributes((QPushButton *)w); } } - +- - config->setGroup(oldGrp); @@ -489,3 +502,3 @@ Features: if(w->inherits("QLineEdit")){ -@@ -913,6 +870,9 @@ +@@ -913,6 +871,9 @@ applyCustomAttributes((QPushButton *)w); @@ -499,3 +512,3 @@ Features: qstrcmp(w->name(), "qt_clipped_viewport") == 0; -@@ -942,11 +902,14 @@ +@@ -942,11 +903,14 @@ w->setMouseTracking(true); @@ -516,3 +529,3 @@ Features: palette().active().brush(QColorGroup::Background).pixmap()){ -@@ -954,17 +917,13 @@ +@@ -954,17 +918,13 @@ return; @@ -536,3 +549,3 @@ Features: void LiquidStyle::unPolish(QWidget *w) -@@ -977,6 +936,9 @@ +@@ -977,6 +937,9 @@ @@ -546,3 +559,12 @@ Features: return; -@@ -1001,12 +963,14 @@ +@@ -986,7 +949,7 @@ + ((qstrcmp(w->parent()->name(), "qt_viewport") == 0) || + (qstrcmp(w->parent()->name(), "qt_clipped_viewport") == 0)); + +- w->setPalette(QApplication::palette()); ++ w->unsetPalette(); + if(w->backgroundMode() == QWidget::X11ParentRelative || isViewportChild){ + if(w->inherits("QPushButton")) + w->setBackgroundMode(QWidget::PaletteButton); +@@ -1001,12 +964,14 @@ unapplyCustomAttributes((QPushButton *)w); @@ -565,3 +587,3 @@ Features: if(w->inherits("QButton") || w->inherits("QComboBox")){ -@@ -1014,9 +978,9 @@ +@@ -1014,9 +979,9 @@ w->setAutoMask(false); @@ -577,3 +599,3 @@ Features: if(w->inherits("QHeader")){ -@@ -1028,20 +992,34 @@ +@@ -1028,20 +993,34 @@ void LiquidStyle::polish(QApplication *app) @@ -595,4 +617,4 @@ Features: + -+ if ( config. readBoolEntry ( "WinDecoration", true )) -+ QApplication::qwsSetDecoration ( new LiquidDecoration ( )); ++// if ( config. readBoolEntry ( "WinDecoration", true )) ++// QApplication::qwsSetDecoration ( new LiquidDecoration ( )); + @@ -610,3 +632,3 @@ Features: + -+ QApplication::qwsSetDecoration ( new QPEDecoration ( )); ++// QApplication::qwsSetDecoration ( new QPEDecoration ( )); } @@ -614,3 +636,3 @@ Features: /* -@@ -1063,7 +1041,7 @@ +@@ -1063,7 +1042,7 @@ */ @@ -623,3 +645,3 @@ Features: QObjectListIt it(*tbChildList); -@@ -1076,35 +1054,7 @@ +@@ -1076,35 +1055,7 @@ @@ -660,3 +682,3 @@ Features: if(btn->isEnabled()){ -@@ -1119,20 +1069,7 @@ +@@ -1119,20 +1070,7 @@ } @@ -682,3 +704,3 @@ Features: if(btn->isEnabled()){ -@@ -1340,11 +1277,6 @@ +@@ -1340,11 +1278,6 @@ QColorGroup g = btn->colorGroup(); @@ -694,3 +716,3 @@ Features: QColor c = btn->hasFocus() ? g.button().light(110) : g.background(); -@@ -1596,7 +1528,7 @@ +@@ -1596,7 +1529,7 @@ if(sbBuffer.size() != sb->size()) @@ -703,3 +725,3 @@ Features: subHC.setRect(addX-buttonDim,addY,buttonDim,buttonDim ); -@@ -1624,7 +1556,7 @@ +@@ -1624,7 +1557,7 @@ QPainter painter; @@ -712,3 +734,3 @@ Features: 13, 8); -@@ -1690,7 +1622,7 @@ +@@ -1690,7 +1623,7 @@ } @@ -721,3 +743,3 @@ Features: 8, 13); -@@ -1761,10 +1693,10 @@ +@@ -1761,10 +1694,10 @@ addB.width()-8, addB.height()-8, g, !maxed); @@ -736,3 +758,3 @@ Features: false, subHC.x()+4, subHC.y()+4, -@@ -1865,8 +1797,8 @@ +@@ -1865,8 +1798,8 @@ else @@ -747,3 +769,3 @@ Features: sliderLength = maxLength; -@@ -1914,8 +1846,8 @@ +@@ -1914,8 +1847,8 @@ return(QSize(16, 16)); @@ -758,3 +780,3 @@ Features: bool isHover = highlightWidget == p->device(); -@@ -1957,8 +1889,8 @@ +@@ -1957,8 +1890,8 @@ return(QSize(20, 22)); @@ -769,3 +791,3 @@ Features: bool isMasked = p->device() && p->device()->devType() == QInternal::Widget -@@ -1996,8 +1928,8 @@ +@@ -1996,8 +1929,8 @@ } @@ -780,3 +802,3 @@ Features: p->drawPixmap(x, y, *getPixmap(HTMLCB)->mask()); -@@ -2005,18 +1937,17 @@ +@@ -2005,18 +1938,17 @@ } @@ -802,3 +824,3 @@ Features: p->drawPixmap(x, y, orient == Qt::Horizontal ? *getPixmap(HSlider)->mask() : -@@ -2065,203 +1996,26 @@ +@@ -2065,203 +1997,26 @@ p->drawLineSegments(a); @@ -996,4 +1018,4 @@ Features: -} -- +- -void LiquidStyle::drawKMenuItem(QPainter *p, int x, int y, int w, int h, @@ -1018,3 +1040,3 @@ Features: else -@@ -2300,8 +2054,8 @@ +@@ -2300,8 +2055,8 @@ } @@ -1029,3 +1051,3 @@ Features: switch(menuHandler->transType()){ -@@ -2336,8 +2090,6 @@ +@@ -2336,8 +2091,6 @@ @@ -1038,3 +1060,3 @@ Features: QColorGroup itemg = dis ? pal.disabled() : pal.active(); -@@ -2363,7 +2115,7 @@ +@@ -2363,7 +2116,7 @@ p->fillRect(x, y, w, h, menuBrush); @@ -1047,3 +1069,3 @@ Features: } -@@ -2508,25 +2260,6 @@ +@@ -2508,25 +2261,6 @@ return h; @@ -1073,3 +1095,3 @@ Features: const QColorGroup &g, const QColor *c, -@@ -2540,25 +2273,25 @@ +@@ -2540,25 +2274,25 @@ return; @@ -1103,3 +1125,3 @@ Features: QPixmap tilePix; -@@ -2671,7 +2404,7 @@ +@@ -2671,7 +2405,7 @@ vFrame = 8; // was 10 @@ -1112,3 +1134,3 @@ Features: -@@ -2699,7 +2432,7 @@ +@@ -2699,7 +2433,7 @@ p->drawLine(x+1, y+1, x+1, y2-1); @@ -1121,3 +1143,3 @@ Features: int x2 = x+w-1; -@@ -2726,105 +2459,6 @@ +@@ -2726,105 +2460,6 @@ } @@ -1227,3 +1249,3 @@ Features: { -@@ -2998,22 +2632,22 @@ +@@ -2998,22 +2633,22 @@ customBtnIconList.clear(); @@ -1257,3 +1279,3 @@ Features: c->setNamedColor(QString(colorStr)); -@@ -3022,7 +2656,7 @@ +@@ -3022,7 +2657,7 @@ QString tmpStr(iconStr); @@ -1266,3 +1288,3 @@ Features: customBtnIconList.append(NULL); -@@ -3037,7 +2671,6 @@ +@@ -3037,7 +2672,6 @@ colorStr = colorList.next(); @@ -1274,3 +1296,3 @@ Features: void LiquidStyle::applyCustomAttributes(QPushButton *btn) -@@ -3087,7 +2720,7 @@ +@@ -3087,7 +2721,7 @@ } @@ -1283,4 +1305,4 @@ Features: ---- - Mon Jul 15 02:34:13 2002 -+++ plugin.cpp Fri Jul 12 00:41:40 2002 +--- - Sat Sep 21 05:31:48 2002 ++++ plugin.cpp Mon Jul 8 02:42:56 2002 @@ -1,29 +1,113 @@ |