Add shade and unshade buttons

gtk-3.4
Satyajit Sahoo 2013-08-08 10:27:28 +05:30
parent 6821ac4b34
commit 87f0e146ca
43 changed files with 212 additions and 21 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 182 B

View File

@ -304,15 +304,19 @@
<!-- shade icon --> <!-- shade icon -->
<draw_ops name="shade_focused"> <draw_ops name="shade_focused">
<image filename="shade_focused_normal.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_focused_prelight"> <draw_ops name="shade_focused_prelight">
<image filename="shade_focused_prelight.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_focused_pressed"> <draw_ops name="shade_focused_pressed">
<image filename="shade_focused_pressed.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_unfocused"> <draw_ops name="shade_unfocused">
<image filename="shade_unfocused.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_unfocused_prelight"> <draw_ops name="shade_unfocused_prelight">
@ -325,15 +329,19 @@
<!-- unshade icon --> <!-- unshade icon -->
<draw_ops name="unshade_focused"> <draw_ops name="unshade_focused">
<image filename="unshade_focused_normal.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_focused_prelight"> <draw_ops name="unshade_focused_prelight">
<image filename="unshade_focused_prelight.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_focused_pressed"> <draw_ops name="unshade_focused_pressed">
<image filename="unshade_focused_pressed.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_unfocused"> <draw_ops name="unshade_unfocused">
<image filename="unshade_unfocused.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_unfocused_prelight"> <draw_ops name="unshade_unfocused_prelight">

View File

@ -316,15 +316,19 @@
<!-- shade icon --> <!-- shade icon -->
<draw_ops name="shade_focused"> <draw_ops name="shade_focused">
<image filename="shade_focused_normal.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_focused_prelight"> <draw_ops name="shade_focused_prelight">
<image filename="shade_focused_prelight.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_focused_pressed"> <draw_ops name="shade_focused_pressed">
<image filename="shade_focused_pressed.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_unfocused"> <draw_ops name="shade_unfocused">
<image filename="shade_unfocused.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="shade_unfocused_prelight"> <draw_ops name="shade_unfocused_prelight">
@ -337,15 +341,19 @@
<!-- unshade icon --> <!-- unshade icon -->
<draw_ops name="unshade_focused"> <draw_ops name="unshade_focused">
<image filename="unshade_focused_normal.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_focused_prelight"> <draw_ops name="unshade_focused_prelight">
<image filename="unshade_focused_prelight.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_focused_pressed"> <draw_ops name="unshade_focused_pressed">
<image filename="unshade_focused_pressed.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_unfocused"> <draw_ops name="unshade_unfocused">
<image filename="unshade_unfocused.png" x="0" y="1" width="object_width" height="object_height" />
</draw_ops> </draw_ops>
<draw_ops name="unshade_unfocused_prelight"> <draw_ops name="unshade_unfocused_prelight">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

View File

@ -1,4 +1,4 @@
#define shade_width 8 #define shade_width 8
#define shade_height 8 #define shade_height 8
static unsigned char shade_bits[] = { static unsigned char shade_bits[] = {
0x18, 0x3c, 0x7e, 0xff, 0x18, 0x18, 0x18, 0x18 }; 0x18, 0x3c, 0x7e, 0xff, 0xdb, 0x18, 0x18, 0x18 };

View File

@ -1,4 +1,4 @@
#define shade_toggled_width 8 #define shade_toggled_width 8
#define shade_toggled_height 8 #define shade_toggled_height 8
static unsigned char shade_toggled_bits[] = { static unsigned char shade_toggled_bits[] = {
0x18, 0x18, 0x18, 0x18, 0xff, 0x7e, 0x3c, 0x18 }; 0x18, 0x18, 0x18, 0xdb, 0xff, 0x7e, 0x3c, 0x18 };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 172 B

BIN
unity/minimized.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 181 B

View File

