Commit graph

76 commits

Author SHA1 Message Date
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
0c41ab3c20 make rendering the shortcuts much faster 2007-04-25 18:04:15 +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
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
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
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
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
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
78af5d15e9 this includes a number of things since my magnificent return....
1. some random compiling/style cleanups
2. some bigfixes
 - mislogic in per-window-settings and focusing new windows
 - use client_can_focus rather than checking variables for directional focus
 - MAYBE fix all those lock-ups forever. using event_curtime (a new variable) now instead of event_lasttime. event_lasttime is still used however when the event being processed did not have a time associated with it. this may or may not be a problem, and will be seen.
3. um.. i forget
4. oh yeah, 3rd party docks are now treated like the internal ob dock irt focus. that is, clicking on them won't pass them focus. this is going to be ratified as expected behavior in the wm-spec just now. if docks/panels want focus they can request it with _net_active_window, and then they can have all the focus they want! one day alt-tabbing around dock windows might be nice. but not until the ob dock is moved out into a separate application. going to have to add a wmapp selection and stuff for that though... ugly. who uses wmdockapps anymore !? someone must.. *sigh*
2007-03-02 02:23:00 +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
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
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
13206849ea add version info the library headers 2003-10-27 20:11:14 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +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
e9c1e44e68 provide a function to give the margins for an appearance 2003-09-03 06:28:57 +00:00
Dana Jansens
92feea765a move some internal functions from render.h to instance.h
add a color hash table to the RrInstance
2003-09-02 08:37:52 +00:00
Dana Jansens
e91814e99f add interlaceColor, and support interlaced gradients 2003-09-01 03:10:47 +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
83705e52c4 add Xutil includes for these badboys on older X versions/solaris 2003-08-12 18:05:08 +00:00
Dana Jansens
356318b562 include Xlib.h for other platforms 2003-08-08 15:09:10 +00:00
Dana Jansens
3a26c8aa8e move the dekstop file to data/ 2003-08-01 15:00:22 +00:00
Dana Jansens
6fdf481b27 same default offsets for all endian machines 2003-07-11 03:19:51 +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
ce940eee0f try some better default offsets for big endian machines.
print what the conversion is so i can see what it should be if im wrong though
2003-07-05 17:01:30 +00:00
Dana Jansens
a12e73cf37 read fonts and titlebar layout from theme files 2003-06-26 01:29:45 +00:00
Dana Jansens
1e882b6271 made all the gradients work with integer math. removed the pipecross and rectangle gradietns tho cuz they are ugly and i dont want to code that bullshit cuz they are ugly. 2003-06-24 18:54:18 +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
bd59576748 rename color_rgb to RrColor 2003-06-21 01:56:14 +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
911d7251f8 keep XVisualInfo around in preparation for opengl stuff 2003-05-22 19:48:11 +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
Dana Jansens
a18c1697b1 make icons use pixel32 data, and image_draw takes pixel32 data.
client.c gets pixmap icons as a backup to netwm ones, and they are converted into pixel32 data.
2003-05-18 23:06:11 +00:00
Dana Jansens
993fc6226d 2 in 1 deal :\
client.c stacking.c: fixing looping transient case for group transient windows. now a window which is transient for a group is *not* transient for any other transient windows in the group (perviously the other window had to be transient for the group to be excluded, now it can be transient for anything).

client.c/h event.c render.c/h: adjustnig icon handling a bit. will be converting the legacy pixmap icons into rgba data so they can be handled the same as netwm icons.
2003-05-18 17:09:55 +00:00