[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/kwin/clients/modernsystem
From:       Sandro Giessl <sandro () giessl ! com>
Date:       2005-07-11 19:55:51
Message-ID: 1121111751.467643.1709.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 433768 by giessl:

Make the arrow direction of the restore button change depending on the placement
(point to the right when the custom button position is left), same behavior as
the System++ style.

Knut, thanks for the patch. It didn't work for me, but I fixed it the
KCommonDecorationButton-way. :)
CCMAIL: knutmj@online.no


 M  +5 -2      modernsys.cpp  


--- trunk/KDE/kdebase/kwin/clients/modernsystem/modernsys.cpp #433767:433768
@@ -29,9 +29,12 @@
 static unsigned char maximize_bits[] = {
     0x00, 0x18, 0x3c, 0x7e, 0xff, 0xff, 0x00, 0x00};
 
-static unsigned char minmax_bits[] = {
+static unsigned char r_minmax_bits[] = {
     0x0c, 0x18, 0x33, 0x67, 0xcf, 0x9f, 0x3f, 0x3f};
 
+static unsigned char l_minmax_bits[] = {
+    0x30, 0x18, 0xcc, 0xe6, 0xf3, 0xf9, 0xfc, 0xfc};
+
 static unsigned char unsticky_bits[] = {
     0x3c, 0x42, 0x99, 0xbd, 0xbd, 0x99, 0x42, 0x3c};
 
@@ -307,7 +310,7 @@
                 setBitmap(iconify_bits);
                 break;
             case MaxButton:
-                setBitmap( isOn() ? minmax_bits : maximize_bits );
+                setBitmap( isOn() ? (isLeft()?l_minmax_bits:r_minmax_bits) : maximize_bits );
                 break;
             case OnAllDesktopsButton:
                 setBitmap( isOn() ? unsticky_bits : sticky_bits );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic