+ lowercase patch
authorKonstantin V. Arkhipov <voxus@gentoo.org>
Sun, 11 Sep 2005 12:40:52 +0000 (12:40 +0000)
committerKonstantin V. Arkhipov <voxus@gentoo.org>
Sun, 11 Sep 2005 12:40:52 +0000 (12:40 +0000)
Package-Manager: portage-2.0.52-r1

x11-themes/lipstik/ChangeLog
x11-themes/lipstik/Manifest
x11-themes/lipstik/files/digest-lipstik-1.3-r1 [new file with mode: 0644]
x11-themes/lipstik/files/lipstik-1.3-lower_case.patch [new file with mode: 0644]
x11-themes/lipstik/lipstik-1.3-r1.ebuild [new file with mode: 0644]

index 183de8a52a1f225b669b6ad19d9b064a18cb12f9..5669a473ec9b1c023f2b760ad8e26f511327e9ec 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for x11-themes/lipstik
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-themes/lipstik/ChangeLog,v 1.4 2005/08/27 23:22:23 voxus Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-themes/lipstik/ChangeLog,v 1.5 2005/09/11 12:40:51 voxus Exp $
+
+*lipstik-1.3-r1 (11 Sep 2005)
+
+  11 Sep 2005; Konstantin Arkhipov <voxus@gentoo.org> +lipstik-1.3-r1.ebuild,
+  +files/lipstik-1.3-lower_case.patch:
+  Added option to lowerize text on tabs, buttons, etc.
+  Patch sent to author.
 
   28 Aug 2005; Konstantin Arkhipov <voxus@gentoo.org> lipstik-1.3.ebuild:
   Goes stable on amd64 and x86.
index 2470117a79f75d4efad05eac763411b31f3f412b..6b42f52e1aea0c0b7ac159f1abf91b889fa660e9 100644 (file)
@@ -1,4 +1,7 @@
+MD5 c567c684d08fc0911f9a04a94ddf6cf2 lipstik-1.3-r1.ebuild 652
 MD5 8c5c7c8a8d30a1b08c064d3c4868d835 lipstik-1.3.ebuild 560
-MD5 29cc537d8bdbcb0fc3fa4d89976a1072 ChangeLog 605
+MD5 a719ef8dd9d1c23615c6ab7c8f418123 ChangeLog 833
 MD5 cb28be74814f0f6cbf78047995f51226 metadata.xml 233
 MD5 35e6e2ded39053bad610a636e8317598 files/digest-lipstik-1.3 70
