Commit graph

169 commits

Author SHA1 Message Date
Dana Jansens
ec304c9e43 scary commit..but here goes.
YOUR THEMES ARE NOW OFFICIALLY BROKEN.

Openbox has just moved it's theme format to an XML based one. The details of
this format can be found in data/themerc.xsd (and http://openbox.org/themerc.xsd

ALSO! This is very good and important and stuff! In the tools directory you
will find THEMETOXML ! This tool takes a themerc on stdin, and spits out
the same theme in theme.xml format. So this is all you need to do to update
your themes.

PLEASE NOTE: This themetoxml does _not_ install itself anywhere. It simply
builds and then lives out in its tools/themetoxml directory, and that's it. So
if you want to use it, that is where to find it.

In moving to the new XML format, a number of additions/changes to the theme
engine have been made. Themetoxml takes these into account and will set all
the new things appropriately to make your theme look the same as it always has.

New additions include..
* padding now has an horizontal and vertical component, instead of being one number
* menus can have different borders than windows (color and size)
* menu offset can now be negative. it's a little weird, but someone will want it no doubt
* fonts are no longer controled by the theme at all, however font shadowing is, and on that note..
* font shadows are now any color you want, not just black and white
* you can now set the shadow anywhere you can set the text's color, so you have more control, i.e. you can set shadow on active menu items but not inactive, or disabled, etc.
* every color now has an alpha channel. at the moment they don't do anything, besides the font shadow one, but it leaves room for future explorations. it is REALLY HIGHLY RECOMMENDED that you set the alpha to 255 all the time, until such time as it could be useful. otherwise one day your theme may turn awful for people.
* font colors are in the range 0-255, in case you were wondering, and they have to be specified in decimal
* if you'd like to change you font's you can do so in your configuration file. this is how it is going to stay. changing the font in the theme assumes too much about peoples eye sight and locality and stuff. it doesn't belong there, sorry. the system-wide default rc.xml includes the new font settings for your viewing pleasure, and ill drop an example of it below.
* shadows can now be positioned in any direction, they have both an x and a y offset which can be negative and positive. and offset of 0,0 will disable the shadow

This isn't a release or anything. If someone had some good ideas about the xml theme format, I'd like to hear them. But I don't think it will be changing much right now beyond where it is. I don't even know how the new functionality will play out for themers, so we'll see.

Whew.. I guess that's it. I'm not sure if I mentioned every little change or not, but oh well. Mileage may vary.. Please send any feedback.

Here's the font configuration example. Hopefully ObConf will let you set this real soon.

<theme>
...
  <font place="ActiveWindow">
    <name>arial,sans</name>
    <size>7</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
  <font place="InactiveWindow">
    <name>arial,sans</name>
    <size>7</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
  <font place="MenuTitle">
    <name>arial,sans</name>
    <size>8</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
  <font place="MenuItem">
    <name>arial,sans</name>
    <size>8</size>
    <weight>bold</weight>
    <slant>normal</slant>
  </font>
</theme>
2007-03-05 15:44:17 +00:00
Dana Jansens
191a0bc075 i moved the font shadow stuff back into the theme, so move them out of the font configuration stuff 2007-03-04 18:49:16 +00:00
Dana Jansens
e5ad7721ff add the new font things to our example rc.xml and the xsd stylesheet 2007-03-04 17:18:40 +00:00
Mikael Magnusson
b18846db69 Add MoveFromEdge* actions, shorten client_directional_edge_search with some handy #defines 2006-10-31 03:33:21 +00:00
Mikael Magnusson
1fbc70da58 disable middle menus by default 2006-09-06 10:50:33 +00:00
Mikael Magnusson
d84f1aac10 remove .cvsignore files 2006-08-31 13:49:36 +00:00
Mikael Magnusson
26dd616b1f change default theme in example rc file 2006-08-20 20:58:52 +00:00
Mikael Magnusson
71ba050bfa fix syntax error in default config 2006-08-19 18:51:25 +00:00
Mikael Magnusson
83a0303dd7 add option titleNumber in theme section to disable the little [x] that you get after identical window titles 2006-08-16 19:32:13 +00:00
Mikael Magnusson
56c548b203 make menus optionally vertically centered, and enable by default, see bug #2746 2006-08-02 17:25:32 +00:00
Mikael Magnusson
8cb6e95eb6 add moverelative and resizerelative 2006-08-02 16:36:40 +00:00
Mikael Magnusson
6212b7c19b update rc.xml.in, also thanks to jonas k��lker 2006-08-01 19:47:09 +00:00
Mikael Magnusson
dd33cfe70b update rc.xsd, many thanks to jonas k��lker 2006-08-01 19:43:01 +00:00
Mikael Magnusson
ed61a94ca5 per app settings 2006-06-08 10:18:31 +00:00
Mikael Magnusson
e1665d70b5 add showDelay to dock 2005-09-25 14:45:24 +00:00
Mikael Magnusson
6236d2bcc2 add movetocenter here 2005-09-06 06:34:19 +00:00
Mikael Magnusson
1cfb65bc40 add a config option hideDisabled in the theme section that hides disabled buttons instead of showing them as disabled, based on patch in bug #2310 2005-07-14 13:44:33 +00:00
Mikael Magnusson
498ae4cc20 add noStrut option to dock and fix up rc.xsd, some options were in the wrong section due to hideDelay being in both dock and menu 2005-03-25 20:17:45 +00:00
Mikael Magnusson
916e24d9c4 Add a FocusToBottom action which moves the client to the bottom of the focus order stack 2005-03-11 21:49:54 +00:00
Mikael Magnusson
558ea325dd *** empty log message *** 2005-02-12 01:59:55 +00:00
Mikael Magnusson
ff39f02c38 add an option to resize with 4 corners as it was long ago and make the default 9 "corners" with the middle corner being move. that way you only need one mod+button to move and resize windows 2004-11-04 12:13:25 +00:00
Mikael Magnusson
10805a4764 config option for icons in desktop menus 2004-10-31 10:10:33 +00:00
Mikael Magnusson
c02f68499f option to make dragging and findedge ignore windows on lower layers 2004-09-04 19:45:38 +00:00
Mikael Magnusson
aa88bc9918 togglefullscreen action from Joaquin Aguirrezabalaga 2004-08-17 21:33:55 +00:00
Mikael Magnusson
16f4b6a346 something like this maybe 2004-04-22 12:44:20 +00:00
Mikael Magnusson
dd7c6ad734 add back the focusLast option for the "i lost count"th time 2004-02-24 20:26:08 +00:00
Dana Jansens
5b2ac0a66c remove the debian menu file 2003-10-27 20:43:41 +00:00
Dana Jansens
9c02177301 dont wrap in the default keyboard desktop switching bindings 2003-10-12 20:47:05 +00:00
Dana Jansens
80c9f16876 reverse the directions for the default mouse wheel bindings 2003-10-12 20:38:31 +00:00
Dana Jansens
c361784b78 remove restart from the menu 2003-09-29 07:41:24 +00:00
Dana Jansens
ff04a81e62 add option for under-mouse placement 2003-09-28 09:06:40 +00:00
Dana Jansens
fa962c1604 removing focusLast again.. 2003-09-28 08:45:43 +00:00
Dana Jansens
396be581c3 add the dialog option for actions 2003-09-27 18:01:25 +00:00
Dana Jansens
0919413fca remove the dialog option section 2003-09-27 17:59:24 +00:00
Dana Jansens
4e8eff328c add <dialog><focus/><desktop/> to allow disabling popups 2003-09-26 08:22:49 +00:00
Dana Jansens
b192784070 add <dock><moveButton> which can change which button combo is used to move dock apps around in the dock. The new default is A-Left instead of Middle, since soem dock apps use middle, assuming they can! 2003-09-26 07:59:06 +00:00
Dana Jansens
a5fa1fee98 show the client menu on press instead of click on the window's icon in the titlebar. remove the double click binding which cant be hit when youre poppin a menu on press/click 2003-09-26 06:07:05 +00:00
Dana Jansens
5d3f1763fa updates and fixes for the xml/xsd shit 2003-09-26 05:30:01 +00:00
Dana Jansens
7d8b272f8f remove old gnome1 shit 2003-09-25 21:59:37 +00:00
Dana Jansens
3a595d037d make the gnome-control-center launch obconf for configuring openbox 2003-09-25 14:38:34 +00:00
Dana Jansens
cc19a55f0e add raise to the desktop left press binding 2003-09-24 05:08:27 +00:00
Dana Jansens
907d9d4ce5 same thing 2003-09-22 18:09:48 +00:00
Dana Jansens
65ebb4a826 udpate comment to match new basedir shit 2003-09-22 18:09:23 +00:00
Dana Jansens
4949c52de0 update hideTimeout to hideDelay 2003-09-22 18:08:51 +00:00
Dana Jansens
ff398ce922 update to the new hideDelay option 2003-09-22 18:07:30 +00:00
Dana Jansens
af3ae51f82 fix capitalization 2003-09-22 06:46:22 +00:00
Dana Jansens
88ae91f677 add focusLast and raiseOnFocus 2003-09-22 06:38:15 +00:00
Dana Jansens
9d0864ce63 add focusLast and raiseOnFocus 2003-09-22 06:05:47 +00:00
Dana Jansens
2033f09441 add the generated xml files 2003-09-19 20:02:33 +00:00
Dana Jansens
86fa7c0966 add the schemas to the distribution 2003-09-19 19:17:26 +00:00