openbox fork to make it act a bit more like ryudo
Find a file
Carlos Pita 1e427a3358 Separate theme options for osd prompt buttons.
I managed to keep backwards compatibility without really cluttering
the code so here is the patch
http://bugzilla.icculus.org/show_bug.cgi?id=4874 too.

Please keep in mind that this is my first piece of code for openbox
and that I'm not a die hard openbox user (yet), not to tell the patch
was not exhaustively tested. Anyway I think it's pretty much in a good
shape but any criticism will be welcome.

Basically the patch add the following theme options for controlling
buttons in osd prompts:

%%%% colors
%
% for the text inside the button
osd.button.unpressed.text.color
osd.button.pressed.text.color
osd.button.focused.text.color
%
% for the line art around the button
%  (if you don't wan't the box just make box.color = bg.color)
osd.button.pressed.box.color
osd.button.focused.box.color

%%%% textures
%
osd.button.unpressed.bg
osd.button.pressed.bg
osd.button.focused.bg

The buttons can be in three states:

 unpressed: neither clicked nor selected
 focused: selected but not clicked
 pressed: clicked (and of course selected)

I discarded the previous distinction between press and pfocus as in
fact it was only a formal distinction, in that both appearances
mimicked each other in every sense. It think that it was just
inherited from the way titlebar buttons are managed so I decided to
simplify it a bit.

All the options default in a way that preserves backwards compatibility:

osd.button.unpressed.text.color  -> osd.active.label.text.color
osd.button.pressed.text.color -> osd.active.label.text.color
osd.button.focused.text.color -> osd.active.label.text.color

osd.button.pressed.box.color ->  window.active.button.pressed.image.color
osd.button.focused.box.color -> window.active.button.hover.image.color

osd.button.unpressed.bg -> window.active.button.unpressed.bg
osd.button.pressed.bg -> window.active.button.pressed.bg
osd.button.focused.bg -> window.active.button.hover.bg

Notice that a good deal of locs where added to theme.c but in
compensation prompt.c is pretty much simpler now because the
appearances and textures are created while loading the theme.
2011-08-01 11:49:39 -04:00
data fix global autostart installation, and the pointer to it so it is run 2011-04-11 17:25:45 -04:00
debian Change the openbox website to openbox.org 2010-01-06 17:13:03 -05:00
doc Allow XIncludes in xml documents we read. 2011-01-24 14:19:22 -05:00
m4 don't use -Wextra unless --enable-super-warnings 2011-01-24 14:19:23 -05:00
obrender Separate theme options for osd prompt buttons. 2011-08-01 11:49:39 -04:00
obt don't free the XIC if it wasn't created. this appears to cause a crash 2011-01-24 14:19:23 -05:00
openbox Separate theme options for osd prompt buttons. 2011-08-01 11:49:39 -04:00
po Merge branch 'backport' into work 2010-01-14 16:19:57 -05:00
tests Fix icons.c test for 64-bit platforms 2011-01-24 14:19:22 -05:00
themes Add menu seperator style to Clearlooks 2010-03-09 13:01:48 +01:00
tools show empty properties in obxprop 2010-05-11 23:43:29 -04:00
.gitignore add some tests for obt pieces (binary search, .desktop parsking, linkbase, and inotify watch) 2011-01-24 14:19:22 -05:00
AUTHORS update the icon to the pretty one by david barr 2008-01-12 18:25:22 -05:00
bootstrap use automake 1.9 2007-04-23 19:11:12 +00:00
CHANGELOG Set up work for making a 3.5 prerelease. 2009-12-21 14:08:34 -05:00
COMPLIANCE Openbox doesn't support _NET_WM_USER_TIME_WINDOW atm. 2008-05-29 18:51:17 +02:00
configure.ac bump version to 3.5.0 and library versions 2011-08-01 11:25:55 -04:00
COPYING add some text files.. 2002-11-01 10:15:13 +00:00
gettext.h 1) translate all of openbox's output 2007-04-23 17:56:35 +00:00
HACKING update the indent style guidelines 2008-02-14 19:40:03 +01:00
install-sh install-sh should be executable 2009-01-29 22:35:48 +01:00
makedeb set the ubuntu deb version right 2007-05-18 00:43:04 +00:00
Makefile.am fix global autostart installation, and the pointer to it so it is run 2011-04-11 17:25:45 -04:00
README yay for mika-chan 2007-05-13 22:08:35 +00:00
README.GIT move Imlib to the option deps in the git readme 2011-08-01 11:46:40 -04:00
README.NLS add readme.nls with fancy tricks 2007-06-01 23:18:32 +00:00
version.h.in Use correct ac variable in version.h.in 2010-02-10 02:29:53 +01:00

Openbox
Copyright (C) 2004-2007  Mikael Magnusson
Copyright (C) 2002-2007  Dana Jansens

----

    This software is OSI Certified Open Source Software.
    OSI Certified is a certification mark of the Open Source Initiative.

----

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    See the COPYING file for a copy of the GNU General Public License.