From d0661e26d9b22ca2369af9568d576e3b878d96ff Mon Sep 17 00:00:00 2001 From: rhlabs Date: Tue, 28 Apr 1998 14:23:59 +0000 Subject: [PATCH] updates - wrokign cofnig file etc,. updates - wrokign cofnig file etc,. --- themes/COMPILE_THEME2 | 4 +- themes/theme2.h | 2 +- themes/theme2_button.c | 45 ++++++++-- themes/theme2_main.c | 187 ++++++++++++++++++++++++++++----------- themes/theme_data/config | 129 ++++++++++++++++++++++++++- 5 files changed, 300 insertions(+), 67 deletions(-) diff --git a/themes/COMPILE_THEME2 b/themes/COMPILE_THEME2 index 72c8e12159..3e14abe99b 100755 --- a/themes/COMPILE_THEME2 +++ b/themes/COMPILE_THEME2 @@ -17,5 +17,5 @@ theme2_main.lo # NEED to do this to install sample theme (run testgtk with --theme theme2) # for user -ln -sf `pwd`/.libs ~/themes -cp -r theme_data/* ~/themes +ln -sf `pwd`.libs ~/themes +cp -r theme_data/* ~/themes/ diff --git a/themes/theme2.h b/themes/theme2.h index d531e1fe23..88fa0076b4 100644 --- a/themes/theme2.h +++ b/themes/theme2.h @@ -38,6 +38,7 @@ typedef struct _themebuttondecoration typedef struct _themebuttonconfig { /* Border between outside of button and any children (eg label) */ + GdkImlibBorder button_padding; ThemeButtonBorder border; ThemeButtonBackground background; int number_of_decorations; @@ -46,6 +47,5 @@ typedef struct _themebuttonconfig typedef struct _themeconfig { - GdkImlibBorder button_padding; ThemeButtonConfig buttonconfig[3][5][2]; } ThemeConfig; diff --git a/themes/theme2_button.c b/themes/theme2_button.c index 0bd9484115..38043b6c0f 100644 --- a/themes/theme2_button.c +++ b/themes/theme2_button.c @@ -39,10 +39,14 @@ button_border (GtkWidget *widget) else if (GTK_WIDGET_STATE(widget)==GTK_STATE_PRELIGHT) state=2; else if (GTK_WIDGET_STATE(widget)==GTK_STATE_SELECTED) state=3; else if (GTK_WIDGET_STATE(widget)==GTK_STATE_INSENSITIVE) state=4; - GTK_CONTAINER(widget)->internal_border_left=cf->button_padding.left; - GTK_CONTAINER(widget)->internal_border_right=cf->button_padding.right; - GTK_CONTAINER(widget)->internal_border_top=cf->button_padding.top; - GTK_CONTAINER(widget)->internal_border_bottom=cf->button_padding.bottom; + GTK_CONTAINER(widget)->internal_border_left= + cf->buttonconfig[def][state][foc].button_padding.left; + GTK_CONTAINER(widget)->internal_border_right= + cf->buttonconfig[def][state][foc].button_padding.right; + GTK_CONTAINER(widget)->internal_border_top= + cf->buttonconfig[def][state][foc].button_padding.top; + GTK_CONTAINER(widget)->internal_border_bottom= + cf->buttonconfig[def][state][foc].button_padding.bottom; } void @@ -63,6 +67,7 @@ button_draw (GtkWidget *widget, struct _butinfo *bi; int state,def,foc; ThemeConfig *cf; + int i,x,y,w,h; cf=(ThemeConfig *)th_dat.data; bi=gtk_object_get_data(GTK_OBJECT(widget),"gtk-widget-theme-data"); @@ -111,11 +116,33 @@ button_draw (GtkWidget *widget, bi->w=widget->allocation.width;bi->h=widget->allocation.height; bi->state=state;bi->foc=foc;bi->def=def; } -/* if (GTK_WIDGET_STATE(widget)==GTK_STATE_ACTIVE) - gdk_imlib_paste_image(imgs->im4,widget->window,6, - (widget->allocation.height>>1)-6, - 12,12); - */ + if (cf->buttonconfig[def][state][foc].border.image) + { + gdk_imlib_paste_image_border(cf->buttonconfig[def][state][foc].border.image, + widget->window, + 0,0,widget->allocation.width, + widget->allocation.height); + } + for(i=0;ibuttonconfig[def][state][foc].number_of_decorations;i++) + { + if (cf->buttonconfig[def][state][foc].decoration[i].image) + { + x=cf->buttonconfig[def][state][foc].decoration[i].xabs+ + ((cf->buttonconfig[def][state][foc].decoration[i].xrel* + widget->allocation.width)>>10); + y=cf->buttonconfig[def][state][foc].decoration[i].yabs+ + ((cf->buttonconfig[def][state][foc].decoration[i].yrel* + widget->allocation.height)>>10); + w=cf->buttonconfig[def][state][foc].decoration[i].x2abs+ + ((cf->buttonconfig[def][state][foc].decoration[i].x2rel* + widget->allocation.width)>>10)-x; + h=cf->buttonconfig[def][state][foc].decoration[i].y2abs+ + ((cf->buttonconfig[def][state][foc].decoration[i].y2rel* + widget->allocation.height)>>10)-y; + gdk_imlib_paste_image(cf->buttonconfig[def][state][foc].decoration[i].image, + widget->window,x,y,w,h); + } + } } void diff --git a/themes/theme2_main.c b/themes/theme2_main.c index cafc9bc91b..e9f84c7703 100644 --- a/themes/theme2_main.c +++ b/themes/theme2_main.c @@ -14,22 +14,22 @@ theme_read_config () char *h,s[2048],ss[2048]; FILE *f; int a,b,c; - int i,j,k,l; + int i,j,k,l,m,n,o,p; h=getenv("HOME"); snprintf(s,2048,"%s/themes/config",h); f=fopen(s,"r"); cf=(ThemeConfig *)th_dat.data; - cf->button_padding.left=1; - cf->button_padding.right=1; - cf->button_padding.top=1; - cf->button_padding.bottom=1; for(i=0;i<3;i++) { for(j=0;j<5;j++) { for(k=0;k<2;k++) { + cf->buttonconfig[i][j][k].button_padding.left=1; + cf->buttonconfig[i][j][k].button_padding.right=1; + cf->buttonconfig[i][j][k].button_padding.top=1; + cf->buttonconfig[i][j][k].button_padding.bottom=1; cf->buttonconfig[i][j][k].border.filename=NULL; cf->buttonconfig[i][j][k].border.image=NULL; cf->buttonconfig[i][j][k].background.filename=NULL; @@ -46,73 +46,152 @@ theme_read_config () } while(fgets(s,2048,f)) { - printf("%s\n",s); + printf("%s",s); if (s[0]!='#') { ss[0]=0; sscanf(s,"%s",ss); if (!strcmp(ss,"button")) { - sscanf(s,"%*s %s",ss); + sscanf(s,"%*s %i %i %i %s",&a,&b,&c,ss); if (!strcmp(ss,"padding")) { - sscanf(s,"%*s %*s %i %i %i %i",&i,&j,&k,&l); - cf->button_padding.left=i; - cf->button_padding.right=j; - cf->button_padding.top=k; - cf->button_padding.bottom=l; + sscanf(s,"%*s %*i %*i %*i %*s %i %i %i %i",&i,&j,&k,&l); + cf->buttonconfig[a][b][c].button_padding.left=i; + cf->buttonconfig[a][b][c].button_padding.right=j; + cf->buttonconfig[a][b][c].button_padding.top=k; + cf->buttonconfig[a][b][c].button_padding.bottom=l; } - else + else if (!strcmp(ss,"background")) { - sscanf(s,"%*s %i %i %i %s",&a,&b,&c,ss); - if (!strcmp(ss,"background")) + sscanf(s,"%*s %*i %*i %*i %*s %s",ss); + if (!strcmp(ss,"image")) { - sscanf(s,"%*s %*i %*i %*i %*s %s",ss); - if (!strcmp(ss,"image")) + sscanf(s,"%*s %*i %*i %*i %*s %*s %s",ss); + snprintf(s,2048,"%s/themes/%s",h,ss); + cf->buttonconfig[a][b][c].background.filename=strdup(s); + cf->buttonconfig[a][b][c].background.image= + gdk_imlib_load_image(cf->buttonconfig[a][b][c].background.filename); + if (!cf->buttonconfig[a][b][c].background.image) { - sscanf(s,"%*s %*i %*i %*i %*s %*s %s",ss); - snprintf(s,2048,"%s/themes/%s",h,ss); - cf->buttonconfig[a][b][c].background.filename=strdup(s); - printf("%i %i %i %s\n",a,b,c,s); - cf->buttonconfig[a][b][c].background.image= - gdk_imlib_load_image(cf->buttonconfig[a][b][c].background.filename); - if (!cf->buttonconfig[a][b][c].background.image) - { - fprintf(stderr,"ERROR: Cannot load %s\n",cf->buttonconfig[a][b][c].background.filename); - exit(1); - } + fprintf(stderr,"ERROR: Cannot load %s\n",cf->buttonconfig[a][b][c].background.filename); + exit(1); } - else if (!strcmp(ss,"color")) + } + else if (!strcmp(ss,"color")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %i %i %i",&i,&j,&k); + cf->buttonconfig[a][b][c].background.color.r=i; + cf->buttonconfig[a][b][c].background.color.g=j; + cf->buttonconfig[a][b][c].background.color.b=k; + cf->buttonconfig[a][b][c].background.color.pixel= + gdk_imlib_best_color_match(&i,&j,&k); + } + else if (!strcmp(ss,"border")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %i %i %i %i",&i,&j,&k,&l); + cf->buttonconfig[a][b][c].background.border.left=i; + cf->buttonconfig[a][b][c].background.border.right=j; + cf->buttonconfig[a][b][c].background.border.top=k; + cf->buttonconfig[a][b][c].background.border.bottom=l; + if (cf->buttonconfig[a][b][c].background.image) + gdk_imlib_set_image_border(cf->buttonconfig[a][b][c].background.image, + &cf->buttonconfig[a][b][c].background.border); + } + else if (!strcmp(ss,"scale")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %i",&i); + cf->buttonconfig[a][b][c].background.scale_to_fit=i; + } + else if (!strcmp(ss,"parent_tile")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %i",&i); + cf->buttonconfig[a][b][c].background.tile_relative_to_parent=i; + } + } + else if (!strcmp(ss,"border")) + { + sscanf(s,"%*s %*i %*i %*i %*s %s",ss); + if (!strcmp(ss,"image")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %s",ss); + snprintf(s,2048,"%s/themes/%s",h,ss); + cf->buttonconfig[a][b][c].border.filename=strdup(s); + cf->buttonconfig[a][b][c].border.image= + gdk_imlib_load_image(cf->buttonconfig[a][b][c].border.filename); + if (!cf->buttonconfig[a][b][c].border.image) { - sscanf(s,"%*s %*i %*i %*i %*s %*s %i %i %i",&i,&j,&k); - cf->buttonconfig[a][b][c].background.color.r=i; - cf->buttonconfig[a][b][c].background.color.g=j; - cf->buttonconfig[a][b][c].background.color.b=k; - cf->buttonconfig[a][b][c].background.color.pixel= - gdk_imlib_best_color_match(&i,&j,&k); + fprintf(stderr,"ERROR: Cannot load %s\n",cf->buttonconfig[a][b][c].border.filename); + exit(1); } - else if (!strcmp(ss,"border")) + } + else if (!strcmp(ss,"border")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %i %i %i %i",&i,&j,&k,&l); + printf("%i %i %i * %i %i %i %i\n",a,b,c,i,j,k,l); + cf->buttonconfig[a][b][c].border.border.left=i; + cf->buttonconfig[a][b][c].border.border.right=j; + cf->buttonconfig[a][b][c].border.border.top=k; + cf->buttonconfig[a][b][c].border.border.bottom=l; + if (cf->buttonconfig[a][b][c].border.image) + gdk_imlib_set_image_border(cf->buttonconfig[a][b][c].border.image, + &cf->buttonconfig[a][b][c].border.border); + } + } + else if (!strcmp(ss,"decoration")) + { + sscanf(s,"%*s %*i %*i %*i %*s %s",ss); + if (!strcmp(ss,"image")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %s",ss); + snprintf(s,2048,"%s/themes/%s",h,ss); + cf->buttonconfig[a][b][c].number_of_decorations++; + cf->buttonconfig[a][b][c].decoration=realloc + (cf->buttonconfig[a][b][c].decoration, + cf->buttonconfig[a][b][c].number_of_decorations* + sizeof(ThemeButtonDecoration)); + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .filename=strdup(s); + cf->buttonconfig[a][b][c].decoration[cf->buttonconfig[a][b][c].number_of_decorations-1].image= + gdk_imlib_load_image(cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1].filename); + if (!cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .image) { - sscanf(s,"%*s %*i %*i %*i %*s %*s %i %i %i %i",&i,&j,&k,&l); - cf->buttonconfig[a][b][c].background.border.left=i; - cf->buttonconfig[a][b][c].background.border.right=j; - cf->buttonconfig[a][b][c].background.border.top=k; - cf->buttonconfig[a][b][c].background.border.bottom=l; - if (cf->buttonconfig[a][b][c].background.image) - gdk_imlib_set_image_border(cf->buttonconfig[a][b][c].background.image, - &cf->buttonconfig[a][b][c].background.border); - } - else if (!strcmp(ss,"scale")) - { - sscanf(s,"%*s %*i %*i %*i %*s %*s %i",&i); - cf->buttonconfig[a][b][c].background.scale_to_fit=i; - } - else if (!strcmp(ss,"parent_tile")) - { - sscanf(s,"%*s %*i %*i %*i %*s %*s %i",&i); - cf->buttonconfig[a][b][c].background.tile_relative_to_parent=i; + fprintf(stderr,"ERROR: Cannot load %s\n",cf->buttonconfig[a][b][c].decoration[cf->buttonconfig[a][b][c].number_of_decorations-1].filename); + exit(1); } } + else if (!strcmp(ss,"coords")) + { + sscanf(s,"%*s %*i %*i %*i %*s %*s %i %i %i %i %i %i %i %i",&i,&j,&k,&l,&m,&n,&o,&p); + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .xrel=i; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .yrel=j; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .xabs=k; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .yabs=l; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .x2rel=m; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .y2rel=n; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .x2abs=o; + cf->buttonconfig[a][b][c].decoration + [cf->buttonconfig[a][b][c].number_of_decorations-1] + .y2abs=p; + } } } } diff --git a/themes/theme_data/config b/themes/theme_data/config index 73d184d34c..99a7ab43be 100644 --- a/themes/theme_data/config +++ b/themes/theme_data/config @@ -9,156 +9,283 @@ # button cannot|can|has_default normal|active|prelight|selected|insensitive # no_focus|focus background %s .... -button padding 4 4 4 4 +button 0 0 0 padding 4 4 4 4 button 0 0 0 background image pix/btn2.xpm button 0 0 0 background color 128 128 128 button 0 0 0 background border 4 4 4 4 button 0 0 0 background scale 1 button 0 0 0 background parent_tile 0 + +button 0 1 0 padding 4 4 4 4 button 0 1 0 background image pix/btn3.xpm button 0 1 0 background color 128 128 128 button 0 1 0 background border 4 4 4 4 button 0 1 0 background scale 1 button 0 1 0 background parent_tile 0 + +button 0 2 0 padding 4 4 4 4 button 0 2 0 background image pix/btn1.xpm button 0 2 0 background color 128 128 128 button 0 2 0 background border 4 4 4 4 button 0 2 0 background scale 1 button 0 2 0 background parent_tile 0 + +button 0 3 0 padding 4 4 4 4 button 0 3 0 background image pix/btn1.xpm button 0 3 0 background color 128 128 128 button 0 3 0 background border 4 4 4 4 button 0 3 0 background scale 1 button 0 3 0 background parent_tile 0 + +button 0 4 0 padding 4 4 4 4 button 0 4 0 background image pix/btn2.xpm button 0 4 0 background color 128 128 128 button 0 4 0 background border 4 4 4 4 button 0 4 0 background scale 1 button 0 4 0 background parent_tile 0 + +button 0 0 1 padding 4 4 4 4 button 0 0 1 background image pix/btn2.xpm button 0 0 1 background color 128 128 128 button 0 0 1 background border 4 4 4 4 button 0 0 1 background scale 1 button 0 0 1 background parent_tile 0 +button 0 0 1 border image pix/brd1.xpm +button 0 0 1 border border 4 4 4 4 + +button 0 1 1 padding 4 4 4 4 button 0 1 1 background image pix/btn3.xpm button 0 1 1 background color 128 128 128 button 0 1 1 background border 4 4 4 4 button 0 1 1 background scale 1 button 0 1 1 background parent_tile 0 +button 0 1 1 border image pix/brd1.xpm +button 0 1 1 border border 4 4 4 4 + +button 0 2 1 padding 4 4 4 4 button 0 2 1 background image pix/btn1.xpm button 0 2 1 background color 128 128 128 button 0 2 1 background border 4 4 4 4 button 0 2 1 background scale 1 button 0 2 1 background parent_tile 0 +button 0 2 1 border image pix/brd1.xpm +button 0 2 1 border border 4 4 4 4 + +button 0 3 1 padding 4 4 4 4 button 0 3 1 background image pix/btn1.xpm button 0 3 1 background color 128 128 128 button 0 3 1 background border 4 4 4 4 button 0 3 1 background scale 1 button 0 3 1 background parent_tile 0 +button 0 3 1 border image pix/brd1.xpm +button 0 3 1 border border 4 4 4 4 + + +button 0 4 1 padding 4 4 4 4 button 0 4 1 background image pix/btn2.xpm button 0 4 1 background color 128 128 128 button 0 4 1 background border 4 4 4 4 button 0 4 1 background scale 1 button 0 4 1 background parent_tile 0 +button 0 4 1 border image pix/brd1.xpm +button 0 4 1 border border 4 4 4 4 +button 1 0 0 padding 20 6 6 6 button 1 0 0 background image pix/btn2.xpm button 1 0 0 background color 128 128 128 button 1 0 0 background border 4 4 4 4 button 1 0 0 background scale 1 button 1 0 0 background parent_tile 0 +button 1 0 0 decoration image pix/led_off1.xpm +button 1 0 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 1 0 padding 20 6 6 6 button 1 1 0 background image pix/btn3.xpm button 1 1 0 background color 128 128 128 button 1 1 0 background border 4 4 4 4 button 1 1 0 background scale 1 button 1 1 0 background parent_tile 0 +button 1 1 0 decoration image pix/led_off1.xpm +button 1 1 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 2 0 padding 20 6 6 6 button 1 2 0 background image pix/btn1.xpm button 1 2 0 background color 128 128 128 button 1 2 0 background border 4 4 4 4 button 1 2 0 background scale 1 button 1 2 0 background parent_tile 0 +button 1 2 0 decoration image pix/led_off1.xpm +button 1 2 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 3 0 padding 20 6 6 6 button 1 3 0 background image pix/btn1.xpm button 1 3 0 background color 128 128 128 button 1 3 0 background border 4 4 4 4 button 1 3 0 background scale 1 button 1 3 0 background parent_tile 0 +button 1 3 0 decoration image pix/led_off1.xpm +button 1 3 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 4 0 padding 20 6 6 6 button 1 4 0 background image pix/btn2.xpm button 1 4 0 background color 128 128 128 button 1 4 0 background border 4 4 4 4 button 1 4 0 background scale 1 button 1 4 0 background parent_tile 0 +button 1 4 0 decoration image pix/led_off1.xpm +button 1 4 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 0 1 padding 20 6 6 6 button 1 0 1 background image pix/btn2.xpm button 1 0 1 background color 128 128 128 button 1 0 1 background border 4 4 4 4 button 1 0 1 background scale 1 button 1 0 1 background parent_tile 0 +button 1 0 1 border image pix/brd1.xpm +button 1 0 1 border border 4 4 4 4 +button 1 0 1 decoration image pix/led_off1.xpm +button 1 0 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 1 1 padding 20 6 6 6 button 1 1 1 background image pix/btn3.xpm button 1 1 1 background color 128 128 128 button 1 1 1 background border 4 4 4 4 button 1 1 1 background scale 1 button 1 1 1 background parent_tile 0 +button 1 1 1 border image pix/brd1.xpm +button 1 1 1 border border 4 4 4 4 +button 1 1 1 decoration image pix/led_off1.xpm +button 1 1 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 2 1 padding 20 6 6 6 button 1 2 1 background image pix/btn1.xpm button 1 2 1 background color 128 128 128 button 1 2 1 background border 4 4 4 4 button 1 2 1 background scale 1 button 1 2 1 background parent_tile 0 +button 1 2 1 border image pix/brd1.xpm +button 1 2 1 border border 4 4 4 4 +button 1 2 1 decoration image pix/led_off1.xpm +button 1 2 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 3 1 padding 20 6 6 6 button 1 3 1 background image pix/btn1.xpm button 1 3 1 background color 128 128 128 button 1 3 1 background border 4 4 4 4 button 1 3 1 background scale 1 button 1 3 1 background parent_tile 0 +button 1 3 1 border image pix/brd1.xpm +button 1 3 1 border border 4 4 4 4 +button 1 3 1 decoration image pix/led_off1.xpm +button 1 3 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 4 1 padding 20 6 6 6 button 1 4 1 background image pix/btn2.xpm button 1 4 1 background color 128 128 128 button 1 4 1 background border 4 4 4 4 button 1 4 1 background scale 1 button 1 4 1 background parent_tile 0 +button 1 4 1 border image pix/brd1.xpm +button 1 4 1 border border 4 4 4 4 +button 1 4 1 decoration image pix/led_off1.xpm +button 1 4 1 decoration coords 0 512 6 -6 0 512 18 6 +button 2 0 0 padding 20 6 6 6 button 2 0 0 background image pix/btn2.xpm button 2 0 0 background color 128 128 128 button 2 0 0 background border 4 4 4 4 button 2 0 0 background scale 1 button 2 0 0 background parent_tile 0 +button 2 0 0 decoration image pix/led_off1.xpm +button 2 0 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 1 0 padding 20 6 6 6 button 2 1 0 background image pix/btn3.xpm button 2 1 0 background color 128 128 128 button 2 1 0 background border 4 4 4 4 button 2 1 0 background scale 1 button 2 1 0 background parent_tile 0 +button 2 1 0 decoration image pix/led_off1.xpm +button 2 1 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 2 0 padding 20 6 6 6 button 2 2 0 background image pix/btn1.xpm button 2 2 0 background color 128 128 128 button 2 2 0 background border 4 4 4 4 button 2 2 0 background scale 1 button 2 2 0 background parent_tile 0 +button 2 2 0 decoration image pix/led_off1.xpm +button 2 2 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 3 0 padding 20 6 6 6 button 2 3 0 background image pix/btn1.xpm button 2 3 0 background color 128 128 128 button 2 3 0 background border 4 4 4 4 button 2 3 0 background scale 1 button 2 3 0 background parent_tile 0 +button 2 3 0 decoration image pix/led_off1.xpm +button 2 3 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 4 0 padding 20 6 6 6 button 2 4 0 background image pix/btn2.xpm button 2 4 0 background color 128 128 128 button 2 4 0 background border 4 4 4 4 button 2 4 0 background scale 1 button 2 4 0 background parent_tile 0 +button 2 4 0 decoration image pix/led_off1.xpm +button 2 4 0 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 0 1 padding 20 6 6 6 button 2 0 1 background image pix/btn2.xpm button 2 0 1 background color 128 128 128 button 2 0 1 background border 4 4 4 4 button 2 0 1 background scale 1 button 2 0 1 background parent_tile 0 +button 2 0 1 border image pix/brd1.xpm +button 2 0 1 border border 4 4 4 4 +button 2 0 1 decoration image pix/led_off1.xpm +button 2 0 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 1 1 1 padding 20 6 6 6 button 2 1 1 background image pix/btn3.xpm button 2 1 1 background color 128 128 128 button 2 1 1 background border 4 4 4 4 button 2 1 1 background scale 1 button 2 1 1 background parent_tile 0 +button 2 1 1 border image pix/brd1.xpm +button 2 1 1 border border 4 4 4 4 +button 2 1 1 decoration image pix/led_off1.xpm +button 2 1 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 2 1 padding 20 6 6 6 button 2 2 1 background image pix/btn1.xpm button 2 2 1 background color 128 128 128 button 2 2 1 background border 4 4 4 4 button 2 2 1 background scale 1 button 2 2 1 background parent_tile 0 +button 2 2 1 border image pix/brd1.xpm +button 2 2 1 border border 4 4 4 4 +button 2 2 1 decoration image pix/led_off1.xpm +button 2 2 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 3 1 padding 20 6 6 6 button 2 3 1 background image pix/btn1.xpm button 2 3 1 background color 128 128 128 button 2 3 1 background border 4 4 4 4 button 2 3 1 background scale 1 button 2 3 1 background parent_tile 0 +button 2 3 1 border image pix/brd1.xpm +button 2 3 1 border border 4 4 4 4 +button 2 3 1 decoration image pix/led_off1.xpm +button 2 3 1 decoration coords 0 512 6 -6 0 512 18 6 + +button 2 4 1 padding 20 6 6 6 button 2 4 1 background image pix/btn2.xpm button 2 4 1 background color 128 128 128 button 2 4 1 background border 4 4 4 4 button 2 4 1 background scale 1 button 2 4 1 background parent_tile 0 +button 2 4 1 border image pix/brd1.xpm +button 2 4 1 border border 4 4 4 4 +button 2 4 1 decoration image pix/led_off1.xpm +button 2 4 1 decoration coords 0 512 6 -6 0 512 18 6