Dana Jansens
ed81992aea
make rendertest exit cleanly when it is unmapped (iconify/desktopchange)
2008-02-14 19:40:01 +01:00
Dana Jansens
bbf0eed8d1
don't reference free'd memory, and don't leak memory if the image cache is not saving any resized pictures
2008-02-14 11:44:51 +01:00
Dana Jansens
87124ae865
use g_message not g_print so it can go to the log
2008-02-14 11:44:51 +01:00
Dana Jansens
1d62584742
pre-calc the sum of a picture added to an RrImage rather than calculating it every time
2008-02-14 11:44:51 +01:00
Dana Jansens
0cd9986f87
add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache.
2008-02-14 11:44:51 +01:00
Dana Jansens
5e204525de
when resizing images, pick a source image with the same aspect ratio if possible
2008-02-14 11:44:50 +01:00
Dana Jansens
ea435b99a8
Introducing the icon cache.
...
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 11:44:28 +01:00
Dana Jansens
f0d31a52b7
make white font shadows (negative shadowtint) work right.. this has been busted a long time. thank you nvidia.
2008-02-10 01:52:08 -05:00
Mikael Magnusson
f6193ad9e0
Merge branch 'wip/alttab'
2008-02-07 15:28:18 +01:00
Dana Jansens
fcc23e1fd1
when drawing and measuring strings in "flow" mode, don't ellipsize so that lines can wrap
2008-02-07 02:14:45 -05:00
Dana Jansens
9e3ce4efed
allow font rendering to use multiple lines
2008-02-07 02:14:44 -05:00
Dana Jansens
a01ece1353
you can create dialog windows called "prompts" which have a message and some buttons! they don't do anything interesting yet.
2008-02-07 02:14:43 -05:00
Dana Jansens
5f04ca85ef
Merge branch 'backport' into work
...
Conflicts:
openbox/config.c
2008-02-07 02:06:42 -05:00
Dana Jansens
bc13099405
show a small arrow on the top/bottom of the alttab list box when there are more windows that are not visible in that direction
2008-02-06 01:32:12 -05:00
Dana Jansens
87fd759ba9
the title_focused_shadow_color is being set twice, and being overridden by the osd color (though not in the texture)
2008-02-05 00:09:51 -05:00
Mikael Magnusson
3592046b2b
Make the icon and hilite the proper sizes.
...
Had to add some obrender thingers and fiddle around a bit. Also fixed up
some confusing logic.
2008-02-03 00:28:02 -05:00
Dana Jansens
de0873824e
split the version.h into render/ and obt/ copies, with the appropriate version info
2008-02-02 15:59:44 -05:00
Dana Jansens
20b8fcfa33
Merge branch 'backport' into work
...
Conflicts:
openbox/client.c
openbox/config.c
openbox/event.c
openbox/extensions.c
openbox/focus_cycle_indicator.c
openbox/focus_cycle_popup.c
openbox/menuframe.c
openbox/moveresize.c
openbox/openbox.c
openbox/screen.c
openbox/stacking.c
openbox/startupnotify.c
2008-01-31 12:51:38 -05:00
Dana Jansens
9a93350aa7
make horizontal gradients faster by not jumping around in memory as much
2008-01-27 04:25:09 -05:00
Mikael Magnusson
1d9991a0cd
Fix some memleaks.
...
missing RrFontClose for osd_font in two places.
missing a g_free(area);
2008-01-25 13:29:46 +01:00
Dana Jansens
07d5674d39
move the xdg path stuff into obt/paths.[ch], and make render and openbox use it
2008-01-20 01:36:55 -05:00
Dana Jansens
fdabb69f4f
update openbox to use the current parser interface in libobt
...
there is also some random bug fixes for other libobt stuff in here.
2008-01-20 01:36:55 -05:00
Dana Jansens
5960d27b1c
setup versioning for libotk that is separate from libobrender (and libobparser for now), and bump library versions up to 4.0.
...
also make the render versioning more explicit that it's for the render library not all of openbox
2008-01-20 01:36:54 -05:00
Mikael Magnusson
0be98fee47
Various fixes for sparse warnings.
...
Define void functions with (void), not ().
Add missing includes.
Some functions were declared static but defined non-static.
Some variables that should be file static were file global but not used in any other file.
prop.h defined a new prop_atoms in each file that included it instead of declaring it extern.
2008-01-16 15:35:25 +01:00
Dana Jansens
fb1d6d9e46
Bug 3359 - redundant pango flags
2008-01-11 14:48:21 -05:00
Mikael Magnusson
9b803f4755
Fix using None when it should be NULL
2007-09-04 06:25:31 +02:00
Mikael Magnusson
1492bd0e7d
Fix shadowed variables
2007-09-04 06:25:06 +02:00
Dana Jansens
fe08a60665
add a comment
2007-08-05 21:14:38 -04:00
Mikael Magnusson
7f53478977
Fix some memleaks
2007-08-06 03:09:55 +02:00
Dana Jansens
a5c6eb81ad
let you specify the padding y and x independently
2007-08-04 12:13:10 -04:00
Mikael Magnusson
77baf26a7f
remove trailing whitespace
2007-07-17 02:48:16 +02:00
Mikael Magnusson
8ad51aef1e
80 cols everywhere
2007-07-14 15:22:35 +02:00
Dana Jansens
0bfe6c1e52
no more crash in splitvertical. i think i changed the size of the middle gradient too. it's always 1px now unless the texture is very small, then it can be 0. if theres a discrepency, the bottom color gets the extra pixel.
2007-07-11 14:17:34 +00:00
Dana Jansens
b70afd1016
let the theme specify all splitgradient colors
2007-06-13 14:03:46 +00:00
Dana Jansens
89ade7a8c1
don't alloc/free colors every time splitvertical is drawn
2007-06-13 13:48:00 +00:00
Dana Jansens
fc2e419a8a
put new things at the bottom of the struct
2007-06-10 23:07:36 +00:00
Dana Jansens
94a2a4d67e
let the shadow be 0-256
2007-06-10 21:56:50 +00:00
Dana Jansens
6b05306a28
don't limit the highlight at all
2007-06-10 21:55:09 +00:00
Dana Jansens
89b7311d8d
make bevel strengths theme-selectable
2007-06-10 21:38:29 +00:00
Mikael Magnusson
2440549aba
wrongly indented line
2007-06-09 01:28:00 +00:00
Dana Jansens
62a652f6f5
fix when 1or2px splitvertical
2007-06-09 01:22:34 +00:00
Dana Jansens
44fa95eea8
no crashing in splitvertical
2007-06-09 01:18:19 +00:00
Dana Jansens
b60e471705
middle gradient in splitvertical
2007-06-09 01:08:25 +00:00
Dana Jansens
6dec1c213b
yay. toggled textures and colors for all states.
2007-06-08 22:14:48 +00:00
Mikael Magnusson
96bb892054
back xml themes out of trunk
2007-06-07 23:46:28 +00:00
Dana Jansens
1fc480c193
make active-disabled shadow offset-y be proper
2007-06-06 14:53:57 +00:00
Dana Jansens
0ba396fea0
fix parentrel bevels
2007-06-05 20:37:10 +00:00
Dana Jansens
4548d40c0d
combine the parent and child textures in fun ways when a parentrelative texture with a bevel is placed right overtop of another texture with a bevel
2007-06-05 18:01:10 +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
Mikael Magnusson
b265acbd45
allow users of obrender to change the ellipsize mode of text textures
2007-06-04 23:51:48 +00:00
Dana Jansens
51626b787d
unused variables
2007-06-04 18:42:14 +00:00
Mikael Magnusson
ee36c0d379
actually allow raised, but default to flat for parentrelative
2007-06-04 16:13:34 +00:00
Mikael Magnusson
3a89939c2d
allow effects on parentrelative textures, ie bevels and interlaces and borders
2007-06-04 16:03:43 +00:00
Dana Jansens
7dd5fa0a7e
missing theme->
2007-06-03 17:41:28 +00:00
Dana Jansens
ad3336f70d
free the new title separator colors
2007-06-03 17:38:30 +00:00
Dana Jansens
a25d0ed10c
consistancy
2007-06-02 21:22:16 +00:00
Dana Jansens
439d2c62fa
remove the title separator width thing.
...
add a separate color for the title separator
2007-06-02 21:19:49 +00:00
Dana Jansens
285db844e6
add tswidth to theme.h, but its always == fbwidth
2007-06-02 20:48:18 +00:00
Dana Jansens
1091e38908
rename activedisabled in xml to active-disabled
2007-06-02 18:58:10 +00:00
Dana Jansens
264dd883ad
missing a {
...
bump the version
2007-05-31 15:47:41 +00:00
Dana Jansens
7f5f9c5523
cleaner code
2007-05-31 15:44:28 +00:00
Dana Jansens
e4b162d470
only show falling back msg when its true
2007-05-31 15:41:06 +00:00
Dana Jansens
5588c49335
add an allow_fallback option when opening a theme
2007-05-31 15:40:41 +00:00
Dana Jansens
5e50b406d0
cosnt char*
2007-05-31 04:07:01 +00:00
Dana Jansens
ed1dcb6b48
no const weirdness
2007-05-30 13:58:53 +00:00
Dana Jansens
65144cc562
set name to the name of the theme when falling back
2007-05-30 13:39:10 +00:00
Mikael Magnusson
1188d9b0f6
don't need to &0xff
2007-05-29 03:46:38 +00:00
Dana Jansens
28ad33fd5f
brackets ftw. opacity for rgba's works.
2007-05-29 03:36:12 +00:00
Dana Jansens
9df3e07b73
it doesn't work but its something
2007-05-29 03:31:25 +00:00
Dana Jansens
c4eaa94385
put an alpha channel in the rgba texture
2007-05-29 03:22:55 +00:00
Dana Jansens
c726a1f709
set the current theme in a root property
2007-05-28 13:37:32 +00:00
Dana Jansens
211cc4449d
center argb textures (icons for eg.) within the area given if they are not the same shape
2007-05-26 17:35:17 +00:00
Dana Jansens
3b8bcd3e3a
get the pixel extents the "right way" in 1.16 and use our own rounding otherwise because the pango function lies.
2007-05-23 02:02:00 +00:00
Dana Jansens
3f3d59904e
pango lies. do the pixel conversion ourselves
2007-05-23 01:42:59 +00:00
Dana Jansens
41177771c1
link to wrong version for obparser-3.0
2007-05-22 06:15:24 +00:00
Dana Jansens
add9c3c1bb
oops. dont default all stuff to bold
2007-05-21 03:40:16 +00:00
Dana Jansens
280c70b00b
make the default fonts bold cuz bold looks better everywhere except in the menus i think
2007-05-20 23:00:56 +00:00
Dana Jansens
599b63e471
fix rendering argb textures on solid backgrounds
2007-05-20 22:06:03 +00:00
Dana Jansens
cb7752cd1f
if the theme supplied a max button or desk button then use that for toggled fallback
2007-05-20 15:25:50 +00:00
Dana Jansens
34ad5b92b4
save some malloc when possible
2007-05-19 20:14:19 +00:00
Dana Jansens
53066b1808
new focus cycle popup of doom
2007-05-19 18:40:37 +00:00
Dana Jansens
df948db3be
i know we broke backwards compatibility but noone uses it except obconf and it still works, so just leave the pkgconfigs as -3.0, and obconf2 and require version >= 3.3.990 instead.
2007-05-19 01:33:40 +00:00
Dana Jansens
e77888ef17
change obrender-3.0 and obparser-3.0 to 3.4 because we broke backward compatibility
2007-05-18 00:58:43 +00:00
Dana Jansens
b76926f666
add pango to the pkg-config file
2007-05-18 00:55:05 +00:00
Dana Jansens
6017c061eb
build fixes
2007-05-12 21:24:24 +00:00
Dana Jansens
d3ecb7c127
change how masks are loaded, let you override just one. simpler code too.
2007-05-12 16:59:18 +00:00
Mikael Magnusson
eab6ff75c0
micromicrooptimization
2007-05-12 16:56:36 +00:00
Dana Jansens
410bf6dc53
make default masks even sized. these are from the clearlooks theme, probably from somewhere else before that.
2007-05-11 23:08:30 +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
d8919a9bf8
guarantee an even height for the label, and thus the titlebar, and thus the buttons. that way an even sized mask in the button will always be centred
2007-05-11 05:34:53 +00:00
Dana Jansens
c0ddd76ac5
change fallbacks
2007-05-11 03:48:41 +00:00
Dana Jansens
7956103a81
make fallbacks match 3.4
2007-05-11 03:46:09 +00:00
Dana Jansens
7d6caee44b
memory leak on the server
2007-05-11 03:36:58 +00:00
Dana Jansens
4e5c6af594
unused
2007-05-11 03:36:51 +00:00
Dana Jansens
5667acacbc
PANGO_VERSION_CHECK is new
2007-05-10 14:31:44 +00:00
Dana Jansens
c4385c098f
use pango 1.16 stuff if its there. and use the old stuff if not. also! save it in static variable so we dont have to update it over and over.
2007-05-09 21:41:16 +00:00
Dana Jansens
ef4bec071b
mem leaks
2007-05-09 21:26:17 +00:00
Dana Jansens
c6eabf1880
fix using uninit'd values
2007-05-09 20:38:27 +00:00
Dana Jansens
3905872982
merge in r6153-6154 from the 3.4 branch
2007-05-07 22:07:13 +00:00