+MD5 9615bd01c86a9ebbaa856e83c1d6da9b files/lipstik-1.3-lower_case.patch 5829
+MD5 35e6e2ded39053bad610a636e8317598 files/digest-lipstik-1.3-r1 70
diff --git a/x11-themes/lipstik/files/digest-lipstik-1.3-r1 b/x11-themes/lipstik/files/digest-lipstik-1.3-r1
new file mode 100644 (file)
index 0000000..db65c25
--- /dev/null
@@ -0,0 +1 @@
+MD5 c5ac975491cf1d7b7b1ae0ceebffa25f 18223-lipstik-1.3.tar.bz2 408569
diff --git a/x11-themes/lipstik/files/lipstik-1.3-lower_case.patch b/x11-themes/lipstik/files/lipstik-1.3-lower_case.patch
new file mode 100644 (file)
index 0000000..7d77f73
--- /dev/null
@@ -0,0 +1,128 @@
+--- style/config/lipstikconf.cpp       2005-09-09 20:38:17.000000000 +0400
++++ style/config/lipstikconf.cpp       2005-09-09 21:24:52.000000000 +0400
+@@ -81,6 +81,7 @@ LipstikStyleConfig::LipstikStyleConfig(Q
+       drawFocusRect = new QCheckBox(i18n("Draw colored focus rectangle"), generalGrp);
+       newKickerButtons = new QCheckBox(i18n("Flat taskbar buttons"), generalGrp);
+       flatHeaders = new QCheckBox(i18n("Flat column headers"), generalGrp);
++      lowerCaseText = new QCheckBox(i18n("Use lowercase text"), generalGrp);
+ 
+       tabLayout->addWidget(generalGrp,0,0,0);
+ 
+@@ -289,6 +290,9 @@ LipstikStyleConfig::LipstikStyleConfig(Q
+       origFlatHeaders = s.readBoolEntry("/lipstikstyle/Settings/flatHeaders", false);
+       flatHeaders->setChecked(origFlatHeaders);
+ 
++      origLowerCaseText = s.readBoolEntry("/lipstikstyle/Settings/lowerCaseText", false);
++      lowerCaseText->setChecked(origLowerCaseText);
++
+       origDrawTriangularExpander = s.readBoolEntry("/lipstikstyle/Settings/drawTriangularExpander", true);
+       drawTriangularExpander->setChecked(origDrawTriangularExpander);
+       origInputFocusHighlight = s.readBoolEntry("/lipstikstyle/Settings/inputFocusHighlight", true);
+@@ -338,6 +342,7 @@ LipstikStyleConfig::LipstikStyleConfig(Q
+ 
+       connect(newKickerButtons, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
+       connect(flatHeaders, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
++      connect(lowerCaseText, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
+ 
+       connect(drawTriangularExpander, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
+       connect(inputFocusHighlight, SIGNAL( toggled(bool) ), SLOT( updateChanged() ) );
+@@ -425,6 +430,7 @@ void LipstikStyleConfig::save()
+ 
+       s.writeEntry("/lipstikstyle/Settings/newKickerButtons", newKickerButtons->isChecked());
+       s.writeEntry("/lipstikstyle/Settings/flatHeaders", flatHeaders->isChecked());
++      s.writeEntry("/lipstikstyle/Settings/lowerCaseText", lowerCaseText->isChecked());
+ 
+       s.writeEntry("/lipstikstyle/Settings/drawTriangularExpander", drawTriangularExpander->isChecked());
+       s.writeEntry("/lipstikstyle/Settings/inputFocusHighlight", inputFocusHighlight->isChecked());
+@@ -467,6 +473,7 @@ void LipstikStyleConfig::defaults()
+ 
+       newKickerButtons->setChecked(false);
+       flatHeaders->setChecked(true);
++      lowerCaseText->setChecked(false);
+ 
+       drawTriangularExpander->setChecked(true);
+       inputFocusHighlight->setChecked(true);
+@@ -553,6 +560,7 @@ void LipstikStyleConfig::updateChanged()
+ 
+           (newKickerButtons->isChecked() == origNewKickerButtons) &&
+           (flatHeaders->isChecked() == origFlatHeaders) &&
++          (lowerCaseText->isChecked() == origLowerCaseText) &&
+ 
+           (drawTriangularExpander->isChecked() == origDrawTriangularExpander) &&
+           (inputFocusHighlight->isChecked() == origInputFocusHighlight) &&
+--- style/config/lipstikconf.h 2005-09-09 20:38:17.000000000 +0400
++++ style/config/lipstikconf.h 2005-09-09 20:57:12.000000000 +0400
+@@ -83,6 +83,7 @@ protected:
+       QCheckBox*       drawFocusRect;
+       QCheckBox*       newKickerButtons;
+       QCheckBox*       flatHeaders;
++      QCheckBox*       lowerCaseText;
+       QCheckBox*       drawTriangularExpander;
+       QCheckBox*       inputFocusHighlight;
+       QCheckBox*       customOverHighlightColor;
+@@ -116,6 +117,7 @@ protected:
+       bool       origDrawFocusRect;
+       bool       origNewKickerButtons;
+       bool       origFlatHeaders;
++      bool       origLowerCaseText;
+       bool       origDrawTriangularExpander;
+       bool       origInputFocusHighlight;
+       bool       origCustomOverHighlightColor;
+--- style/lipstik.cpp  2005-09-09 20:38:17.000000000 +0400
++++ style/lipstik.cpp  2005-09-09 21:22:25.000000000 +0400
+@@ -208,6 +208,8 @@ LipstikStyle::LipstikStyle() : KStyle( A
+     //
+     settings.beginGroup("/lipstikstyle/Settings");
+ 
++    _lowerCaseText = settings.readBoolEntry("/lowerCaseText", false);
++
+     _reverseGradients = settings.readBoolEntry("/reverseGradients", false);
+ 
+     _paintGroove = settings.readBoolEntry("/paintGroove", true);
+@@ -2938,7 +2940,8 @@ void LipstikStyle::drawControl(ControlEl
+ 
+             // Make the label indicate if the button is a default button or not
+             drawItem(p, QRect(x, y, w, h), AlignCenter|ShowPrefix, button->colorGroup(),
+-                     button->isEnabled(), button->pixmap(), button->text(), -1,
++                     button->isEnabled(), button->pixmap(),
++                     _lowerCaseText ? button->text().lower() : button->text(), -1,
+                      &button->colorGroup().buttonText());
+ 
+ 
+@@ -2970,7 +2973,7 @@ void LipstikStyle::drawControl(ControlEl
+           {
+               p->setPen(cg.foreground() );
+           }
+-            p->drawText(r, text_flags, mi->text());
++            p->drawText(r, text_flags, _lowerCaseText ? mi->text().lower() : mi->text());
+             break;
+         }
+ 
+@@ -3153,7 +3156,7 @@ void LipstikStyle::drawControl(ControlEl
+             else 
+           {
+                 // The menu item doesn't draw it's own label
+-                QString s = mi->text();
++                QString s = _lowerCaseText ? mi->text().lower() : mi->text();
+                 // Does the menu item have a text label?
+                 if ( !s.isNull() ) 
+               {
+@@ -3194,7 +3197,7 @@ void LipstikStyle::drawControl(ControlEl
+                         p->setPen( discol );
+                     }
+                     p->drawText( xp, r.y()+m, tw, r.height()-2*m, text_flags, s, t );
+-                    p->setPen(cg.text());
++                    p->setPen( cg.text() );
+                 }
+ 
+                 // The menu item doesn't have a text label
+--- style/lipstik.h    2005-09-09 20:38:17.000000000 +0400
++++ style/lipstik.h    2005-09-09 21:01:09.000000000 +0400
+@@ -290,6 +290,7 @@ private:
+     bool _drawToolBarHandle;
+     bool _comboboxColored;
+     bool _kickerHighlight;
++    bool _lowerCaseText;
+ 
+     bool _reverseGradients;
+     bool _paintGroove;
diff --git a/x11-themes/lipstik/lipstik-1.3-r1.ebuild b/x11-themes/lipstik/lipstik-1.3-r1.ebuild
new file mode 100644 (file)
index 0000000..b8211b9
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-themes/lipstik/lipstik-1.3-r1.ebuild,v 1.1 2005/09/11 12:40:51 voxus Exp $
+
+inherit kde
+
+KLV=18223
+DESCRIPTION="Lipstik is a purified style with many options to tune your
+desktop look"
+HOMEPAGE="http://www.kde-look.org/content/show.php?content=${KLV}"
+SRC_URI="http://www.kde-look.org/content/files/${KLV}-${P}.tar.bz2"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+RESTRICT="nomirror ${RESTRICT}"
+
+need-kde 3.3
+
+src_unpack() {
+       kde_src_unpack
+       cd ${S} && epatch ${FILESDIR}/${P}-lower_case.patch
+}