@ -1,23 +1,22 @@
/* XPM */ /* XPM */
static char * close_inactive_xpm[] = { static char * close_inactive_xpm[] = {
"16 16 17 1", "16 16 16 1",
" c None", " c None",
". c #2D2D2D", ". c #2D2D2D",
"+ c #ADA9A8", "+ c #AAAAAA",
"@ c #848181", "@ c #828282",
"# c #3A3A3A", "# c #3A3A3A",
"$ c #858383", "$ c #848484",
"% c #A5A1A0", "% c #A2A2A2",
"& c #484747", "& c #474747",
"* c #3B3B3B", "* c #3B3B3B",
"= c #A6A3A2", "= c #A4A4A4",
"- c #A39F9D", "- c #A0A0A0",
"; c #4C4B4B", "; c #4B4B4B",
"> c #A29F9E", "> c #A1A1A1",
", c #A3A09F", ", c #464646",
"' c #474646", "' c #818181",
") c #83807F", ") c #383838",
"! c #383838",
"................", "................",
"................", "................",
"................", "................",
@ -27,9 +26,9 @@ static char * close_inactive_xpm[] = {
"....*=+--+%#....", "....*=+--+%#....",
".....;=++-&.....", ".....;=++-&.....",
".....;=++-&.....", ".....;=++-&.....",
"....*=+>>+%#....", "....*=+--+%#....",
"....$+,'',+@....", "....$+>,,>+@....",
"....+)!..!)+....", "....+')..)'+....",
"................", "................",
"................", "................",
"................", "................",

View File

@ -3,7 +3,7 @@ static char * hide_inactive_xpm[] = {
"16 16 3 1", "16 16 3 1",
" c None", " c None",
". c #2D2D2D", ". c #2D2D2D",
"+ c #ADA9A8", "+ c #AAAAAA",
"................", "................",
"................", "................",
"................", "................",

View File

@ -3,7 +3,7 @@ static char * maximize_inactive_xpm[] = {
"16 16 3 1", "16 16 3 1",
" c None", " c None",
". c #2D2D2D", ". c #2D2D2D",
"+ c #ADA9A8", "+ c #AAAAAA",
"................", "................",
"................", "................",
"................", "................",

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_active_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #DBDBDB",
"................",
"................",
"................",
"................",
".......++.......",
"......++++......",
".....++++++.....",
"....++++++++....",
"...+++.++.+++...",
".......++.......",
".......++.......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_inactive_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #AAAAAA",
"................",
"................",
"................",
"................",
".......++.......",
"......++++......",
".....++++++.....",
"....++++++++....",
"...+++.++.+++...",
".......++.......",
".......++.......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_prelight_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #D64937",
"................",
"................",
"................",
"................",
".......++.......",
"......++++......",
".....++++++.....",
"....++++++++....",
"...+++.++.+++...",
".......++.......",
".......++.......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_pressed_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #B44335",
"................",
"................",
"................",
"................",
".......++.......",
"......++++......",
".....++++++.....",
"....++++++++....",
"...+++.++.+++...",
".......++.......",
".......++.......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_toggled_active_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #DBDBDB",
"................",
"................",
"................",
"................",
".......++.......",
".......++.......",
".......++.......",
"...+++.++.+++...",
"....++++++++....",
".....++++++.....",
"......++++......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_toggled_inactive_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #AAAAAA",
"................",
"................",
"................",
"................",
".......++.......",
".......++.......",
".......++.......",
"...+++.++.+++...",
"....++++++++....",
".....++++++.....",
"......++++......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_toggled_prelight_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #D64937",
"................",
"................",
"................",
"................",
".......++.......",
".......++.......",
".......++.......",
"...+++.++.+++...",
"....++++++++....",
".....++++++.....",
"......++++......",
".......++.......",
"................",
"................",
"................",
"................"};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * shade_toggled_pressed_xpm[] = {
"16 16 3 1",
" c None",
". c #2D2D2D",
"+ c #B44335",
"................",
"................",
"................",
"................",
".......++.......",
".......++.......",
".......++.......",
"...+++.++.+++...",
"....++++++++....",
".....++++++.....",
"......++++......",
".......++.......",
"................",
"................",
"................",
"................"};