Commit graph

92 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
Mikael Magnusson
d3d4aa2987 80 cols 2006-11-15 21:12:06 +00:00
Mikael Magnusson
d9f14c1d01 update copyright step 2 2006-08-22 16:44:18 +00:00
Mikael Magnusson
a8274acdd6 useless * 2006-08-20 16:44:33 +00:00
Mikael Magnusson
e8c19d0c99 patch from thorsten vollmer to fix bug #2506, interlaces and bevels not drawing correctly 2006-08-20 07:15:18 +00:00
Mikael Magnusson
005eb35ee8 fix some warnings from -Wall 2006-08-19 05:05:36 +00:00
Mikael Magnusson
e3c52da8c3 can't call ob_debug from libobrender... 2006-08-03 13:51:19 +00:00
Mikael Magnusson
95222014e2 maybe fix some stuff, i dunno 2006-08-03 01:12:29 +00:00
Mikael Magnusson
dd48997668 fix two memleaks 2006-06-11 10:21:35 +00:00
Mikael Magnusson
f0a82ab599 make reverse_bits static 2006-03-14 17:32:35 +00:00
Mikael Magnusson
f1ed62cead fix 1bit bitmaps on msbfirst architectures + some indentation fixes 2006-03-14 15:27:15 +00:00
Mikael Magnusson
8f9aae0cc2 fix the dpi stuff with pango by reading the right ascent and descent stuff 2005-07-15 14:39:31 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +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
3559312321 free XImages 2003-09-14 06:42:33 +00:00
Dana Jansens
4cbfe3eac0 new scaling based on the Bresenham algorithm 2003-09-04 06:23:57 +00:00
Dana Jansens
e9c1e44e68 provide a function to give the margins for an appearance 2003-09-03 06:28:57 +00:00
Dana Jansens
83c213143e we use the offsets we get from the server, we should use the byte order too.. 2003-09-03 05:28:19 +00:00
Dana Jansens
3b2b0998fc remove debug print 2003-09-02 17:42:57 +00:00
Dana Jansens
4a107aa4b3 i rul.. at typos.. 2003-09-01 03:35:45 +00:00
Dana Jansens
1d31a09fd3 copy/free the new interlaced color 2003-09-01 03:34:24 +00:00
Dana Jansens
cd75b454eb add RrColorGC
add a LineArt texture type for drawing a line, this is used for drawing the menu separators
2003-08-31 17:02:49 +00:00
Dana Jansens
75e948b197 free rgba texture caches 2003-08-28 19:06:35 +00:00
Dana Jansens
8146cdb6ee formatting 2003-08-23 06:26:23 +00:00
Dana Jansens
b95d977951 80 cols 2003-08-23 06:25:23 +00:00
Dana Jansens
a283652736 stupid function name die 2003-08-23 06:16:14 +00:00
Dana Jansens
3a26c8aa8e move the dekstop file to data/ 2003-08-01 15:00:22 +00:00
Dana Jansens
159ef95805 space 2003-07-24 05:25:33 +00:00
Dana Jansens
9352747a3c init the parent shit in the surface when making a copy 2003-07-23 23:09:11 +00:00
Dana Jansens
70a38951b3 removed the RrEndian so using LSBFirst always now. hopefully this works! 2003-07-11 16:07:43 +00:00
Dana Jansens
58be655de3 remove rependancy on geom.h from the kernel, provide what is used in its own geom.h 2003-07-10 04:31:34 +00:00
Dana Jansens
a12e73cf37 read fonts and titlebar layout from theme files 2003-06-26 01:29:45 +00:00
Dana Jansens
0a8fa636cd always create the bg pixmap, X seems to not like it if i dont? 2003-06-21 17:13:45 +00:00
Dana Jansens
5929a63f95 more namespacing with Rr* 2003-06-21 02:39:56 +00:00
Dana Jansens
bb6b616b9c more namespacing with Rr* 2003-06-21 02:39:55 +00:00
Dana Jansens
768c3cd4a9 more namespacing with Rr* 2003-06-21 02:30:15 +00:00
Dana Jansens
33ec08ea22 more namespacing with Rr* 2003-06-21 02:30:14 +00:00
Dana Jansens
c100b72c5d more namespacing with Rr* 2003-06-21 02:26:50 +00:00
Dana Jansens
dbe2851b91 more namespacing to Rr* 2003-06-21 02:15:13 +00:00
Dana Jansens
092616de9a rename pixel32/16 to RrPixel32/16 2003-06-21 02:00:42 +00:00
Dana Jansens
3f32dfa87e this is going to break the kernel/ building.
lots of modifications to the render API, prefixing everything, making proper
names for everything. the structures are not hidden/opaque yet, but the naming scheme of the public API works much better now.
2003-06-20 07:58:51 +00:00
Dana Jansens
cd12a2eae5 simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever. 2003-06-20 02:17:23 +00:00
Dana Jansens
6e93be1d2e remove non-planar surfaces 2003-06-20 00:05:51 +00:00
Derek Foreman
48a75b80d6 gl is starting. it's gonna get really ugly really fast, folks 2003-05-25 00:42:02 +00:00
Derek Foreman
c00accbd25 removed a piece of code I suspect has never been run
this is for XServers that report less than 8 bpp default visual and support
8bpp or higher visuals

hopefully nothing is really that stupid.  we'll see.
2003-05-22 20:53:18 +00:00
Derek Foreman
911d7251f8 keep XVisualInfo around in preparation for opengl stuff 2003-05-22 19:48:11 +00:00
Dana Jansens
9e33652f71 put the devation back how it used to be, it aws definately no better.. 2003-05-20 23:53:32 +00:00
Dana Jansens
13f701bdb1 remove the elliptic gradient type.
add bevel light/dark colors for solid textures with bevels
2003-05-20 07:28:31 +00:00