summaryrefslogtreecommitdiff
authorsandman <sandman>2002-09-21 01:31:23 (UTC)
committer sandman <sandman>2002-09-21 01:31:23 (UTC)
commit804a06520928973d706bf827209f8a7625010b7f (patch) (unidiff)
tree06865733a58dbd033747ef6ceca9bd6c51f24455
parent6ae824e5c3a555d5129c68d387094d50276742f4 (diff)
downloadopie-804a06520928973d706bf827209f8a7625010b7f.zip
opie-804a06520928973d706bf827209f8a7625010b7f.tar.gz
opie-804a06520928973d706bf827209f8a7625010b7f.tar.bz2
- disable liquid win decoration - this has to be made a separate plugin
- liquid now uses the polished palette for color values (liquid did parse qpe.conf before -- the new Qt/e patch is needed for this to work) - updated QPL diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/liquid/liquid.cpp23
-rw-r--r--noncore/styles/liquid/opie-liquid.diff128
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)
687{ 687{
688
689 int i; 688 int i;
@@ -720,3 +719,3 @@ void LiquidStyle::polish(QPalette &appPal)
720 719
721 QPalette pal = QApplication::palette(); 720// QPalette pal = QApplication::palette();
722 721
@@ -724,4 +723,7 @@ void LiquidStyle::polish(QPalette &appPal)
724 config. setGroup ( "Appearance" ); 723 config. setGroup ( "Appearance" );
725 QColor c = QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); 724 QColor c = // QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( )));
726 if ( c == QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))) { 725 appPal. color ( QPalette::Active, QColorGroup::Button );
726 if ( c == appPal. color ( QPalette::Active, QColorGroup::Background )
727 //QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))
728 ) {
727 // force button color to be different from background 729 // force button color to be different from background
@@ -776,3 +778,3 @@ void LiquidStyle::polish(QPalette &appPal)
776 // background color stuff 778 // background color stuff
777 c = QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( ))); 779 c = /*QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Background );
778 c.hsv(&bH, &bS, &bV); 780 c.hsv(&bH, &bS, &bV);
@@ -802,3 +804,3 @@ void LiquidStyle::polish(QPalette &appPal)
802 // lineedits 804 // lineedits
803 c = QColor ( config. readEntry("Base", ( Qt::white). name ( ))); 805 c = /*QColor ( config. readEntry("Base", ( Qt::white). name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Base );
804 QPixmap basePix; 806 QPixmap basePix;
@@ -827,3 +829,2 @@ void LiquidStyle::polish(QPalette &appPal)
827 } 829 }
828
829} 830}
@@ -950,3 +951,3 @@ void LiquidStyle::unPolish(QWidget *w)
950 951
951 w->setPalette(QApplication::palette()); 952 w->unsetPalette();
952 if(w->backgroundMode() == QWidget::X11ParentRelative || isViewportChild){ 953 if(w->backgroundMode() == QWidget::X11ParentRelative || isViewportChild){
@@ -1007,4 +1008,4 @@ void LiquidStyle::polish(QApplication *app)
1007 1008
1008 if ( config. readBoolEntry ( "WinDecoration", true )) 1009 // if ( config. readBoolEntry ( "WinDecoration", true ))
1009 QApplication::qwsSetDecoration ( new LiquidDecoration ( )); 1010 // QApplication::qwsSetDecoration ( new LiquidDecoration ( ));
1010 1011
@@ -1021,3 +1022,3 @@ void LiquidStyle::unPolish(QApplication *app)
1021 1022
1022 QApplication::qwsSetDecoration ( new QPEDecoration ( )); 1023// QApplication::qwsSetDecoration ( new QPEDecoration ( ));
1023} 1024}
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:
5 5
6 --- -Mon Jul 15 02:34:13 2002 6 --- -Sat Sep 21 05:31:47 2002
7 +++ liquid.hMon Jul 15 01:51:12 2002 7 +++ liquid.hMon Jul 15 02:52:50 2002
8@@ -2,7 +2,7 @@ 8@@ -2,7 +2,7 @@
@@ -112,4 +112,4 @@ Features:
112 QWidget *highlightWidget; 112 QWidget *highlightWidget;
113 --- -Mon Jul 15 02:34:13 2002 113 --- -Sat Sep 21 05:31:48 2002
114 +++ liquid.cppMon Jul 15 02:31:59 2002 114 +++ liquid.cppSat Sep 21 05:18:54 2002
115@@ -10,12 +10,10 @@ 115@@ -10,12 +10,10 @@
@@ -345,3 +345,11 @@ Features:
345 htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true); 345 htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true);
346@@ -730,20 +704,26 @@ 346@@ -711,7 +685,6 @@
347
348 void LiquidStyle::polish(QPalette &appPal)
349 {
350-
351 int i;
352 for(i=0; i < BITMAP_ITEMS; ++i){
353 if(pixmaps[i]){
354@@ -730,20 +703,29 @@
347 } 355 }
@@ -358,2 +366,3 @@ Features:
358- QString oldGrp = config->group(); 366- QString oldGrp = config->group();
367- QPalette pal = QApplication::palette();
359+ Config config ( "qpe" ); 368+ Config config ( "qpe" );
@@ -366,3 +375,3 @@ Features:
366+ 375+
367 QPalette pal = QApplication::palette(); 376+// QPalette pal = QApplication::palette();
368 377
@@ -373,4 +382,7 @@ Features:
373+ config. setGroup ( "Appearance" ); 382+ config. setGroup ( "Appearance" );
374 + QColor c = QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); 383+ QColor c = // QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( )));
375+ if ( c == QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))) { 384+ appPal. color ( QPalette::Active, QColorGroup::Button );
385+ if ( c == appPal. color ( QPalette::Active, QColorGroup::Background )
386+ //QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))
387+ ) {
376 // force button color to be different from background 388 // force button color to be different from background
@@ -378,3 +390,3 @@ Features:
378 appPal.setBrush(QColorGroup::Button, btnBrush); 390 appPal.setBrush(QColorGroup::Button, btnBrush);
379@@ -794,15 +774,7 @@ 391@@ -794,15 +776,7 @@
380 pagerBrush.setPixmap(*pix); 392 pagerBrush.setPixmap(*pix);
@@ -391,3 +403,3 @@ Features:
391- } 403- }
392+ c = QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( ))); 404+ c = /*QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Background );
393 c.hsv(&bH, &bS, &bV); 405 c.hsv(&bH, &bS, &bV);
@@ -395,3 +407,3 @@ Features:
395 407
396@@ -817,21 +789,18 @@ 408@@ -817,21 +791,18 @@
397 wallPaper.fill(c.rgb()); 409 wallPaper.fill(c.rgb());
@@ -416,3 +428,3 @@ Features:
416- c = config->readColorEntry("windowBackground", &Qt::white); 428- c = config->readColorEntry("windowBackground", &Qt::white);
417+ c = QColor ( config. readEntry("Base", ( Qt::white). name ( ))); 429+ c = /*QColor ( config. readEntry("Base", ( Qt::white). name ( )));*/ appPal. color ( QPalette::Active, QColorGroup::Base );
418 QPixmap basePix; 430 QPixmap basePix;
@@ -420,6 +432,7 @@ Features:
420 basePix.fill(c.rgb()); 432 basePix.fill(c.rgb());
421@@ -857,51 +826,39 @@ 433@@ -856,52 +827,39 @@
434 applyCustomAttributes((QPushButton *)w);
422 } 435 }
423 } 436 }
424 437-
425- config->setGroup(oldGrp); 438- config->setGroup(oldGrp);
@@ -489,3 +502,3 @@ Features:
489 if(w->inherits("QLineEdit")){ 502 if(w->inherits("QLineEdit")){
490@@ -913,6 +870,9 @@ 503@@ -913,6 +871,9 @@
491 applyCustomAttributes((QPushButton *)w); 504 applyCustomAttributes((QPushButton *)w);
@@ -499,3 +512,3 @@ Features:
499 qstrcmp(w->name(), "qt_clipped_viewport") == 0; 512 qstrcmp(w->name(), "qt_clipped_viewport") == 0;
500@@ -942,11 +902,14 @@ 513@@ -942,11 +903,14 @@
501 w->setMouseTracking(true); 514 w->setMouseTracking(true);
@@ -516,3 +529,3 @@ Features:
516 palette().active().brush(QColorGroup::Background).pixmap()){ 529 palette().active().brush(QColorGroup::Background).pixmap()){
517@@ -954,17 +917,13 @@ 530@@ -954,17 +918,13 @@
518 return; 531 return;
@@ -536,3 +549,3 @@ Features:
536 void LiquidStyle::unPolish(QWidget *w) 549 void LiquidStyle::unPolish(QWidget *w)
537@@ -977,6 +936,9 @@ 550@@ -977,6 +937,9 @@
538 551
@@ -546,3 +559,12 @@ Features:
546 return; 559 return;
547@@ -1001,12 +963,14 @@ 560@@ -986,7 +949,7 @@
561 ((qstrcmp(w->parent()->name(), "qt_viewport") == 0) ||
562 (qstrcmp(w->parent()->name(), "qt_clipped_viewport") == 0));
563
564- w->setPalette(QApplication::palette());
565+ w->unsetPalette();
566 if(w->backgroundMode() == QWidget::X11ParentRelative || isViewportChild){
567 if(w->inherits("QPushButton"))
568 w->setBackgroundMode(QWidget::PaletteButton);
569@@ -1001,12 +964,14 @@
548 unapplyCustomAttributes((QPushButton *)w); 570 unapplyCustomAttributes((QPushButton *)w);
@@ -565,3 +587,3 @@ Features:
565 if(w->inherits("QButton") || w->inherits("QComboBox")){ 587 if(w->inherits("QButton") || w->inherits("QComboBox")){
566@@ -1014,9 +978,9 @@ 588@@ -1014,9 +979,9 @@
567 w->setAutoMask(false); 589 w->setAutoMask(false);
@@ -577,3 +599,3 @@ Features:
577 if(w->inherits("QHeader")){ 599 if(w->inherits("QHeader")){
578@@ -1028,20 +992,34 @@ 600@@ -1028,20 +993,34 @@
579 void LiquidStyle::polish(QApplication *app) 601 void LiquidStyle::polish(QApplication *app)
@@ -595,4 +617,4 @@ Features:
595+ 617+
596 + if ( config. readBoolEntry ( "WinDecoration", true )) 618 +// if ( config. readBoolEntry ( "WinDecoration", true ))
597 + QApplication::qwsSetDecoration ( new LiquidDecoration ( )); 619 +// QApplication::qwsSetDecoration ( new LiquidDecoration ( ));
598 + 620 +
@@ -610,3 +632,3 @@ Features:
610+ 632+
611+ QApplication::qwsSetDecoration ( new QPEDecoration ( )); 633+// QApplication::qwsSetDecoration ( new QPEDecoration ( ));
612 } 634 }
@@ -614,3 +636,3 @@ Features:
614 /* 636 /*
615@@ -1063,7 +1041,7 @@ 637@@ -1063,7 +1042,7 @@
616 */ 638 */
@@ -623,3 +645,3 @@ Features:
623 QObjectListIt it(*tbChildList); 645 QObjectListIt it(*tbChildList);
624@@ -1076,35 +1054,7 @@ 646@@ -1076,35 +1055,7 @@
625 647
@@ -660,3 +682,3 @@ Features:
660 if(btn->isEnabled()){ 682 if(btn->isEnabled()){
661@@ -1119,20 +1069,7 @@ 683@@ -1119,20 +1070,7 @@
662 } 684 }
@@ -682,3 +704,3 @@ Features:
682 if(btn->isEnabled()){ 704 if(btn->isEnabled()){
683@@ -1340,11 +1277,6 @@ 705@@ -1340,11 +1278,6 @@
684 QColorGroup g = btn->colorGroup(); 706 QColorGroup g = btn->colorGroup();
@@ -694,3 +716,3 @@ Features:
694 QColor c = btn->hasFocus() ? g.button().light(110) : g.background(); 716 QColor c = btn->hasFocus() ? g.button().light(110) : g.background();
695@@ -1596,7 +1528,7 @@ 717@@ -1596,7 +1529,7 @@
696 if(sbBuffer.size() != sb->size()) 718 if(sbBuffer.size() != sb->size())
@@ -703,3 +725,3 @@ Features:
703 subHC.setRect(addX-buttonDim,addY,buttonDim,buttonDim ); 725 subHC.setRect(addX-buttonDim,addY,buttonDim,buttonDim );
704@@ -1624,7 +1556,7 @@ 726@@ -1624,7 +1557,7 @@
705 QPainter painter; 727 QPainter painter;
@@ -712,3 +734,3 @@ Features:
712 13, 8); 734 13, 8);
713@@ -1690,7 +1622,7 @@ 735@@ -1690,7 +1623,7 @@
714 } 736 }
@@ -721,3 +743,3 @@ Features:
721 8, 13); 743 8, 13);
722@@ -1761,10 +1693,10 @@ 744@@ -1761,10 +1694,10 @@
723 addB.width()-8, addB.height()-8, g, !maxed); 745 addB.width()-8, addB.height()-8, g, !maxed);
@@ -736,3 +758,3 @@ Features:
736 false, subHC.x()+4, subHC.y()+4, 758 false, subHC.x()+4, subHC.y()+4,
737@@ -1865,8 +1797,8 @@ 759@@ -1865,8 +1798,8 @@
738 else 760 else
@@ -747,3 +769,3 @@ Features:
747 sliderLength = maxLength; 769 sliderLength = maxLength;
748@@ -1914,8 +1846,8 @@ 770@@ -1914,8 +1847,8 @@
749 return(QSize(16, 16)); 771 return(QSize(16, 16));
@@ -758,3 +780,3 @@ Features:
758 bool isHover = highlightWidget == p->device(); 780 bool isHover = highlightWidget == p->device();
759@@ -1957,8 +1889,8 @@ 781@@ -1957,8 +1890,8 @@
760 return(QSize(20, 22)); 782 return(QSize(20, 22));
@@ -769,3 +791,3 @@ Features:
769 bool isMasked = p->device() && p->device()->devType() == QInternal::Widget 791 bool isMasked = p->device() && p->device()->devType() == QInternal::Widget
770@@ -1996,8 +1928,8 @@ 792@@ -1996,8 +1929,8 @@
771 } 793 }
@@ -780,3 +802,3 @@ Features:
780 p->drawPixmap(x, y, *getPixmap(HTMLCB)->mask()); 802 p->drawPixmap(x, y, *getPixmap(HTMLCB)->mask());
781@@ -2005,18 +1937,17 @@ 803@@ -2005,18 +1938,17 @@
782 } 804 }
@@ -802,3 +824,3 @@ Features:
802 p->drawPixmap(x, y, orient == Qt::Horizontal ? *getPixmap(HSlider)->mask() : 824 p->drawPixmap(x, y, orient == Qt::Horizontal ? *getPixmap(HSlider)->mask() :
803@@ -2065,203 +1996,26 @@ 825@@ -2065,203 +1997,26 @@
804 p->drawLineSegments(a); 826 p->drawLineSegments(a);
@@ -996,4 +1018,4 @@ Features:
996-} 1018-}
997-
998 1019
1020-
999-void LiquidStyle::drawKMenuItem(QPainter *p, int x, int y, int w, int h, 1021-void LiquidStyle::drawKMenuItem(QPainter *p, int x, int y, int w, int h,
@@ -1018,3 +1040,3 @@ Features:
1018 else 1040 else
1019@@ -2300,8 +2054,8 @@ 1041@@ -2300,8 +2055,8 @@
1020 } 1042 }
@@ -1029,3 +1051,3 @@ Features:
1029 switch(menuHandler->transType()){ 1051 switch(menuHandler->transType()){
1030@@ -2336,8 +2090,6 @@ 1052@@ -2336,8 +2091,6 @@
1031 1053
@@ -1038,3 +1060,3 @@ Features:
1038 QColorGroup itemg = dis ? pal.disabled() : pal.active(); 1060 QColorGroup itemg = dis ? pal.disabled() : pal.active();
1039@@ -2363,7 +2115,7 @@ 1061@@ -2363,7 +2116,7 @@
1040 p->fillRect(x, y, w, h, menuBrush); 1062 p->fillRect(x, y, w, h, menuBrush);
@@ -1047,3 +1069,3 @@ Features:
1047 } 1069 }
1048@@ -2508,25 +2260,6 @@ 1070@@ -2508,25 +2261,6 @@
1049 return h; 1071 return h;
@@ -1073,3 +1095,3 @@ Features:
1073 const QColorGroup &g, const QColor *c, 1095 const QColorGroup &g, const QColor *c,
1074@@ -2540,25 +2273,25 @@ 1096@@ -2540,25 +2274,25 @@
1075 return; 1097 return;
@@ -1103,3 +1125,3 @@ Features:
1103 QPixmap tilePix; 1125 QPixmap tilePix;
1104@@ -2671,7 +2404,7 @@ 1126@@ -2671,7 +2405,7 @@
1105 vFrame = 8; // was 10 1127 vFrame = 8; // was 10
@@ -1112,3 +1134,3 @@ Features:
1112 1134
1113@@ -2699,7 +2432,7 @@ 1135@@ -2699,7 +2433,7 @@
1114 p->drawLine(x+1, y+1, x+1, y2-1); 1136 p->drawLine(x+1, y+1, x+1, y2-1);
@@ -1121,3 +1143,3 @@ Features:
1121 int x2 = x+w-1; 1143 int x2 = x+w-1;
1122@@ -2726,105 +2459,6 @@ 1144@@ -2726,105 +2460,6 @@
1123 } 1145 }
@@ -1227,3 +1249,3 @@ Features:
1227 { 1249 {
1228@@ -2998,22 +2632,22 @@ 1250@@ -2998,22 +2633,22 @@
1229 customBtnIconList.clear(); 1251 customBtnIconList.clear();
@@ -1257,3 +1279,3 @@ Features:
1257 c->setNamedColor(QString(colorStr)); 1279 c->setNamedColor(QString(colorStr));
1258@@ -3022,7 +2656,7 @@ 1280@@ -3022,7 +2657,7 @@
1259 QString tmpStr(iconStr); 1281 QString tmpStr(iconStr);
@@ -1266,3 +1288,3 @@ Features:
1266 customBtnIconList.append(NULL); 1288 customBtnIconList.append(NULL);
1267@@ -3037,7 +2671,6 @@ 1289@@ -3037,7 +2672,6 @@
1268 colorStr = colorList.next(); 1290 colorStr = colorList.next();
@@ -1274,3 +1296,3 @@ Features:
1274 void LiquidStyle::applyCustomAttributes(QPushButton *btn) 1296 void LiquidStyle::applyCustomAttributes(QPushButton *btn)
1275@@ -3087,7 +2720,7 @@ 1297@@ -3087,7 +2721,7 @@
1276 } 1298 }
@@ -1283,4 +1305,4 @@ Features:
1283 1305
1284 --- -Mon Jul 15 02:34:13 2002 1306 --- -Sat Sep 21 05:31:48 2002
1285 +++ plugin.cppFri Jul 12 00:41:40 2002 1307 +++ plugin.cppMon Jul 8 02:42:56 2002
1286@@ -1,29 +1,113 @@ 1308@@ -1,29 +1,113 @@