Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-03-05 17:05:10

rayandrews
Member
From: Vancouver B.C. Canada
Registered: 2011-12-30
Posts: 179

Theme / XPM question.

All,

I'm tinkering a bit with my theme.  I like my active window looking very bold so I did this some time ago:

/* XPM */
static char *bottom_xpm[] = {
"32 5 6 1",
"     c None",
"1      c #FF0000",  // bright red
"2      c #00FF00",  // bright green
"3      c #0000FF",  // deep blue
"4      c #AAAAAA",  // siver grey
"5      c #888888",  // darker grey
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111"
};

... simple and effective, no complications, no candy.

I thought I'd fatten up the 'inactive' borders as well, and experimenting, I found  something
quite strange:

/* XPM */
static char * bottom_inactive_xpm[] = {
"32 4 6 1",
//"32 5 6 1",
"     c None",
"1            c #FF0000", // bright red
"2    c #00FF00", // bright green
"3    c #0000FF", // deep blue
"4            c #AAAAAA",  // siver grey
"5    c #888888", // darker grey
"11111111111111111111111111111111",  // top line
"11111111111111111111111111111111",  // bottom line
//"33333333333333333333333333333333",
"22222222222222222222222222222222",  // middle
"22222222222222222222222222222222"}; // middle

... if the width is '4' this produces a border consisting of two red lines, *sandwiching* two green lines!
If I add a fifth line, (blue here for test purposes)  then it's 'red red blue green green' as one would expect.
I almost can't believe my eyes, but the four line version really does sandwich like that, which seems
most strange.

Thoughts?

Offline

Board footer

Powered by FluxBB