Commit graph

383 commits

Author SHA1 Message Date
Dana Jansens
6017c061eb build fixes 2007-05-12 21:24:24 +00:00
Dana Jansens
d3ecb7c127 change how masks are loaded, let you override just one. simpler code too. 2007-05-12 16:59:18 +00:00
Mikael Magnusson
eab6ff75c0 micromicrooptimization 2007-05-12 16:56:36 +00:00
Dana Jansens
410bf6dc53 make default masks even sized. these are from the clearlooks theme, probably from somewhere else before that. 2007-05-11 23:08:30 +00:00
Dana Jansens
b63ad92cca give different border colors to active and inactive windows. adjust the xml theme format a little to make it BETTER. rawr. add some metadata standards too. 2007-05-11 22:18:43 +00:00
Dana Jansens
d8919a9bf8 guarantee an even height for the label, and thus the titlebar, and thus the buttons. that way an even sized mask in the button will always be centred 2007-05-11 05:34:53 +00:00
Dana Jansens
c0ddd76ac5 change fallbacks 2007-05-11 03:48:41 +00:00
Dana Jansens
7956103a81 make fallbacks match 3.4 2007-05-11 03:46:09 +00:00
Dana Jansens
7d6caee44b memory leak on the server 2007-05-11 03:36:58 +00:00
Dana Jansens
4e5c6af594 unused 2007-05-11 03:36:51 +00:00
Dana Jansens
5667acacbc PANGO_VERSION_CHECK is new 2007-05-10 14:31:44 +00:00
Dana Jansens
c4385c098f use pango 1.16 stuff if its there. and use the old stuff if not. also! save it in static variable so we dont have to update it over and over. 2007-05-09 21:41:16 +00:00
Dana Jansens
ef4bec071b mem leaks 2007-05-09 21:26:17 +00:00
Dana Jansens
c6eabf1880 fix using uninit'd values 2007-05-09 20:38:27 +00:00
Dana Jansens
3905872982 merge in r6153-6154 from the 3.4 branch 2007-05-07 22:07:13 +00:00
Dana Jansens
82b2f0aa7a popups fixes. if the text for the popup is empty now, there wont be extra padding for it. desktop name fixes. 2007-05-07 06:33:43 +00:00
Dana Jansens
526560b8a0 changes to the client menu, which entries are there, and reorganizing, and renaming.
let you highlight disabled menu entries, they just aren't runable of course, and add the activedisabled theme element for these entries.
add the all desktops button picture to "All desktops" in the client menu
update the themes for the new element, and some changes to make things more readable-better contrast.

