Commit graph

64 commits

Author SHA1 Message Date
Dana Jansens
7aae8cc526 Set up work for making a 3.5 prerelease.
Set version stuff to 3.5.0-rc1.
Copy the CHANGELOG from 3.4-working.
Rename the obt-4.0 and obrender-4.0 pkgconfig stuff to obt-3.5 and obrender-3.5
Rename the "render" directory to "obrender" so that the public headers can be
  installed in <obrender/*>
2009-12-21 14:08:34 -05:00
Dana Jansens
b7393636e0 make a config option for the inactive osd font 2009-12-21 10:43:30 -05:00
Dana Jansens
cfdbe23e0d Add themeing options for inactive osd labels, osd.inactive.label.*
(rename the current osd label options from osd.label to osd.active.label, similar to the window.(in)?active.label options.
2009-12-21 10:35:06 -05:00
Dana Jansens
97de737767 Merge branch 'backport' into work
Conflicts:

	openbox/menuframe.c
	openbox/prompt.c
	openbox/prop.c
	openbox/prop.h
2008-02-22 12:31:26 -05:00
Dana Jansens
d9e6aa5643 Add theme options for menu line separators.
Added:
 menu.separator.color
 menu.separator.width
 menu.separator.padding.width
 menu.separator.padding.height
2008-02-22 12:13:02 -05:00
Dana Jansens
4c7cc1cfa6 Introducing the icon cache.
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 15:09:24 -05:00
Mikael Magnusson
1124d10369 Merge branch 'backport' into work
Diffing against the old work branch where most of the changes
in backport were cherry-picked from indicates this should be
alright. (0de9097017d4d1991388a35e380a57dc1135b431)
2008-02-14 19:43:02 +01:00
Dana Jansens
8186a81fe0 split menu overlap into x and y components 2008-02-14 19:40:02 +01:00
Dana Jansens
ea435b99a8 Introducing the icon cache.
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 11:44:28 +01:00
Dana Jansens
bc13099405 show a small arrow on the top/bottom of the alttab list box when there are more windows that are not visible in that direction 2008-02-06 01:32:12 -05:00
Dana Jansens
8349e4ca6b add osd border stuff 2007-06-05 15:57:27 +00:00
Dana Jansens
439d2c62fa remove the title separator width thing.
add a separate color for the title separator
2007-06-02 21:19:49 +00:00
Dana Jansens
285db844e6 add tswidth to theme.h, but its always == fbwidth 2007-06-02 20:48:18 +00:00
Dana Jansens
5588c49335 add an allow_fallback option when opening a theme 2007-05-31 15:40:41 +00:00
Dana Jansens
5e50b406d0 cosnt char* 2007-05-31 04:07:01 +00:00
Dana Jansens
c726a1f709 set the current theme in a root property 2007-05-28 13:37:32 +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
4e5c6af594 unused 2007-05-11 03:36:51 +00:00
Dana Jansens
3905872982 merge in r6153-6154 from the 3.4 branch 2007-05-07 22:07:13 +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
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
8612fcfb99 better matching of the menu titles/separators to the theme 2007-04-22 03:54:43 +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
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
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
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
d9f14c1d01 update copyright step 2 2006-08-22 16:44:18 +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
Dana Jansens
4460548ca0 wrap public headers in G_BEGIN/END_DECLS 2003-09-25 22:48:04 +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
dcc433926c code style 2003-09-14 06:42:57 +00:00
Dana Jansens
5d658c98e2 add app_(un)hilite_fg, which is never parentrelative 2003-09-12 05:56:57 +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
a72371b41f bigtime theme changes. bigtime. 2003-09-08 18:38:52 +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
f97e7133d4 allow handlewidth of 0, which sets show_handle to false 2003-08-30 19:02:10 +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
faeadd74d4 make focus and unfocus fonts for window titles. change 'xftfont' to 'font' in the themes. 2003-08-22 06:14:20 +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
960a7f0184 invisible resizing areas/grips in the top corners of the window 2003-08-02 06:20:31 +00:00
Dana Jansens
f407b5d80f add pressed bitmaps. rename stick bitmaps to desk 2003-08-01 18:11:13 +00:00
Dana Jansens
2b72e5d01c add toggled textuers for titlebar buttons 2003-08-01 17:58:48 +00:00
Dana Jansens
d4170da07e renamed the _t bitmaps, and added disabled and hover bitmaps 2003-08-01 07:02:57 +00:00
Dana Jansens
54ad34a039 move the titlebar layout from the theme to the rc file 2003-07-30 16:25:08 +00:00
Dana Jansens
632b2af7a8 fix mem leaks/crashes 2003-07-27 19:57:38 +00:00