author | sandman <sandman> | 2002-09-21 01:31:23 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-21 01:31:23 (UTC) |
commit | 804a06520928973d706bf827209f8a7625010b7f (patch) (unidiff) | |
tree | 06865733a58dbd033747ef6ceca9bd6c51f24455 /noncore/styles/liquid/liquid.cpp | |
parent | 6ae824e5c3a555d5129c68d387094d50276742f4 (diff) | |
download | opie-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 (limited to 'noncore/styles/liquid/liquid.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 23 |
1 files changed, 12 insertions, 11 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 | } |