Commit graph

58 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
c5b551b25a add -fno-strict-aliasing to the gcc compiler flags. this is needed, see:
http://www.exim.org/mail-archives/exim-users/Week-of-Mon-20030721/msg00141.html

| It's not a compiler bug.  It is a C99 bug, or more exactly, a
| feature.  C99 changed the semantic of the C language with respect to
| aliasing questions.   Now, the compiler can assume that pointer to
| different types points to different memory location.  This breaks all
| the OO code written in C.
|
| This is a very good idea that the compiler issues a warning message
| because the semantic of language really changed and you want to revert
| to the old semantic.
|
| The make package MUST add -fno-strict-aliasing.  It is not a
| convenience to get rid off warnings.
2007-03-03 00:58:37 +00:00
Mikael Magnusson
c4dc6e231d unused thingies 2006-08-31 13:50:47 +00:00
Mikael Magnusson
d84f1aac10 remove .cvsignore files 2006-08-31 13:49:36 +00:00
Mikael Magnusson
f5202acb60 just make configure --help output slightly less confusing, no functional change 2006-08-22 16:17:50 +00:00
Mikael Magnusson
e0aa54a891 rip out the VIDMODE extension stuff. this was only used to size fullscreen windows to the viewport, i doubt anyone is actually using it and it interacts very badly with xinerama. 2006-06-11 09:47:53 +00:00
Mikael Magnusson
ca9c3e2c14 just some fixes to the autoconf stuff 2004-11-07 18:22:05 +00:00
Dana Jansens
6f5292c87e define DEBUG, NDEBUG, and G_DISABLE_ASSERTS 2003-10-01 17:28:12 +00:00
Dana Jansens
c798c990b4 better ac macro usage 2003-08-23 17:07:36 +00:00
Dana Jansens
a60d6a6d4c add the new m4s 2003-07-23 04:15:00 +00:00
Dana Jansens
a55c3ae601 more stuff to ignore 2003-07-22 16:13:49 +00:00
Dana Jansens
6923e53751 add a makefile so i can put stuff into the make dist 2003-06-29 08:47:04 +00:00
Dana Jansens
1052ca3f74 python support is gone 2003-06-29 08:46:44 +00:00
Dana Jansens
373a4584d6 make session management optional 2003-06-21 08:45:25 +00:00
Dana Jansens
438924b2ad remove --enable-gl 2003-06-19 23:29:07 +00:00
Dana Jansens
6a947144cc better alpha/beta check :) 2003-05-29 15:38:47 +00:00
Dana Jansens
e6255a0264 look for 'alpha' and 'beta' releases also 2003-05-29 15:30:05 +00:00
Dana Jansens
c8dc32b67a omg wrong branch! 2003-05-25 20:42:04 +00:00
Dana Jansens
e5bb095ded always gl. fontconfig instead of xft. 2003-05-25 20:26:48 +00:00
Dana Jansens
f54e8c9ba0 add --enable-gl support, and put the flags/libs in the appropriate makefiles 2003-05-23 05:30:00 +00:00
Dana Jansens
19500061fb argh put it back right!*( 2003-05-20 05:18:20 +00:00
Dana Jansens
d1ccdfc97a fuck it, put it back 2003-05-20 05:16:49 +00:00
Dana Jansens
14cab4f933 smarter default debug value :) 2003-05-20 05:05:34 +00:00
Dana Jansens
644d629501 default debug off (for non-cvs builds!) 2003-05-20 05:04:22 +00:00
Dana Jansens
f26f23de50 all my changes while i was offline.
better alt-tabbing. better transient handling. i dont even know. lots of fucking cool shit so WATCH the FUCK OUT.
2003-05-09 16:57:17 +00:00
Dana Jansens
86f1830d0a build fixes for finding Xlibs and for setting vars based on found Xlib info and Xinerama info 2003-04-06 10:47:16 +00:00
Dana Jansens
5d665673a2 fixes for build system. add themes to the install process. use the build/ dir for configures trash dump 2003-04-06 09:56:57 +00:00
Dana Jansens
d447dc0f59 new build system without automake 2003-04-03 05:59:03 +00:00
Dana Jansens
0a69cfc6d2 add strict ansi compliance 2003-03-21 20:25:34 +00:00
Dana Jansens
f8a47de5ec merge the C branch into HEAD 2003-03-16 21:11:39 +00:00
Dana Jansens
7c8c9e998f new swig build system. much better. yay. 2003-02-05 15:38:29 +00:00
Dana Jansens
7d94983b2e give output when building a cvs release 2003-02-05 10:43:11 +00:00
Dana Jansens
1d4cff7d1e move the otk swig module into its own lib/directory 2003-02-05 10:40:43 +00:00
Dana Jansens
c8702ceb70 REMOVE -fno-rtti. we use that! 2003-01-22 06:09:18 +00:00
Dana Jansens
031da4f1cf -fno-rtti as in cxxflags too! 2003-01-22 06:08:39 +00:00
Dana Jansens
9280f1b601 fix the stupid spelling 2003-01-22 01:22:50 +00:00
Dana Jansens
ac48993ed8 add -fno-check-new -fno-execptions to the g++ cxxflags 2003-01-22 01:09:19 +00:00
Dana Jansens
035f7d3ff4 use -export-dynamic when linking libpython.a 2003-01-16 09:30:28 +00:00
Dana Jansens
2a18a4b222 add comment 2003-01-14 23:53:23 +00:00
Dana Jansens
21b5c60231 check for XftGetVersion 2003-01-14 23:53:04 +00:00
Dana Jansens
7c9ba37f01 keep the asserts for !debug builds.. 2003-01-13 02:10:19 +00:00
Dana Jansens
1b59ea5989 dont show find errors 2003-01-12 20:42:20 +00:00
Dana Jansens
259f02836b used old vars 2003-01-11 05:05:26 +00:00
Dana Jansens
6741d0572d caps 2003-01-11 05:00:08 +00:00
Dana Jansens
182cfb2145 caps for giving the build target. show it at the end 2003-01-11 04:58:31 +00:00
Dana Jansens
8c08575433 check for cvs in the version properly 2003-01-11 04:54:36 +00:00
Dana Jansens
0f16855abc cvs builds are always debug 2003-01-11 04:36:25 +00:00
Dana Jansens
346151534b use the right lib 2003-01-11 04:26:14 +00:00
Dana Jansens
02601c2856 my newer better autoconf functions. woowoo 2003-01-11 04:10:35 +00:00
Dana Jansens
54e4a15d51 adding my autoconf functions. woowoo 2003-01-11 04:07:05 +00:00