From c5dc55512fb6e3326f94ed913989020c98db030b Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Sat, 17 Nov 2012 12:57:16 -0800 Subject: [PATCH] new panel background with alpha transparency --- hdd/usr/share/panel.png | Bin 0 -> 322 bytes userspace/panel.c | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 hdd/usr/share/panel.png diff --git a/hdd/usr/share/panel.png b/hdd/usr/share/panel.png new file mode 100644 index 0000000000000000000000000000000000000000..9d021d0306f6fbe9e635498fb47220eb114784a2 GIT binary patch literal 322 zcmeAS@N?(olHy`uVBq!ia0vp^20$#s!3HGNb8JolDaPU;cPEB*=VV?2Ic!PZ?k)`f zL2$v|<&%LToCO|{#S9GG!XV7ZFl&wkP>{XE)7O>#4!59)lD1mS;mbgwL!K^e@>6B%lrM`^kS=;R^A`9g-#Pp3 zd=Rskk5~R$#_;pHzKtQ9n+>Pki(=OE>l8kI)ce+oUspK7*RC#O=1oo9seNT~7SJ~g Mp00i_>zopr0HkGhHvj+t literal 0 HcmV?d00001 diff --git a/userspace/panel.c b/userspace/panel.c index 8b56573c..0f6b09e9 100644 --- a/userspace/panel.c +++ b/userspace/panel.c @@ -11,6 +11,8 @@ #include #include +#define PANEL_HEIGHT 28 + #include "lib/utf8decode.h" #include @@ -205,13 +207,13 @@ int main (int argc, char ** argv) { _loadVlgothic(); /* Create the panel */ - window_t * panel = window_create(0, 0, width, 24); + window_t * panel = window_create(0, 0, width, PANEL_HEIGHT); window_reorder (panel, 0xFFFF); ctx = init_graphics_window_double_buffer(panel); - draw_fill(ctx, rgb(0,0,0)); + draw_fill(ctx, rgba(0,0,0,0)); flip(ctx); - init_sprite(0, "/usr/share/panel.bmp", NULL); + init_sprite_png(0, "/usr/share/panel.png"); init_sprite_png(1, "/usr/share/icons/panel-shutdown.png"); for (uint32_t i = 0; i < width; i += sprites[0]->width) {