Commit graph

85 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
7744067b6b moving shadow information out of the themes, and into the Text textures.
cleaning up some old Xft cruft in font.c also, that is no longer needed.
2007-03-04 18:47:21 +00:00
Dana Jansens
43d0f79057 fonts are no longer loaded from the theme file. instead, they are created by the application and passed in while creating/loading a theme 2007-03-04 07:12:34 +00:00
Mikael Magnusson
d4b90d3641 strstr is our friend, thanks merry 2006-08-24 22:04:19 +00:00
Mikael Magnusson
766e7ae9bf rename osx to mirrorhorizontal and split to splitvertical, this will make all themes that used them not look right so update them 2006-08-24 17:57:01 +00:00
Mikael Magnusson
d9f14c1d01 update copyright step 2 2006-08-22 16:44:18 +00:00
Mikael Magnusson
5d40209fbd make grips always 25 pixels 2006-08-18 19:48:48 +00:00
Mikael Magnusson
50292dbd75 a "osx" gradient, it is like horizontal but mirrors in the center 2006-08-01 20:34:35 +00:00
Mikael Magnusson
335a0eecc7 initial commit of split gradient, looks like some RrColor leaking perhaps 2006-06-14 19:20:46 +00:00
Mikael Magnusson
b10b0000db revert the pressed toggled thing for a while 2005-07-14 20:41:24 +00:00
Mikael Magnusson
5c95d2ffea correctly show pressed state when pressing toggled buttons, bug #2311 2005-07-14 13:02:39 +00:00
Mikael Magnusson
335e8acbfc yay no tabs in the source 2004-03-21 01:03:00 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +00:00
Dana Jansens
3740966916 simplify 2003-10-11 06:45:41 +00:00
Dana Jansens
84dae2d747 mem leak 2003-10-11 03:42:15 +00:00
Dana Jansens
281390a926 fix memory leak 2003-10-10 05:39:21 +00:00
Dana Jansens
38ed4331b1 indenting 2003-10-10 03:46:53 +00:00
Dana Jansens
16f46c296d no tabs 2003-09-17 07:44:49 +00:00
Dana Jansens
c4e4760c41 add copyright headers, adjust --version output to include copyright, and --help output to not include version output. 2003-09-17 07:32:52 +00:00
Dana Jansens
96f9db0d0c api cleanups for render/theme.h 2003-09-17 06:21:35 +00:00
Dana Jansens
8ba479a367 look in ~/.themes for themes also 2003-09-15 19:41:48 +00:00
Dana Jansens
c1b2fc5324 make openbox base-dir spec compliant, and change the theme dir structure, so that themes go in $XDG_DATA_DIRS/themes/ with gtk/metacity/whateverelse themes 2003-09-15 19:20:05 +00:00
Dana Jansens
e60dd0259a fix 2 mem leaks 2003-09-14 21:10:30 +00:00
Dana Jansens
960ce01f71 use the values passed to the function 2003-09-14 06:43:16 +00:00
Dana Jansens
5d658c98e2 add app_(un)hilite_fg, which is never parentrelative 2003-09-12 05:56:57 +00:00
Dana Jansens
6fc8e1784e handle parentrel app labels, by using the title's texture instead 2003-09-12 05:42:57 +00:00
Dana Jansens
cee67e1700 better more valid C 2003-09-12 02:19:05 +00:00
Dana Jansens
49a73ce15c add support for a default icon, but no icon has been made yet. 2003-09-12 01:11:33 +00:00
Dana Jansens
191f982dd4 allow a padding.width of 0 2003-09-08 19:09:59 +00:00
Dana Jansens
a72371b41f bigtime theme changes. bigtime. 2003-09-08 18:38:52 +00:00
Dana Jansens
a1184b2b77 add the margins to the label_height so that the text doesnt cover the bevel/border 2003-09-06 08:43:30 +00:00
Dana Jansens
aeef656993 add menu.bullet.selected.imageColor 2003-09-02 18:52:24 +00:00
Dana Jansens
06252b3076 rename back the app_selected appearances to app_hilite 2003-09-01 16:37:21 +00:00
Dana Jansens
f33bbca9e6 couple more xrdb theme format cleanups:
window.focus.font -> window.label.focus.font
window.unfocus.font -> window.label.unfocus.font
window.justify -> window.label.justify
menu.frame.* -> menu.items.*
menu.hilite.* -> menu.selected.*
*.picColor -> *.imageColor
2003-09-01 07:03:04 +00:00
Dana Jansens
e91814e99f add interlaceColor, and support interlaced gradients 2003-09-01 03:10:47 +00:00
Dana Jansens
f97e7133d4 allow handlewidth of 0, which sets show_handle to false 2003-08-30 19:02:10 +00:00
Dana Jansens
50f2037aea bugz, wrong vars 2003-08-30 18:47:02 +00:00
Dana Jansens
735776321c nicer default bullets 2003-08-29 05:44:17 +00:00
Dana Jansens
5fb0a42b2d only left-justify menus, remove the menu.frame.justify option 2003-08-28 19:53:36 +00:00
Dana Jansens
700e551390 fix a bunch of memleaks from valgrind and stuff 2003-08-28 19:10:36 +00:00
Dana Jansens
c34ef4028e half way through the changes to new menu code/design. hot shit. static menus work, on to plugins next. 2003-08-28 02:10:23 +00:00
Dana Jansens
baa236094f nevermind 2003-08-22 16:57:59 +00:00
Dana Jansens
d7ae443cb4 default font size one smaller to make default bitmaps fit better 2003-08-22 16:56:20 +00:00
Dana Jansens
faeadd74d4 make focus and unfocus fonts for window titles. change 'xftfont' to 'font' in the themes. 2003-08-22 06:14:20 +00:00
Dana Jansens
43c8a3d2bf was reading the menu bullet color into the wrong place 2003-08-14 19:31:49 +00:00
Dana Jansens
84a75ac50d make all the masks unsigned chars for consistancy woot 2003-08-12 17:51:34 +00:00
Dana Jansens
f3926a572b kill some warnings 2003-08-12 17:50:00 +00:00
Dana Jansens
b1d44ac43b rendering fixups for submenu bullets 2003-08-12 10:05:36 +00:00
Scott Moynes
a4f023cf3a Some fixes and new bugs. Someone else can do the menus because it is
clear no one gives a fuck what I think and no one else wants a window
manager that doesn't suck the same balls as every other window manager.
2003-08-11 21:19:17 +00:00
Dana Jansens
764e0e2866 oops indenting 2003-08-02 08:11:45 +00:00