Various improvements to xmpanel
This commit is contained in:
parent
dda82b48a3
commit
e0521be508
27
xmpanel/src/icons/appMusic.xbm
Normal file
27
xmpanel/src/icons/appMusic.xbm
Normal file
@ -0,0 +1,27 @@
|
||||
#define appMusic_width 48
|
||||
#define appMusic_height 48
|
||||
static unsigned char appMusic_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00,
|
||||
0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00,
|
||||
0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00,
|
||||
0x00, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||
0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f,
|
||||
0x0c, 0x00, 0x00, 0x00, 0x00, 0x30, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f,
|
||||
0x0c, 0x00, 0x00, 0x00, 0x00, 0x30, 0xec, 0xff, 0xff, 0xff, 0xff, 0x37,
|
||||
0x2c, 0x02, 0x00, 0x00, 0x00, 0x34, 0x2c, 0x02, 0x00, 0x00, 0x00, 0x34,
|
||||
0xec, 0xff, 0xff, 0xff, 0xff, 0x37, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x30,
|
||||
0xac, 0x02, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x30,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f,
|
||||
0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
27
xmpanel/src/icons/icon.xbm
Normal file
27
xmpanel/src/icons/icon.xbm
Normal file
@ -0,0 +1,27 @@
|
||||
#define icon_width 48
|
||||
#define icon_height 48
|
||||
static unsigned char icon_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20,
|
||||
0xf4, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf4, 0xff, 0xff, 0x00, 0x0b, 0x30,
|
||||
0x34, 0x00, 0x80, 0xff, 0xff, 0x3f, 0xb4, 0xff, 0xbf, 0x02, 0x00, 0x34,
|
||||
0xb4, 0x00, 0xa0, 0x03, 0x00, 0x3e, 0xb4, 0x00, 0xb0, 0x02, 0x00, 0x36,
|
||||
0xb4, 0x00, 0xb0, 0xfb, 0xff, 0x3f, 0xb4, 0x00, 0xb0, 0xfe, 0xff, 0x37,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0x00, 0xb0, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0x00, 0xb0, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0xfe, 0xbf, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0xff, 0xbf, 0xff, 0xfb, 0x3f, 0xb4, 0x00, 0xa0, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0x00, 0xb0, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0x00, 0xb0, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0x00, 0xb0, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0x00, 0xb0, 0xff, 0xfb, 0x3f, 0xb4, 0xfe, 0xbf, 0x00, 0x0b, 0x30,
|
||||
0xb4, 0xff, 0xbf, 0xff, 0xfb, 0x3f, 0x34, 0x00, 0x80, 0x00, 0x0b, 0x30,
|
||||
0xf4, 0xff, 0xff, 0xff, 0xfb, 0x3f, 0x04, 0x00, 0x00, 0x00, 0x0b, 0x30,
|
||||
0xf4, 0xff, 0xff, 0xff, 0xfb, 0x3f, 0x14, 0x00, 0x80, 0x00, 0x0b, 0x30,
|
||||
0x94, 0xaa, 0xea, 0xff, 0xfb, 0x3f, 0x54, 0x55, 0xd5, 0x00, 0x0b, 0x30,
|
||||
0x14, 0x00, 0xc0, 0xff, 0xfb, 0x3f, 0x54, 0x55, 0xd5, 0x00, 0x0b, 0x30,
|
||||
0x14, 0x00, 0xc0, 0xff, 0xfb, 0x3f, 0x54, 0x55, 0xd5, 0x00, 0x0b, 0x30,
|
||||
0x94, 0xaa, 0xea, 0xff, 0xfb, 0x3f, 0xd4, 0xff, 0xff, 0x00, 0x0b, 0x30,
|
||||
0xf4, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x04, 0x00, 0x00, 0x00, 0x00, 0x30,
|
||||
0xf4, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x3f,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
@ -13,6 +13,9 @@
|
||||
#include "icons/appMail.xbm"
|
||||
#include "icons/appTerminal.xbm"
|
||||
#include "icons/appWebBrowser.xbm"
|
||||
#include "icons/appMusic.xbm"
|
||||
|
||||
#include "icons/icon.xbm"
|
||||
|
||||
typedef struct {
|
||||
Pixmap icon;
|
||||
@ -30,7 +33,15 @@ int main (int argc, char *argv[]) {
|
||||
&application, "Panel",
|
||||
NULL, 0,
|
||||
&argc, argv,
|
||||
NULL, NULL);
|
||||
NULL,
|
||||
XmNtitle, "Panel",
|
||||
XmNiconName, "Panel",
|
||||
NULL);
|
||||
Pixmap iconPixmap = XmdLoadBitmapIcon(window, icon);
|
||||
XtVaSetValues (
|
||||
window,
|
||||
XmNiconPixmap, iconPixmap,
|
||||
NULL);
|
||||
|
||||
Widget layout = XtVaCreateWidget (
|
||||
"layout", xmRowColumnWidgetClass, window,
|
||||
@ -52,8 +63,9 @@ void createAllLaunchers (Widget parent) {
|
||||
add(Editor, "nedit");
|
||||
add(Files, "caja");
|
||||
add(Mail, "nedit");
|
||||
add(Terminal, "xterm");
|
||||
add(Terminal, "uxterm");
|
||||
add(WebBrowser, "firefox");
|
||||
add(Music, "ymuse");
|
||||
#undef add
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user