Commit graph

90 commits

Author SHA1 Message Date
Mikael Magnusson
088524f016 Use GString for appending strings
It can take a very long time to print a _NET_WM_ICON property for firefox with the previous code, several minutes. Fixes bug #6042 and also implements the change for append_string.
2014-10-28 04:14:24 +01:00
Dana Jansens
87443c956c show empty properties in obxprop 2010-05-11 23:43:29 -04:00
Dana Jansens
dd623f5b2f parse number values write in a hex string in obxprop 2010-05-11 23:31:03 -04:00
Dana Jansens
013df404a8 advance while parsing a hex input in obxprop 2010-05-11 23:29:18 -04:00
Dana Jansens
bcc31faf7e revamp the autostart functionality, so autostart apps launch after openbox.
add /usr/libexec/openbox-autostart which runs the global/user scripts and
  launches /usr/libexec/openbox-xdg-autostart (which runs .desktop autostart
  stuff)

make openbox-session call openbox with --startup option, to make openbox launch
  /usr/libexec/openbox-autostart *after* it is initialized.

add /etc/xdg/openbox/environment and ~/.config/openbox/environment files to let
  user change environment variables (locale) for their Openbox session, which
  openbox-session loads before running openbox.
2010-02-17 16:11:36 -05:00
Dana Jansens
358056b102 When a user id is specified, or --root, use the ID directly, don't try find a client child of it 2010-01-11 13:43:25 -05:00
Mikael Magnusson
4c544102c3 Pass NULL, not 0, handle invalid --id better. 2010-01-08 21:51:35 +01:00
Mikael Magnusson
54c841f7b5 obxprop: Add ability to limit listing to given properties 2010-01-08 21:51:04 +01:00
Dana Jansens
e070a051c6 Add a --root option for obxprop 2010-01-06 17:13:03 -05:00
Dana Jansens
6d8b7bd5f7 Rename obprop to obxprop (Fixes bug #4419)
Avoids collision with openbabel.
2009-12-21 09:59:28 -05:00
Dana Jansens
f3e553446f Add an obprop tool which can print UTF-8 strings properly, for our users. 2009-12-14 15:25:31 -05:00
Miroslav Lichvar
7abc28bdda Fix a typo in xdg-autostart 2009-12-10 09:42:41 -05:00
Mikael Magnusson
cac78e1a7a Typos in error message from gdm-control 2009-01-29 22:35:56 +01:00
Dana Jansens
1a3ffb6e5b display the NotShowIn stuff correctly 2008-03-02 11:41:08 -05:00
Dana Jansens
f1cf7fa339 an else disappeared somehow 2008-03-02 11:08:57 -05:00
Dana Jansens
a291ba6019 some modifications to xdg-autostart based on suggestions from the PyXDG maintainer 2008-03-02 11:08:57 -05:00
Dana Jansens
d9739288b7 add a gdm-control tool that lets you..control..gdm.. 2008-03-02 03:46:28 -05:00
Dana Jansens
be6fd760f1 using () for a class that doesn't inherit breaks old python 2008-02-11 09:40:24 -05:00
Dana Jansens
64398a2b5f grammar hammer 2008-02-10 02:06:46 -05:00
Dana Jansens
b2e52c7b48 make xdg-autostart check for PyXDG and print a better error than a backtrace. and make the executing actually work 2008-02-09 19:02:08 -05:00
Dana Jansens
11408575b3 make an xdg-autostart script. it is very fancy. 2008-02-09 19:02:03 -05:00
Mikael Magnusson
fdc10b75d6 missed a spot 2007-06-07 23:50:40 +00:00
Mikael Magnusson
96bb892054 back xml themes out of trunk 2007-06-07 23:46:28 +00:00
Dana Jansens
ad22b4db81 border, not borderwidth.
add osd.border stuff to themetoxml
2007-06-05 16:05:22 +00:00
Dana Jansens
8349e4ca6b add osd border stuff 2007-06-05 15:57:27 +00:00
Dana Jansens
aca8327244 add osd theme elements 2007-06-05 15:51:36 +00:00
Dana Jansens
1fd07ad51d there add new separator colors complete 2007-06-02 21:26:23 +00:00
Dana Jansens
e451993b49 add new separator colors 2007-06-02 21:24:52 +00:00
Dana Jansens
1091e38908 rename activedisabled in xml to active-disabled 2007-06-02 18:58:10 +00:00
Dana Jansens
9cc523aa71 rename old xrbd activedisabled to active.disabled 2007-06-02 18:51:45 +00:00
Dana Jansens
92e54e48ee 2007-05-28 04:52:47 +00:00
Dana Jansens
2ff10b4260 relocate the xsd's so they don't clash, and point to the right places 2007-05-12 18:18:25 +00:00
Dana Jansens
db9190fb34 this is nothing but to add a commit message..
added support for

menu.border.width

!
2007-05-11 22:49:48 +00:00
Dana Jansens
4845f271d9 add support for these...
menu.border.color
window.active.border.color
window.inactive.border.color

Bear2 has a menu color now, the old themerc had that specified
2007-05-11 22:47:09 +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
73348c28de misparsing of rgb:4/5/6 colors 2007-05-07 10:40:54 +00:00
Dana Jansens
24c0d61847 add the 'engine="box"' to the theme format, and require it to be there so we can change that in the future 2007-05-07 02:38:13 +00:00
Dana Jansens
2f5727ffe9 add support for the menu.items.activedisabled.text.color theme element 2007-05-05 22:52:15 +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
Mikael Magnusson
e785e18a2c you didn't say no 2007-03-30 16:37:17 +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
82be671c64 scale the shadows up, they were /100 before, now they are /255 2007-03-05 16:32:50 +00:00
Dana Jansens
b31189b91a was looking for menu items font in the wrong place 2007-03-05 16:27:02 +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
e6fba91476 kde systray applications no longer need the tray proxy, so let's remove it from svn 2007-03-05 03:33:00 +00:00
Dana Jansens
5697404dd6 add the themetoxml tool ! yay 2007-03-05 03:30:22 +00:00
Dana Jansens
6608dddef4 add comment explaining what this tool is for. new themeupdate tool is coming for xml themes. 2007-03-04 22:22:27 +00:00
Mikael Magnusson
2b99b62abf maybe this works then 2007-02-20 13:13:27 +00:00