Dana Jansens
49a73ce15c
add support for a default icon, but no icon has been made yet.
2003-09-12 01:11:33 +00:00
Dana Jansens
191f982dd4
allow a padding.width of 0
2003-09-08 19:09:59 +00:00
Dana Jansens
a72371b41f
bigtime theme changes. bigtime.
2003-09-08 18:38:52 +00:00
Dana Jansens
bbc22b9870
remove obconf from this tree.
...
add versioning for the libraries and pkgconfig files for them.
2003-09-07 23:33:11 +00:00
Dana Jansens
a1184b2b77
add the margins to the label_height so that the text doesnt cover the bevel/border
2003-09-06 08:43:30 +00:00
Dana Jansens
4cbfe3eac0
new scaling based on the Bresenham algorithm
2003-09-04 06:23:57 +00:00
Dana Jansens
55ed757c5f
new scaling, based on the Bresenham algorithm
2003-09-04 06:23:27 +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
694a628a2f
remove bad comment
2003-09-03 04:28:00 +00:00
Dana Jansens
72f3195821
interlace is drawn first, so bevels n shit cover it
2003-09-02 19:16:56 +00:00
Dana Jansens
aeef656993
add menu.bullet.selected.imageColor
2003-09-02 18:52:24 +00:00
Dana Jansens
3b2b0998fc
remove debug print
2003-09-02 17:42:57 +00:00
Dana Jansens
fffc89c226
remove XXX comment, it was right, now its done :>
2003-09-02 08:38:33 +00:00
Dana Jansens
ac9d8c58cb
use the new color hash to cache RrColors
2003-09-02 08:38:03 +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
06252b3076
rename back the app_selected appearances to app_hilite
2003-09-01 16:37:21 +00:00
Dana Jansens
f33bbca9e6
couple more xrdb theme format cleanups:
...
window.focus.font -> window.label.focus.font
window.unfocus.font -> window.label.unfocus.font
window.justify -> window.label.justify
menu.frame.* -> menu.items.*
menu.hilite.* -> menu.selected.*
*.picColor -> *.imageColor
2003-09-01 07:03:04 +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
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
6e86a42c4b
use RrColorGC
2003-08-31 17:02:10 +00:00
Dana Jansens
f90167d8b5
add RrColorGC
2003-08-31 17:01:53 +00:00
Dana Jansens
f97e7133d4
allow handlewidth of 0, which sets show_handle to false
2003-08-30 19:02:10 +00:00
Dana Jansens
50f2037aea
bugz, wrong vars
2003-08-30 18:47:02 +00:00
Dana Jansens
735776321c
nicer default bullets
2003-08-29 05:44:17 +00:00
Dana Jansens
5fb0a42b2d
only left-justify menus, remove the menu.frame.justify option
2003-08-28 19:53:36 +00:00
Dana Jansens
700e551390
fix a bunch of memleaks from valgrind and stuff
2003-08-28 19:10:36 +00:00
Dana Jansens
75e948b197
free rgba texture caches
2003-08-28 19:06:35 +00:00
Dana Jansens
c34ef4028e
half way through the changes to new menu code/design. hot shit. static menus work, on to plugins next.
2003-08-28 02:10:23 +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
baa236094f
nevermind
2003-08-22 16:57:59 +00:00
Dana Jansens
d7ae443cb4
default font size one smaller to make default bitmaps fit better
2003-08-22 16:56:20 +00:00
Dana Jansens
faeadd74d4
make focus and unfocus fonts for window titles. change 'xftfont' to 'font' in the themes.
2003-08-22 06:14:20 +00:00
Dana Jansens
43c8a3d2bf
was reading the menu bullet color into the wrong place
2003-08-14 19:31: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
84a75ac50d
make all the masks unsigned chars for consistancy woot
2003-08-12 17:51:34 +00:00
Dana Jansens
f3926a572b
kill some warnings
2003-08-12 17:50:00 +00:00
Dana Jansens
b1d44ac43b
rendering fixups for submenu bullets
2003-08-12 10:05:36 +00:00
Scott Moynes
a4f023cf3a
Some fixes and new bugs. Someone else can do the menus because it is
...
clear no one gives a fuck what I think and no one else wants a window
manager that doesn't suck the same balls as every other window manager.
2003-08-11 21:19:17 +00:00
Dana Jansens
356318b562
include Xlib.h for other platforms
2003-08-08 15:09:10 +00:00
Dana Jansens
08f1f213f1
split the increment into a separate macro
2003-08-05 10:51:19 +00:00
Dana Jansens
764e0e2866
oops indenting
2003-08-02 08:11:45 +00:00
Dana Jansens
ede531da35
look in theme dirs first, use the theme as the path as a last attempt only!
2003-08-02 08:11:17 +00:00
Dana Jansens
960a7f0184
invisible resizing areas/grips in the top corners of the window
2003-08-02 06:20:31 +00:00
Dana Jansens
3123cf4a9f
use the toggled mask for shade and desk buttons
2003-08-02 06:16:26 +00:00
Dana Jansens
b98021773b
look for masks only where the themerc was read from
2003-08-01 18:23:23 +00:00
Dana Jansens
f407b5d80f
add pressed bitmaps. rename stick bitmaps to desk
2003-08-01 18:11:13 +00:00
Dana Jansens
2b72e5d01c
add toggled textuers for titlebar buttons
2003-08-01 17:58:48 +00:00
Dana Jansens
3a26c8aa8e
move the dekstop file to data/
2003-08-01 15:00:22 +00:00
Dana Jansens
d4170da07e
renamed the _t bitmaps, and added disabled and hover bitmaps
2003-08-01 07:02:57 +00:00
Dana Jansens
4d9bd88f12
make themes inside a directory
2003-08-01 06:10:59 +00:00
Dana Jansens
5101e89d14
add missing includes
2003-08-01 02:38:13 +00:00
Dana Jansens
36056a69d7
missing a header
2003-07-31 16:30:53 +00:00
Dana Jansens
54ad34a039
move the titlebar layout from the theme to the rc file
2003-07-30 16:25:08 +00:00
Dana Jansens
4de5230cec
typo thanks merry
2003-07-28 19:43:05 +00:00
Dana Jansens
632b2af7a8
fix mem leaks/crashes
2003-07-27 19:57:38 +00:00
Dana Jansens
2eb5721416
add pressed colors for buttons
2003-07-27 19:39:02 +00:00
Dana Jansens
399952e547
dont allow parentrelative on top-level appearances
2003-07-25 13:23:40 +00:00
Dana Jansens
5be0a82a35
use ob_debug for any debug printing and only display the output when its a debug build or when --debug is passed to it
2003-07-24 06:02:38 +00:00
Dana Jansens
230abdc5a0
draw the bevel stuff in the pixel data buffer so parent-relative stuff can use it.
2003-07-24 05:33:41 +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
ea6258ce0f
add a menuOverlap property to themes, and use it in the submenu placement
2003-07-22 16:14:42 +00:00
Dana Jansens
5fce782499
useless code move
2003-07-12 15:31:56 +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
6fdf481b27
same default offsets for all endian machines
2003-07-11 03:19:51 +00:00
Dana Jansens
81af5a8b0c
add disabled buttons, instead of now showing buttons at all when they wont do anything, now show a disabled button instead. this severely breaks compatibility with blackbox themes since there is no good way to automiatically create a disabled button that i can think of, so if they dont exist in the theme you get black and white for the button.
...
when a window cant be resized, its handle is not removed but its grips are.
change allowing the user to disable individual decorations as that is overkill,
instead allow a toggle through the client.decorate boolean.
2003-07-10 23:27:02 +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
2abbf01125
update the build system, using a single Makefile.am for a sexyass non-recursive make. booyah!
2003-07-10 04:31:05 +00:00
Dana Jansens
7f44ed5362
include stdlib for exit()
2003-07-07 20:26:32 +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
41d72ee51f
used RrColorShift when RrColorOffset was what we wanted
2003-07-05 16:51:29 +00:00
Dana Jansens
2f9efb384d
prepare for alpha1 release.
...
make 'make dist' work.
2003-06-29 08:47:24 +00:00
Dana Jansens
9d896233ec
missed setting 'current' at the end of the pyramid gradient
2003-06-29 08:33:19 +00:00
Dana Jansens
121afb76eb
remove debug print
2003-06-28 19:06:03 +00:00
Dana Jansens
1bb7a5f883
don't destroy font patterns, i think this is a double free
2003-06-28 17:29:23 +00:00
Dana Jansens
527af7664a
add the themes path to the struct. make the name never include a path
2003-06-28 16:52:17 +00:00
Dana Jansens
c109dcd66a
hardcode the button names for themes
2003-06-28 16:48:25 +00:00
Dana Jansens
0a459f7a57
rename the button_dir var to data_dir.. pointless :>
2003-06-28 15:53:37 +00:00
Dana Jansens
15c7707181
dont destroy the match pattern, it seems that Xft holds onto the pointer
2003-06-26 17:51:52 +00:00
Dana Jansens
bf2f0c58ca
add comment
2003-06-26 01:35:41 +00:00
Dana Jansens
a12e73cf37
read fonts and titlebar layout from theme files
2003-06-26 01:29:45 +00:00
Dana Jansens
c791cbfda0
set teh X so it gets used right
2003-06-25 21:18:16 +00:00
Dana Jansens
0901ddf891
keep a small space on the sides of windows between the edge and the text
2003-06-25 21:17:15 +00:00
Dana Jansens
5cd0ed57ac
do horz grads without any multipliaction
2003-06-24 18:56:47 +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
dc60657acf
integer math for gradients. horz vert and diags and pipecross work so far.
2003-06-24 18:16:23 +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
dc92dbfc56
don't exit in the render lib, rather return a NULL font/theme on failure
2003-06-21 05:35:05 +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
16066ed282
use the pseudo shit in the instance now
2003-06-21 02:38:47 +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
bd59576748
rename color_rgb to RrColor
2003-06-21 01:56:14 +00:00
Dana Jansens
b1f5555218
put the render theme into a struct
2003-06-21 01:53:26 +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
49268650b4
oops typo
2003-06-20 05:45:55 +00:00
Dana Jansens
62240d2b0f
take the bevel width into account for the width available
2003-06-20 02:39:20 +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
ad30e7092b
slight optimizations, and make the last 4 gradients work properly
2003-06-20 00:46:53 +00:00
Dana Jansens
fd52dc5d35
center text vertically. use the font's height because all that space is needed for some charcters
2003-06-20 00:38:25 +00:00
Dana Jansens
6e93be1d2e
remove non-planar surfaces
2003-06-20 00:05:51 +00:00
Dana Jansens
9867ce2367
more unique error for unhandles image bit depths, remove debug prints
2003-06-03 05:07:39 +00:00
Dana Jansens
c4e60e4ad2
handle increase_depth on 1bpp images
2003-06-03 05:04:12 +00:00
Derek Foreman
b8f05e5388
gl.h shouldn't be required when not enabling gl
2003-05-25 18:36:19 +00:00
Derek Foreman
db705f406c
all grads done
2003-05-25 03:36:12 +00:00
Derek Foreman
f9505b23b7
pipecross
2003-05-25 03:17:29 +00:00
Derek Foreman
d6652d0a90
rectangle and diagonal grads yay
...
gl > *
2003-05-25 02:46:35 +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
Dana Jansens
f54e8c9ba0
add --enable-gl support, and put the flags/libs in the appropriate makefiles
2003-05-23 05:30:00 +00:00
Derek Foreman
99c7fa7260
fix cut'n'paste bug
2003-05-22 23:26:05 +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
955d9d8e30
optimize it a bit
2003-05-21 22:19:01 +00:00
Dana Jansens
9b2a67d044
pass the number of bytes, not characters to the xft draw functions
2003-05-21 22:17:36 +00:00
Dana Jansens
e4aa5c6905
allocate the border_color's gc
2003-05-21 02:59:02 +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
Derek Foreman
76425437d4
of by one error in pyramid, rectangle, and crosspipe
2003-05-20 19:07:27 +00:00
Dana Jansens
0de48102a4
remove debug prints
2003-05-20 16:49:46 +00:00
Dana Jansens
895cd9f43d
reindent the file....
...
but while i'm at it:
- add support for bevels/borders on solid textures.
- reverse the colors in the rectangle gradient, the pipecross and pyramid
ones may need to be reversed as well.
2003-05-20 07:30:27 +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
97b22bd27b
use the rectangle gradient when the theme asks for elipse
2003-05-20 07:27:23 +00:00
Derek Foreman
ad4c3aad45
PipeCross
2003-05-18 23:31:13 +00:00
Derek Foreman
b24e6fbfa1
there's the rect grad. now stop bugging me :(
2003-05-18 23:27:31 +00:00
Derek Foreman
e328dc2f60
is that a rectangle grad? damned if I know
2003-05-18 23:15:37 +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
Derek Foreman
4be1b08154
whatever, it's a junk file.
2003-05-18 19:24:19 +00:00
Derek Foreman
d46e6627bf
change badly named offsets
...
add stubs for rectangle and pipecross
2003-05-18 19:24:08 +00:00
Derek Foreman
b9ecd5bf25
rename poorly named offsets
2003-05-18 19:23:26 +00:00
Derek Foreman
d9bdc21192
add stubs for pipecross and rectangle
2003-05-18 19:23:04 +00:00
Derek Foreman
dcdd743fa4
fix poor naming of default offset
2003-05-18 19:08:26 +00:00
Derek Foreman
90ca2a206b
fix poor naming of the default offset
2003-05-18 19:07:42 +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
Dana Jansens
d1ceea89bd
need the libsn flags
2003-05-18 03:17:42 +00:00
Dana Jansens
f26f23de50
all my changes while i was offline.
...
better alt-tabbing. better transient handling. i dont even know. lots of fucking cool shit so WATCH the FUCK OUT.
2003-05-09 16:57:17 +00:00
Dana Jansens
a081582e3a
fix window icon rendering, was using incorrect size.
2003-04-27 17:08:40 +00:00
Dana Jansens
02c7f2e8af
its G_BYTE_ORDER not G_ENDIAN.
2003-04-27 02:31:55 +00:00
Dana Jansens
9bd740cf71
make menu font smaller and !bold for now
2003-04-15 18:30:20 +00:00
Dana Jansens
1c3689d0c7
load menu style stuff
2003-04-15 18:05:58 +00:00
Dana Jansens
bbaef2ee57
make minsize take int*'s not a Size*
2003-04-15 18:05:25 +00:00
Derek Foreman
b72a3853fc
PYRAMID PARTY PART 2!!!
2003-04-15 02:24:03 +00:00
Derek Foreman
8f5e1a0fcb
PYRAMID PARTY!!!
2003-04-15 02:21:00 +00:00