From 7af0b1d2b1b1828d1b756e867a07227de2140756 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Mon, 18 Jun 2012 10:40:28 +0000 Subject: [PATCH] skins: mursky and testtest uploaded git-svn-id: svn://kolibrios.org@2807 a494cfbc-eb01-0410-851d-a64ba20cac60 --- skins/mursky/active/base.bmp | Bin 0 -> 438 bytes skins/mursky/active/left.bmp | Bin 0 -> 438 bytes skins/mursky/active/oper.bmp | Bin 0 -> 4374 bytes skins/mursky/inactive/base.bmp | Bin 0 -> 438 bytes skins/mursky/inactive/left.bmp | Bin 0 -> 438 bytes skins/mursky/inactive/oper.bmp | Bin 0 -> 4374 bytes skins/mursky/mursky.asm | 40 ++++++ skins/mursky/mursky.dtp.asm | 10 ++ skins/mursky/mursky.png | Bin 0 -> 4066 bytes skins/mursky/my_skin.inc | 235 +++++++++++++++++++++++++++++++ skins/testtest/active/base.bmp | Bin 0 -> 566 bytes skins/testtest/active/left.bmp | Bin 0 -> 1454 bytes skins/testtest/active/oper.bmp | Bin 0 -> 1454 bytes skins/testtest/inactive/base.bmp | Bin 0 -> 566 bytes skins/testtest/inactive/left.bmp | Bin 0 -> 1454 bytes skins/testtest/inactive/oper.bmp | Bin 0 -> 1454 bytes skins/testtest/my_skin.inc | 235 +++++++++++++++++++++++++++++++ skins/testtest/testtest.asm | 40 ++++++ skins/testtest/testtest.dtp.asm | 10 ++ 19 files changed, 570 insertions(+) create mode 100644 skins/mursky/active/base.bmp create mode 100644 skins/mursky/active/left.bmp create mode 100644 skins/mursky/active/oper.bmp create mode 100644 skins/mursky/inactive/base.bmp create mode 100644 skins/mursky/inactive/left.bmp create mode 100644 skins/mursky/inactive/oper.bmp create mode 100644 skins/mursky/mursky.asm create mode 100644 skins/mursky/mursky.dtp.asm create mode 100644 skins/mursky/mursky.png create mode 100644 skins/mursky/my_skin.inc create mode 100644 skins/testtest/active/base.bmp create mode 100644 skins/testtest/active/left.bmp create mode 100644 skins/testtest/active/oper.bmp create mode 100644 skins/testtest/inactive/base.bmp create mode 100644 skins/testtest/inactive/left.bmp create mode 100644 skins/testtest/inactive/oper.bmp create mode 100644 skins/testtest/my_skin.inc create mode 100644 skins/testtest/testtest.asm create mode 100644 skins/testtest/testtest.dtp.asm diff --git a/skins/mursky/active/base.bmp b/skins/mursky/active/base.bmp new file mode 100644 index 0000000000000000000000000000000000000000..ce04c2404529172eeadd1ad10da5e5100d6ee980 GIT binary patch literal 438 zcmYk0Nm9Z<7)E~A!!*zFX2mY zLD&1g`trKd)fbnq1U`YT90V22f<>wld|m_{hGM z)8tQ7mQGVrTi=7CNNUxSNd^U#-Iq*i%kd{rWI6gkk@2t!5)CTxsH$v@q|2iB2JxVx zERB??{~mVBKuIl)`!)9G#xqbPG|MQ`Z$E;}TBW)9f+FeSH69@7Jn*@Dy{T6)A7q71lkv}X3{d4cjubiDfmz4aR;wQ`jbIg=-SClgS(P1&f`6*vs?B@1Q;^FPel>!3=e|m=S zS2XyJ9mGYLcpLV1iy;!;23AHCSo@xG<9CQ~={J5Ct!HND=I^a0t@YGIT%^xjeKl?Z zf9x4Ve4lwA(xm}~j zGDpLOqiz)~datRY?fcMtL@WvuN1dwQx<|rc=ZOfPH7mkX<1T1F@ISclM882S6Xm^r OJ65leU+lB;FXb1y=?9Gf literal 0 HcmV?d00001 diff --git a/skins/mursky/active/oper.bmp b/skins/mursky/active/oper.bmp new file mode 100644 index 0000000000000000000000000000000000000000..d2dd9bd512dce9148b5341ee6527c8ff0259078e GIT binary patch literal 4374 zcmdUx$x;(h6o%v4jk>UW1fRf_EBC&GuizW_67JnvYEcdpQlJnF^OylL(u6P%9k5&q zxqkPaaC#tOXhKy?{e9~E>HGKjy8DLW+4G0@Q||MG`k3P>$0LqAuBKA;d#TieyK?Zg z`%DeI{x5V?&!dCd(yNy*sA{+J6a8;thI7BVc<5yjP5)b%_bT&nQV-UbQJ0or0?D8R zK_UuC&$Hbt&o#g<&(U{p$r|_R^5?*M86?3jQ?g96T*3C0d9+)a0h@X)E7JjQwOR{9 zZ?49WS&Y!s)$7A&H47yDPH}p-G>d2&xrysq3(#t{^=sdpZa8_yubNX&tUfClq|6-` z+tlB);1O@+(%Y+(J8RR3CV`D$|J*Vso>jAE{EDq7o-)gzfZ3gmEsoh(7D(dTg^cAa zWVoPJA{)W>9k6AtT5P|nb7fG#?9STz3N4P=SQbL!jrgEdpD6nglkA4M|%%SFRsn4mdB?+Z}b$H-mSiki<8$WAzm) z8q0Yz>#)z;KS{r2{4!Ez85A(Pv&JrC3$+)=Y%B{NaX9NM-#3=OA)1@pOW38*TstVl z45v!4<2II+_{P#GoK$ad1ogy5u#by6R|bWcE9STuh^KwY#HqE?v|lKA@k*XrybqS?%j_tv(tjS*%U6k^VsLsYQ8LCf61Dzicohm%{VOn*i+ zJ-13oBZKrC%XyHsQtV4snH7?Fb!HGwYH9K#x(zFkR2dX7%m0P{s`8E$l6WyQP?`C{ zH&pstvJ65p=(^0@lV-UB{o2F_RG#|8pKI#vS((KMngmivvh0V|^gBcYcK=(L;ap3< TFO0oKrOZJ8+XU~ZA0mGMGz0^7 literal 0 HcmV?d00001 diff --git a/skins/mursky/inactive/base.bmp b/skins/mursky/inactive/base.bmp new file mode 100644 index 0000000000000000000000000000000000000000..737498f381f096ca385591e54b1f208e510bee86 GIT binary patch literal 438 zcmYj}J5s|y5JblTkuxHWzzH~jb8bYy8K~k2#LhSZM*x*&WJ|mHucXz-Id4`3QoSDa zbWiQ!`Ew`XdtyGKJM@5dVT!!c-|truhwtn7zD1Uyy7>k$Q)2`zeR=aWU<9oZJ?Or4 z#mH4x{P+B3mlH8%c6N3}z!J&WWRs&IwHTRNqfu*Ebmu0Jtw!&+$XKU7fT7Ud*H>Q! z>Z|zbqEU76r6NO_geYa=Whj2Zmx(^4dztjb88AfpK7DUvz(}8;iI~ouKv18@A&S>M eawh8RiHNDa%YGE2k-q1$s7=2???2vNw#Xlkr9oE! literal 0 HcmV?d00001 diff --git a/skins/mursky/inactive/left.bmp b/skins/mursky/inactive/left.bmp new file mode 100644 index 0000000000000000000000000000000000000000..1033dc6451a8eb60b33e7b2d5dfef85624da8cb5 GIT binary patch literal 438 zcmX|&J95G>5QasOiY`@-kP~nK`rIf*&XAcLAvGOG$Pp3-^D?sK2eK_2==pZ7So7^l z|3k~S^~~s5uwR)c=7pK*Hs*u;c|H!dp6}21d#Fc#R$pe)x2_y&EBe+J_fP>3(b&Am zLG#A-SdEK0*VX4(Y{{?QDH)dj_aqq%UUgrehl@o_+G0_TeHCay{)Z}s9{%+yluC7y z96OZ9Pzc&DkA0nDb;Ut+=k}pE@SiQZbvq!$ig}wQKv6VyoA12cg7))7tt4u1H%+$1 WVoUDNe}WZj)SFBC3$agS!aM+s$t literal 0 HcmV?d00001 diff --git a/skins/mursky/inactive/oper.bmp b/skins/mursky/inactive/oper.bmp new file mode 100644 index 0000000000000000000000000000000000000000..f93e522df9a159256c89e70210a6080096409517 GIT binary patch literal 4374 zcmdUuO>PrG5QWW}4X{8QffKM|#hx2+3M7uenj>V#2@phf;`n#`H+IH$vWBm^;wP(U zr14}T8LOsMuiUTSm-ght$JZ}A>GO{DEzf(NH$2bM+UX2lbULq|`@=YWzJL4jU(|iI zr0#C#Uq63hmE0}I=PzM4&duz;T2M6SFYTTWoZPTgJ&CbF`GqtvVsS5o^g!ONi!Hak zF08LD@%lf)?|L80Ni>+L{kd^(o{yJqL!!URu#LoMWYIJBCN|F4HeUxkWqn!aSD}xuv#0+ga zC76JHlxsoSmW2$%;C1_UF|1P282sa;c#g4^>p|KR@Uk*^!NU$`wHQ?MRExpmrI3Vu zlxr#4kcAAx;B|X7zcJ4FO*Ko^h7^@!E7ybcZNSUQ-~|%veS4E(ZcmEMu|10j%>!Omidm3$&aA&Ft|%I?+m*s2n%;vn%tD5t zm<5U5IE(Aeq({-TE=5S=L7D`-tQ4~#v2UhVaI%);F7*`BAz3|0%)B#o%6}t4Vo#jC zH0d3%+m{4Uo2i|ADl>nVyqrK^jxVY8q|0fnPbWQ#2$}{Z$aGG(9R0Ey8@65bc}tj$ Ub9A{H{-hqT&s#S5jn2XH2YgEImjD0& literal 0 HcmV?d00001 diff --git a/skins/mursky/mursky.asm b/skins/mursky/mursky.asm new file mode 100644 index 0000000000..e6147ef216 --- /dev/null +++ b/skins/mursky/mursky.asm @@ -0,0 +1,40 @@ +;;===================================================================== +;; dunkaist, Mario | 2010 +;;--------------------------------------------------------------------- + +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height, \ ; skin height + margins = [5:1:42:1], \ ; margins [left:top:right:bottom] + colors \ + active = [ \ + binner = 0x95afc6: \ ; border inner color + bouter = 0x607180: \ ; border outer color + bframe = 0xd3e0eb], \ ; border frame color + colors \ + inactive = [ \ + binner = 0x95afc6: \ ; border inner color + bouter = 0x7c92a5: \ ; border outer color + bframe = 0xeaf0f5], \ ; border frame color +\ + dtp = 'mursky.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:2][20:20], \ ; buttons coordinates + minimize = [-43:2][20:20] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left, \ ; skin bitmaps pointers + left inactive = bmp_left1, \ + oper active = bmp_oper, \ + oper inactive = bmp_oper1, \ + base active = bmp_base, \ + base inactive = bmp_base1 + +BITMAP bmp_left ,'active/left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'active/oper.bmp' +BITMAP bmp_base ,'active/base.bmp' +BITMAP bmp_left1,'inactive/left.bmp' +BITMAP bmp_oper1,'inactive/oper.bmp' +BITMAP bmp_base1,'inactive/base.bmp' diff --git a/skins/mursky/mursky.dtp.asm b/skins/mursky/mursky.dtp.asm new file mode 100644 index 0000000000..71c69f0ec5 --- /dev/null +++ b/skins/mursky/mursky.dtp.asm @@ -0,0 +1,10 @@ +frame dd 0x95afcf +grab dd 0x95afcf +grab_button dd 0x95afcf +grab_button_text dd 0xffffff +grab_text dd 0x333333 +work dd 0xe2e4e4 +work_button dd 0xacc4da +work_button_text dd 0x001c1e +work_text dd 0x333333 +work_graph dd 0x95afcf \ No newline at end of file diff --git a/skins/mursky/mursky.png b/skins/mursky/mursky.png new file mode 100644 index 0000000000000000000000000000000000000000..ab0d396307a30981850352437dcf03be2d4c489a GIT binary patch literal 4066 zcmaKvcTkf}*N5*AqzD8ADbl2i(whhvnkXIVod6<2zz9;LLqMt&DUUP}L8Y5W3m6~} zKq(?kn)Dh_BE5vp8=v>T@16N(erI=f_ue^Y&YZdSJ_*J~+6)&tF9HC-psS;0N}lm# ztEHhLk8NIp1LO(hYpSgYp!>LglNVGE^tH7BC*Uc7{CQ;PPu`*R*0J#g06Lbx1_E;P zH~@grUsp@RJaA&|4I+tkgs0=JT)?_RywtqDVeZe4aCbFpGt{66hT*Qd1VvlhdIQ{` zz0RrrvYEZHBI|_;xG`w!!cZU1LvmLC4q3+T8f6;v&N%wuCwv4LiiE&1zEL zZadCxJ!d=z7qHy7K9ds^PTR0EC3h|t(088WyG+QxR16om_;@Wsk&{bLAg04XJw1uH zD7ly5^H_!%woO!KP}T<`cRNFO)1?kUAK8R8CFIrSn=Z5rOe`n6fIN`E3WY)ozZ8OW-W7sq7}UW` zoO~31sz2J;1Pf&Xw*}8c^M$xLkpn>V|IwE`+H)v=YT2@H+d#9#W${k)*p=IdgG*Di z`IFzTen{Qqm>6s2XX2L!_*Dn7bX^aSz4mU3ahlZDcqy(hq^wPgq!CsupGk8)kfYm?0W&0Vz0;`7paV zH~FK?&L4zCiQ#NhD}@z0>ETR^cjR$e+E@6XKA*0w#u8r;|Z=^cs2H>G_8h=2S z4a4T6cZyi^)|B#Bfbd5FDQ`f<`@h-} z-h49`mp{$rp1DG7k>j}g9Lq}ugACSr$#OLm!bbeNg0 zE9&a%ES%(knw;C@BUM&rqyAb)P>n<{%3j!Zv1vTtpE5xk<%3v>e2;bswUHDb4i;3T z{2>oAWRa$4K_(O*)}--p*44&hYrN;WJek^HMl|Lhup|7GkNpqGH)Y8;`R%rQ-nUHf z7V<J&lklrOZIN;09c^zl)aYHr0C*faOQf2e@4&J;W1&A!(Rf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ursky/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/mursky/my_skin.inc @@ -0,0 +1,235 @@ +;============================================================================ +; This file should be used to generate skins of new standard +;============================================================================ +; skin file structure: +;---------------------------------------------------------------------------- +; header: +; dd 'SKIN' +; dd = version (1 for now) +; dd @ params +; dd @ buttons +; dd @ bitmaps +; ... +;---------------------------------------------------------------------------- +; NOTE: order of sections listed below is insignificant +; since they're identified by pointer in above header +;---------------------------------------------------------------------------- +; ... +; params: +; dd = skin height +; dw = right margin +; dw = left margin +; dw = bottom margin +; dw = top margin +; dd = inner line color +; dd = outer line color +; dd = frame color +; dd = dtp file size +; ?? = dtp file itself +; ... +;---------------------------------------------------------------------------- +; ... +; buttons: +; dd = button type (1 = close, 2 = minimize) +; dw = left button coord (could be negative) +; dw = top button coord (could be negative) +; dw = button width +; dw = button height +; ... etc for all buttons +; dd = 0 (end of buttons list) +; ... +;---------------------------------------------------------------------------- +; ... +; bitmaps: +; dw = bitmap kind (1 = left, 2 = oper, 3 = base) +; dw = bitmap type (1 = active, 0 = inactive) +; dd @ bitmap +; ... etc for all bitmaps +; dd 0 (end of bitmaps list) +; ... +;---------------------------------------------------------------------------- +; ... +; bitmap: +; dd = bitmap width +; dd = bitmap height +; ?? = raw bitmap data +; ... etc for all bitmaps +; ... +;============================================================================ + +dd 'SKIN',1,__params__,__buttons__,__bitmaps__ + +struc BITMAPFILEHEADER { + .bfType dw ? ; WORD + .bfSize dd ? ; DWORD + .bfReserved1 dw ? ; WORD + .bfReserved2 dw ? ; WORD + .bfOffBits dd ? ; DWORD +} + +struc BITMAPINFOHEADER { + .biSize dd ? ; DWORD + .biWidth dd ? ; LONG + .biHeight dd ? ; LONG + .biPlanes dw ? ; WORD + .biBitCount dw ? ; WORD + .biCompression dd ? ; DWORD + .biSizeImage dd ? ; DWORD + .biXPelsPerMeter dd ? ; LONG + .biYPelsPerMeter dd ? ; LONG + .biClrUsed dd ? ; DWORD + .biClrImportant dd ? ; DWORD +} + +struc _bmp { + .h BITMAPFILEHEADER + .i BITMAPINFOHEADER +} +virtual at 0 + _bmp _bmp +end virtual + +macro BITMAP _name*,_fname* +{ + local w,h,a,r,g,b + virtual at 0 + file _fname + load w dword from _bmp.i.biWidth + load h dword from _bmp.i.biHeight + end virtual + align 4 + label _name + .width = w + .height = h + dd w,h + a=54+(w*3+(w mod 4))*(h-1) + size = $ + repeat h + repeat w + virtual at 0 + file _fname + load r from a+0 + load g from a+1 + load b from a+2 + end virtual + db r,g,b + a=a+3 + end repeat + a=a-w*3*2-(w mod 4) + end repeat +} + +macro define_colors name,[col,val] +{ + common + local a,b,c + forward + match =binner,col \{ a = val \} + match =bouter,col \{ b = val \} + match =bframe,col \{ c = val \} + common + name equ a,b,c +} + +macro SKIN_PARAMS [a] +{ + common + local _height,_margins,_colors,_colors_1,_dtp,_dtp_sz + __params__: + forward + match qq == ww,a + \{ + match =height,qq \\{ _height = ww \\} + match =margins,qq \\{ + match [q1:q2:q3:q4],ww + \\\{ + _margins equ q3,q1,q4,q2 + \\\} + \\} + match =colors =active,qq + \\{ + match [q10==q11:q20==q21:q30==q31],ww + \\\{ + define_colors _colors,q10,q11,q20,q21,q30,q31 + \\\} + \\} + match =colors =inactive,qq + \\{ + match [q10==q11:q20==q21:q30==q31],ww + \\\{ + define_colors _colors_1,q10,q11,q20,q21,q30,q31 + \\\} + \\} + match =dtp,qq \\{ _dtp equ ww \\} + \} + common + dd _height + dw _margins + dd _colors,_colors_1 + virtual at 0 + file _dtp + _dtp_sz = $ + end virtual + dd _dtp_sz + file _dtp +} + +macro SKIN_BUTTONS [a] +{ + common + local btn + __buttons__: + forward + match qq == ww,a + \{ + btn = 0 + match =close,qq \\{ btn = 1 \\} + match =minimize,qq \\{ btn = 2 \\} + match [q1:q2][q3:q4],ww + \\{ + if btn <> 0 + dd btn + dw q1,q2,q3,q4 + end if + \\} + \} + common + dd 0 +} + +macro SKIN_BITMAPS [a] +{ + common + local bmp + __bitmaps__: + forward + match qq == ww,a + \{ + bmp=-1 + match qqq =active,qq \\{ bmp = 1 \\} + match qqq =inactive,qq \\{ bmp = 0 \\} + match =left qqq,qq + \\{ + if bmp >= 0 + dw 1,bmp + dd ww + end if + \\} + match =oper qqq,qq + \\{ + if bmp >= 0 + dw 2,bmp + dd ww + end if + \\} + match =base qqq,qq + \\{ + if bmp >= 0 + dw 3,bmp + dd ww + end if + \\} + \} + common + dd 0 +} \ No newline at end of file diff --git a/skins/testtest/active/base.bmp b/skins/testtest/active/base.bmp new file mode 100644 index 0000000000000000000000000000000000000000..4ab8c077cf7a238569e67837992be6fd5e4013d8 GIT binary patch literal 566 zcmZ?rHDh7`gDN1I1H_C#oDZfIfFuLM9-x3QHw1$PfP|BKP%(^6EDf~=N%{Z(45M)9 Jg#g3<{{T%l;i>=t literal 0 HcmV?d00001 diff --git a/skins/testtest/active/left.bmp b/skins/testtest/active/left.bmp new file mode 100644 index 0000000000000000000000000000000000000000..5bd7b983f9ca8f98aa1ced3cfb2053031cb0eea0 GIT binary patch literal 1454 zcmZ?rUB}7*230^Z2Z&jKI3I`^86V!Z literal 0 HcmV?d00001 diff --git a/skins/testtest/active/oper.bmp b/skins/testtest/active/oper.bmp new file mode 100644 index 0000000000000000000000000000000000000000..ed72194029c4b6e97251fc3bf9ba743da1a1a65c GIT binary patch literal 1454 zcmZ?rUB}7*230^Z2Z&jKI3I`^86Mm0;AzDnjS{ez-SskO9P0)@jn1Q$G*(~ literal 0 HcmV?d00001 diff --git a/skins/testtest/inactive/base.bmp b/skins/testtest/inactive/base.bmp new file mode 100644 index 0000000000000000000000000000000000000000..697bbef8f1481441469fe6e106e13b2b1a9db420 GIT binary patch literal 566 zcmZ?rHDh7`gDN1I1H_C#oDZfIfFuLM9-x3QHw1$PfP|BKP%(^6EDf~=q5MC?e+GvC Lqj;!=0WjVG;*;U3 literal 0 HcmV?d00001 diff --git a/skins/testtest/inactive/left.bmp b/skins/testtest/inactive/left.bmp new file mode 100644 index 0000000000000000000000000000000000000000..574a5add462da67e19acd19c199e29beb5cd34c9 GIT binary patch literal 1454 zcmZ?rUB}7*230^Z2Z&jKI3I`^86V!Z literal 0 HcmV?d00001 diff --git a/skins/testtest/inactive/oper.bmp b/skins/testtest/inactive/oper.bmp new file mode 100644 index 0000000000000000000000000000000000000000..7a0553950509c884e91ff70f02f58120870f2045 GIT binary patch literal 1454 zcmZ?rUB}7*230^Z2Z&jKI3I`^86 0 + dd btn + dw q1,q2,q3,q4 + end if + \\} + \} + common + dd 0 +} + +macro SKIN_BITMAPS [a] +{ + common + local bmp + __bitmaps__: + forward + match qq == ww,a + \{ + bmp=-1 + match qqq =active,qq \\{ bmp = 1 \\} + match qqq =inactive,qq \\{ bmp = 0 \\} + match =left qqq,qq + \\{ + if bmp >= 0 + dw 1,bmp + dd ww + end if + \\} + match =oper qqq,qq + \\{ + if bmp >= 0 + dw 2,bmp + dd ww + end if + \\} + match =base qqq,qq + \\{ + if bmp >= 0 + dw 3,bmp + dd ww + end if + \\} + \} + common + dd 0 +} diff --git a/skins/testtest/testtest.asm b/skins/testtest/testtest.asm new file mode 100644 index 0000000000..f76c241846 --- /dev/null +++ b/skins/testtest/testtest.asm @@ -0,0 +1,40 @@ +;;===================================================================== +;; dunkaist, Mario | 2010 +;;--------------------------------------------------------------------- + +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height, \ ; skin height + margins = [5:1:1:1], \ ; margins [left:top:right:bottom] + colors \ + active = [ \ + binner = 0xff0000: \ ; border inner color + bouter = 0xff0000: \ ; border outer color + bframe = 0x00ff00], \ ; border frame color + colors \ + inactive = [ \ + binner = 0x00ff00: \ ; border inner color + bouter = 0x00ff00: \ ; border outer color + bframe = 0xff0000], \ ; border frame color +\ + dtp = 'testtest.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:2][20:107], \ ; buttons coordinates + minimize = [-43:2][20:107] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left, \ ; skin bitmaps pointers + left inactive = bmp_left1, \ + oper active = bmp_oper, \ + oper inactive = bmp_oper1, \ + base active = bmp_base, \ + base inactive = bmp_base1 + +BITMAP bmp_left ,'active/left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'active/oper.bmp' +BITMAP bmp_base ,'active/base.bmp' +BITMAP bmp_left1,'inactive/left.bmp' +BITMAP bmp_oper1,'inactive/oper.bmp' +BITMAP bmp_base1,'inactive/base.bmp' diff --git a/skins/testtest/testtest.dtp.asm b/skins/testtest/testtest.dtp.asm new file mode 100644 index 0000000000..71c69f0ec5 --- /dev/null +++ b/skins/testtest/testtest.dtp.asm @@ -0,0 +1,10 @@ +frame dd 0x95afcf +grab dd 0x95afcf +grab_button dd 0x95afcf +grab_button_text dd 0xffffff +grab_text dd 0x333333 +work dd 0xe2e4e4 +work_button dd 0xacc4da +work_button_text dd 0x001c1e +work_text dd 0x333333 +work_graph dd 0x95afcf \ No newline at end of file