From eac6b43052bb23418efb569e2238bde56c71c9bf Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 11 Oct 2008 18:27:05 +0000 Subject: [PATCH] Rename the basic skin to encourage reusability Add styles for the rest of the widgets --- basic.skin | 360 +++++++++++++++++++++++++++++++++++++++++++++++++ basic_skin.png | Bin 0 -> 1276 bytes helloworld.cpp | 2 +- helloworld.gui | 106 --------------- helloworld.png | Bin 558 -> 0 bytes 5 files changed, 361 insertions(+), 107 deletions(-) create mode 100644 basic.skin create mode 100644 basic_skin.png delete mode 100644 helloworld.gui delete mode 100644 helloworld.png diff --git a/basic.skin b/basic.skin new file mode 100644 index 0000000..1dd8d41 --- /dev/null +++ b/basic.skin @@ -0,0 +1,360 @@ +/* $Id$ */ + +default_font "dejavu-10.font"; + +graphic "grey_raised" +{ + texture "basic_skin.png"; + slice 0 52 12 12; + border { left 3; right 3; top 3; bottom 3; }; +}; + +graphic "light_grey_raised" +{ + texture "basic_skin.png"; + slice 0 39 12 12; + border { left 3; right 3; top 3; bottom 3; }; +}; + +graphic "dark_grey_sunken" +{ + texture "basic_skin.png"; + slice 14 52 12 12; + border { left 3; right 3; top 3; bottom 3; }; +}; + +style "button" +{ + font_color 0.0 0.0 0.0; + + part + { + graphic NORMAL "grey_raised"; + graphic HOVER "light_grey_raised"; + graphic ACTIVE "dark_grey_sunken"; + }; + + special "text" + { + align 0.5 0.5; + fill 0.0 0.0; + margin { left 3; right 3; top 3; bottom 3; }; + }; +}; + +graphic "white_sunken" +{ + texture "basic_skin.png"; + slice 0 26 12 12; + border { left 3; right 3; top 3; bottom 3; }; +}; + +graphic "check_tick" +{ + texture "basic_skin.png"; + slice 28 56 8 8; +}; + +graphic "light_grey_flat" +{ + texture "basic_skin.png"; + slice 14 14 10 10; +}; + +style "toggle" +{ + font_color 0.0 0.0 0.0; + + part + { + graphic HOVER "light_grey_flat"; + }; + + part + { + graphic NORMAL "white_sunken"; + align 0.0 0.5; + fill 0.0 0.0; + }; + + part + { + graphic ACTIVE "check_tick"; + align 0.0 0.5; + fill 0.0 0.0; + margin { left 2; }; + }; + + special "text" + { + align 0.0 0.5; + fill 0.0 0.0; + margin { left 14; }; + }; +}; + +graphic "white_circle_sunken" +{ + texture "basic_skin.png"; + slice 13 26 12 12; +}; + +graphic "option_dot" +{ + texture "basic_skin.png"; + slice 37 58 6 6; +}; + +style "toggle-option" +{ + font_color 0.0 0.0 0.0; + + part + { + graphic HOVER "light_grey_flat"; + }; + + part + { + graphic NORMAL "white_circle_sunken"; + align 0.0 0.5; + fill 0.0 0.0; + }; + + part + { + graphic ACTIVE "option_dot"; + align 0.0 0.5; + fill 0.0 0.0; + margin { left 3; }; + }; + + special "text" + { + align 0.0 0.5; + fill 0.0 0.0; + margin { left 14; }; + }; +}; + +style "label" +{ + font_color 0.0 0.0 0.0; + + special "text" + { + align 0.5 0.5; + fill 0.0 0.0; + }; +}; + +graphic "entry_cursor" +{ + texture "basic_skin.png"; + slice 26 56 1 8; +}; + +style "entry" +{ + font_color 0.0 0.0 0.0; + + part + { + graphic NORMAL "white_sunken"; + }; + + special "text" + { + align 0.0 0.5; + fill 0.0 0.0; + margin { left 3; right 3; top 3; bottom 3; }; + }; + + special "cursor" + { + graphic FOCUS "entry_cursor"; + align 0.0 0.0; + fill 0.0 1.0; + margin { left 3; right 3; top 3; bottom 3; }; + }; +}; + +graphic "dark_grey_sunken_shallow" +{ + texture "basic_skin.png"; + slice 13 39 12 12; + border { left 3; right 3; top 3; bottom 3; }; +}; + +graphic "hthumb" +{ + texture "basic_skin.png"; + slice 26 45 20 10; + border { left 3; right 3; top 3; bottom 3; }; +}; + +graphic "hthumb_light" +{ + texture "basic_skin.png"; + slice 26 34 20 10; + border { left 3; right 3; top 3; bottom 3; }; +}; + +style "hslider" +{ + part + { + graphic NORMAL "dark_grey_sunken_shallow"; + }; + + special "slider" + { + graphic NORMAL "hthumb"; + graphic HOVER "hthumb_light"; + fill 0.0 1.0; + margin { left 1; right 1; top 1; bottom 1; }; + }; +}; + +graphic "vthumb" +{ + texture "basic_skin.png"; + slice 26 13 10 20; + border { left 3; right 3; top 3; bottom 3; }; +}; + +graphic "vthumb_light" +{ + texture "basic_skin.png"; + slice 37 13 10 20; + border { left 3; right 3; top 3; bottom 3; }; +}; + +style "vslider" +{ + part + { + graphic NORMAL "dark_grey_sunken_shallow"; + }; + + special "slider" + { + graphic NORMAL "vthumb"; + graphic HOVER "vthumb_light"; + fill 1.0 0.0; + margin { left 1; right 1; top 1; bottom 1; }; + }; +}; + +graphic "blue_flat" +{ + texture "basic_skin.png"; + slice 1 1 10 10; +}; + +style "list" +{ + font_color 0.0 0.0 0.0; + + part + { + graphic NORMAL "white_sunken"; + margin { right 12; }; + }; + + special "slider" + { + size 12 12; + fill 0.0 1.0; + align 1.0 0.5; + //margin { right 1; top 1; bottom 1; }; + }; + + special "selection" + { + graphic NORMAL "blue_flat"; + margin { left 3; right 14; top 3; bottom 3; }; + }; + + special "items" + { + margin { left 3; right 14; top 3; bottom 3; }; + }; +}; + +graphic "grey_raised_divided" +{ + texture "basic_skin.png"; + slice 13 0 20 12; + border { left 3; right 15; top 5; bottom 5; }; +}; + +graphic "light_grey_raised_divided" +{ + texture "basic_skin.png"; + slice 34 0 20 12; + border { left 3; right 15; top 5; bottom 5; }; +}; + +graphic "arrow_down" +{ + texture "basic_skin.png"; + slice 44 56 8 8; +}; + +graphic "arrow_left" +{ + texture "basic_skin.png"; + slice 53 56 8 8; +}; + +style "dropdown" +{ + font_color 0.0 0.0 0.0; + + part + { + graphic NORMAL "grey_raised_divided"; + graphic HOVER "light_grey_raised_divided"; + }; + + part + { + graphic NORMAL "arrow_left"; + graphic ACTIVE "arrow_down"; + fill 0.0 0.0; + align 1.0 0.5; + margin { right 3; }; + }; + + special "text" + { + fill 0.0 0.0; + align 0.0 0.5; + margin { left 4; }; + }; + + special "list"; +}; + +graphic "grey_beveled" +{ + texture "basic_skin.png"; + slice 0 13 12 12; + border { left 4; right 4; top 4; bottom 4; }; +}; + +style "panel" +{ + part + { + graphic NORMAL "grey_beveled"; + }; + + special "children"; +}; + +style "root" +{ + special "children"; +}; diff --git a/basic_skin.png b/basic_skin.png new file mode 100644 index 0000000000000000000000000000000000000000..ac4907dfa791d6e3d1882b0115052c63e8694eab GIT binary patch literal 1276 zcmVPx(wn;=mRCwC$T1`ybSP=f47<=>QN@xq+NUOadI(bPRtRp*4W&yfenL(gpp>q?*~6O13W@FKII#(t3(jN4 ze)HLH=9_tsX*3#5P>3K1j3|m!HnJ=;q9`_HS!O8ACIBn~&;YywaHfy%01&%93c#$% zJ+lCaQHKS9lamu$Gg?|&YF&$>Xv=10Wd(vD*il{8{}y!T_W=B;k39o0qk}+nM>`3z zaQxP!*_(^w<73m=DT;DyESXH2+DuPR+kM-shRGKIEEt@Je!T$TcL0hGfY{;fD|Q{f zkpR4rY!~N=O?zT7merSvZ05XI0Icd0TkYU{LBDI- z?Ydz2eWtJZPC?LUBX{{C6g|*cE&(q9D6~zw-FYJjznO(40|1JN&aAB<=n)9$;yikY z1$KZKJOCXyK*5FEDh~8#Jpq80aM>YbZrq0jfQ^j}YC}nqsBP>LE*e7CGXV4R^VCM0 zo12awXhygcMS&zqmO5?1;D5JKQ<007|p z{M=NrTrOi6C4hS_17(7C(yfz}d?x^Kl5U3z04M2or~vRa6&{rMk_r#{lQT=V<#HL4 zBw6aXz61sxd3_ZFoJ40Qm7s3{a1xypiNx>}L%kL@gpfRdTre0&aUB1J=lKf9ai!(u z<>H-Tg0d{zQeIzQZxuF#ke>jQYPDLrepZL}uZ9Q0gYd(NhpBixo_g`}#V;Jk*sT4j`K7i-B9Dw3bQDKH*k~htcZZbJJiH{%u0>_OdX{fLu2n>y`Cjf99hiEir zsTYgI&}=qsQ(+^;rP1{QfXc+g_o-^N+O;)yd3lL&I0RKyE5`9|9p6sf-fooGO*-tT zBgFGu>CvMf@b3M4Twh<``oE@WxVX4LAQ(U}7%cfY4LSng>C<0}2=#+c^pm5EsPG7Y5dimh{r8*(-A;?0q~C2Z#{l%B mSn=Yxo+AMIQLK1X0R0Cd7}s{w;u#+R0000YB>E= z>Dh(q{cC0~6a2h-$|>dr>#_seiwhTR75ggfR3W9lbJwo8_3hUhl4Op@=2lb-O|oxH zlyJ!|dtaNlw$lzx`y<**e-IEe4Q-5EMQwZf= zmRWTxQXWDR8=%wJb{p<$* zbxYJ7Uh{0`W+;}La;MBI@GI#lw*1liy jkPb{5q6nE}-|YWJ|6B;`RqYAD1i;|w>gTe~DWM4fs?*=N -- 2.43.0