CLEARLOOKS-OLIVE is now DIFFERENT FROM THE 3.4 BRANCH SO DON'T RE-RUN THEMETOXML ON IT :( :(
yeah.. i think that is everything?
2007-05-05 22:26:59 +00:00
Dana Jansens
020cbeff19 unsigned.. 2007-05-03 03:17:18 +00:00
Dana Jansens
66d6e1120e small change to the render API. RrMinsize became RrMinSize. added RrMinWidth and RrMinHeight.
make focus/desktop popups wider based on the screen size with the old size as a minimum.
left-align the desktop dialog.. i think better dialogs would be nice. and to make them hide or something when you switch desktops while switching windows etc.
2007-05-02 00:35:22 +00:00
Dana Jansens
4e590eba23 add a separate font config for onscreendisplays
change menutitle in the rc to menuheader
fix up the xsd for fonts
2007-04-26 13:10:36 +00:00
Dana Jansens
c4ba6e605a assume a valid utf8 char is at the shortcut position. the menu parser makes sure of this 2007-04-26 03:18:48 +00:00
Dana Jansens
b5dbe857db dont go to disabled menu entries with keyboard shortcuts
fix some rendering of shortcuts
2007-04-25 18:26:02 +00:00
Dana Jansens
0c41ab3c20 make rendering the shortcuts much faster 2007-04-25 18:04:15 +00:00
Dana Jansens
0927804559 "text" was no longer needed 2007-04-25 01:59:56 +00:00
Dana Jansens
138d3e38d8 add shortcuts for text rendering. it underlines the first character in the string that matches the shortcut 2007-04-25 01:32:43 +00:00
Dana Jansens
f507432c86 error in the new error message code 2007-04-23 20:36:51 +00:00
Dana Jansens
2442cdfd85 1) translate all of openbox's output
2) update copyrights.
3) make release. ok that part not quite yet.
2007-04-23 17:56:35 +00:00
Dana Jansens
8612fcfb99 better matching of the menu titles/separators to the theme 2007-04-22 03:54:43 +00:00
Mikael Magnusson
58be283e94 copy paste error, spotted by tilman ftw 2007-03-28 18:15:36 +00:00
Dana Jansens
bd27269850 more updates for toggled states. also updating the theme files. 2007-03-28 03:51:27 +00:00
Dana Jansens
5fb30e4488 add toggled-pressed and toggled-hover button states to themes. also rename toggled to be toggled-unpressed 2007-03-28 03:32:46 +00:00
Dana Jansens
3678f8df8a use const char*'s when we should be 2007-03-18 15:07:30 +00:00
Dana Jansens
4e19d8411d add support for 8bit TrueColor visuals. Who knew these existed. Fixes vnc's 8bit mode. (bug 2878) 2007-03-14 03:05:47 +00:00
Dana Jansens
56307d6077 a) remove the top_grip_height business from the theme
b) make the focus indicator based on border width and padding, not the handle height
c) add 2 more windows for the top corners for resizing, much easier to find them now. also base their width on padding, not the handle height or other weird things
2007-03-08 01:26:03 +00:00
Dana Jansens
b37a8b7e76 Fix possible crashingness, from last commit. 2007-03-08 01:03:13 +00:00
Dana Jansens
a79651294c Split RrPaint to RrPaint and RrPaintPixmap, so you can paint things other than windows. If you don't free the returned pixmap though, you will be leaking memory in the server! 2007-03-07 22:57:10 +00:00
Dana Jansens
45087efbcd point and padding became redundant.. do remove padding type from xsd and use point type. also fix bug in theme parser where it was looking for wrong one. 2007-03-05 16:23:13 +00:00
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
d209d828a7 assert on invalid color values 2007-03-05 05:25:16 +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
5109b5ae20 keep the default tint at 50, for theme compatibility 2007-03-04 17:31:18 +00:00
Dana Jansens
f7fe596e28 lighten the default shadow, it's alittle harsh right now 2007-03-04 17:03:50 +00:00
Dana Jansens
d0f9d647aa remove the font code for parsing Xft font strings. we are using the individual values specified in the user's configuration now, no longer using the strings from the theme file at all 2007-03-04 07:14:25 +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
Dana Jansens
3b77950a79 add font weight and font slant enumerations 2007-03-04 01:08:51 +00:00
Dana Jansens
ac6fe98008 use font 8point by default if none is specified 2007-03-04 01:08:33 +00:00
Dana Jansens
41e272bd27 add missing comment 2007-03-04 00:47:26 +00:00
Dana Jansens
8343a8192f fix memleak, free the render instance on shutdown. 2007-03-03 02:53:57 +00:00
Dana Jansens
037fc862b0 pango is now mandatory..
lots of cleanups to the pango code, which was a very nice base to start from. thanks to whomever wrote that for us.. put some of the pango variables into the various render structs so that they don't need to be created all the time. put the pango context inside our RrInstance so that it can be properly freed at shutdown. removed xft dependencies all through the code and the build system also. who knows if this will break compiling for some poor souls. i guess we'll find out, won't we!
2007-03-03 02:53:41 +00:00
Dana Jansens
07fe0980be declare variables at the beginning of blocks, because it is nice to do so. and polite? 2007-03-02 22:11:46 +00:00