diff --git a/skins/5imple Alpha/1.5imple Alpha/1.5imple Alpha.png b/skins/5imple Alpha/1.5imple Alpha/1.5imple Alpha.png new file mode 100644 index 0000000000..2c6d725825 Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/1.5imple Alpha.png differ diff --git a/skins/5imple Alpha/1.5imple Alpha/1.5imple_Alpha.asm b/skins/5imple Alpha/1.5imple Alpha/1.5imple_Alpha.asm new file mode 100644 index 0000000000..5f229fcc1a --- /dev/null +++ b/skins/5imple Alpha/1.5imple Alpha/1.5imple_Alpha.asm @@ -0,0 +1,34 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x4F70A5],\ ; border frame color + colors inactive = [binner=0x323232:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x617598],\ ; border frame color + dtp = '1.5imple_Alpha.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-27:0][23:16],\ ; buttons coordinates + minimize = [-50:0][23:16] ; [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/5imple Alpha/1.5imple Alpha/1.5imple_Alpha.dtp b/skins/5imple Alpha/1.5imple Alpha/1.5imple_Alpha.dtp new file mode 100644 index 0000000000..b65e9a2e26 Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/1.5imple_Alpha.dtp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/Active/base.bmp b/skins/5imple Alpha/1.5imple Alpha/Active/base.bmp new file mode 100644 index 0000000000..475d43f828 Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/Active/base.bmp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/Active/left.bmp b/skins/5imple Alpha/1.5imple Alpha/Active/left.bmp new file mode 100644 index 0000000000..d39fa4f5ba Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/Active/left.bmp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/Active/oper.bmp b/skins/5imple Alpha/1.5imple Alpha/Active/oper.bmp new file mode 100644 index 0000000000..f9c9abbe1c Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/Active/oper.bmp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/Inactive/base.bmp b/skins/5imple Alpha/1.5imple Alpha/Inactive/base.bmp new file mode 100644 index 0000000000..ed46023cd3 Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/Inactive/base.bmp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/Inactive/left.bmp b/skins/5imple Alpha/1.5imple Alpha/Inactive/left.bmp new file mode 100644 index 0000000000..8aba9c67d4 Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/Inactive/left.bmp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/Inactive/oper.bmp b/skins/5imple Alpha/1.5imple Alpha/Inactive/oper.bmp new file mode 100644 index 0000000000..e0c9a52893 Binary files /dev/null and b/skins/5imple Alpha/1.5imple Alpha/Inactive/oper.bmp differ diff --git a/skins/5imple Alpha/1.5imple Alpha/my_skin.inc b/skins/5imple Alpha/1.5imple Alpha/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/5imple Alpha/1.5imple Alpha/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/5imple Alpha/2.5imple Alpha/2.5imple Alpha.png b/skins/5imple Alpha/2.5imple Alpha/2.5imple Alpha.png new file mode 100644 index 0000000000..81d149d724 Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/2.5imple Alpha.png differ diff --git a/skins/5imple Alpha/2.5imple Alpha/2.5imple_Alpha.asm b/skins/5imple Alpha/2.5imple Alpha/2.5imple_Alpha.asm new file mode 100644 index 0000000000..20f0a7b79b --- /dev/null +++ b/skins/5imple Alpha/2.5imple Alpha/2.5imple_Alpha.asm @@ -0,0 +1,34 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x4F70A5],\ ; border frame color + colors inactive = [binner=0x323232:\ ; border inner color + bouter=0x323232:\ ; border outer color + bframe=0x617598],\ ; border frame color + dtp = '2.5imple_Alpha.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-27:0][23:16],\ ; buttons coordinates + minimize = [-50:0][23:16] ; [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/5imple Alpha/2.5imple Alpha/2.5imple_Alpha.dtp b/skins/5imple Alpha/2.5imple Alpha/2.5imple_Alpha.dtp new file mode 100644 index 0000000000..b65e9a2e26 Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/2.5imple_Alpha.dtp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/Active/base.bmp b/skins/5imple Alpha/2.5imple Alpha/Active/base.bmp new file mode 100644 index 0000000000..475d43f828 Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/Active/base.bmp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/Active/left.bmp b/skins/5imple Alpha/2.5imple Alpha/Active/left.bmp new file mode 100644 index 0000000000..d39fa4f5ba Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/Active/left.bmp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/Active/oper.bmp b/skins/5imple Alpha/2.5imple Alpha/Active/oper.bmp new file mode 100644 index 0000000000..c8ebf6638a Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/Active/oper.bmp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/Inactive/base.bmp b/skins/5imple Alpha/2.5imple Alpha/Inactive/base.bmp new file mode 100644 index 0000000000..ed46023cd3 Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/Inactive/base.bmp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/Inactive/left.bmp b/skins/5imple Alpha/2.5imple Alpha/Inactive/left.bmp new file mode 100644 index 0000000000..8aba9c67d4 Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/Inactive/left.bmp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/Inactive/oper.bmp b/skins/5imple Alpha/2.5imple Alpha/Inactive/oper.bmp new file mode 100644 index 0000000000..d7eef39d14 Binary files /dev/null and b/skins/5imple Alpha/2.5imple Alpha/Inactive/oper.bmp differ diff --git a/skins/5imple Alpha/2.5imple Alpha/my_skin.inc b/skins/5imple Alpha/2.5imple Alpha/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/5imple Alpha/2.5imple Alpha/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/5imple Alpha/3.5imple Alpha/3.5imple Alpha.png b/skins/5imple Alpha/3.5imple Alpha/3.5imple Alpha.png new file mode 100644 index 0000000000..c7bef32f33 Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/3.5imple Alpha.png differ diff --git a/skins/5imple Alpha/3.5imple Alpha/3.5imple_Alpha.asm b/skins/5imple Alpha/3.5imple Alpha/3.5imple_Alpha.asm new file mode 100644 index 0000000000..1023193966 --- /dev/null +++ b/skins/5imple Alpha/3.5imple Alpha/3.5imple_Alpha.asm @@ -0,0 +1,36 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x4F70A5],\ ; border frame color + colors inactive = [binner=0x323232:\ ; border inner color + bouter=0x323232:\ ; border outer color + bframe=0x617598],\ ; border frame color + dtp = '3.5imple_Alpha.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-27:0][23:16],\ ; buttons coordinates + minimize = [-50:0][23:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/5imple Alpha/3.5imple Alpha/3.5imple_Alpha.dtp b/skins/5imple Alpha/3.5imple Alpha/3.5imple_Alpha.dtp new file mode 100644 index 0000000000..b65e9a2e26 Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/3.5imple_Alpha.dtp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/Active/base.bmp b/skins/5imple Alpha/3.5imple Alpha/Active/base.bmp new file mode 100644 index 0000000000..475d43f828 Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/Active/base.bmp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/Active/left.bmp b/skins/5imple Alpha/3.5imple Alpha/Active/left.bmp new file mode 100644 index 0000000000..d39fa4f5ba Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/Active/left.bmp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/Active/oper.bmp b/skins/5imple Alpha/3.5imple Alpha/Active/oper.bmp new file mode 100644 index 0000000000..bbc29c1151 Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/Active/oper.bmp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/Inactive/base.bmp b/skins/5imple Alpha/3.5imple Alpha/Inactive/base.bmp new file mode 100644 index 0000000000..ed46023cd3 Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/Inactive/base.bmp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/Inactive/left.bmp b/skins/5imple Alpha/3.5imple Alpha/Inactive/left.bmp new file mode 100644 index 0000000000..3395080d04 Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/Inactive/left.bmp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/Inactive/oper.bmp b/skins/5imple Alpha/3.5imple Alpha/Inactive/oper.bmp new file mode 100644 index 0000000000..47921468ac Binary files /dev/null and b/skins/5imple Alpha/3.5imple Alpha/Inactive/oper.bmp differ diff --git a/skins/5imple Alpha/3.5imple Alpha/my_skin.inc b/skins/5imple Alpha/3.5imple Alpha/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/5imple Alpha/3.5imple Alpha/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/5imple Alpha/5imple_alpha.png b/skins/5imple Alpha/5imple_alpha.png new file mode 100644 index 0000000000..c1ddf1bed8 Binary files /dev/null and b/skins/5imple Alpha/5imple_alpha.png differ diff --git a/skins/Black_lace/1.Black_lace/1.Black_lace.DTP b/skins/Black_lace/1.Black_lace/1.Black_lace.DTP new file mode 100644 index 0000000000..bd4bcd6063 Binary files /dev/null and b/skins/Black_lace/1.Black_lace/1.Black_lace.DTP differ diff --git a/skins/Black_lace/1.Black_lace/1.Black_lace.asm b/skins/Black_lace/1.Black_lace/1.Black_lace.asm new file mode 100644 index 0000000000..1e224a8231 --- /dev/null +++ b/skins/Black_lace/1.Black_lace/1.Black_lace.asm @@ -0,0 +1,37 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [22:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x484848:\ ; border inner color + bouter=0x484848:\ ; border outer color + bframe=0x030303],\ ; border frame color + colors inactive = [binner=0x5D5D5D:\ ; border inner color + bouter=0x5D5D5D:\ ; border outer color + bframe=0x353535],\ ; border frame color + dtp = '1.Black_lace.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:4][15:15],\ ; buttons coordinates + minimize = [-45:4][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + + diff --git a/skins/Black_lace/1.Black_lace/1.Black_lace.png b/skins/Black_lace/1.Black_lace/1.Black_lace.png new file mode 100644 index 0000000000..e2b10e7bea Binary files /dev/null and b/skins/Black_lace/1.Black_lace/1.Black_lace.png differ diff --git a/skins/Black_lace/1.Black_lace/Active/base.bmp b/skins/Black_lace/1.Black_lace/Active/base.bmp new file mode 100644 index 0000000000..5631079d0c Binary files /dev/null and b/skins/Black_lace/1.Black_lace/Active/base.bmp differ diff --git a/skins/Black_lace/1.Black_lace/Active/left.bmp b/skins/Black_lace/1.Black_lace/Active/left.bmp new file mode 100644 index 0000000000..9da7857560 Binary files /dev/null and b/skins/Black_lace/1.Black_lace/Active/left.bmp differ diff --git a/skins/Black_lace/1.Black_lace/Active/oper.bmp b/skins/Black_lace/1.Black_lace/Active/oper.bmp new file mode 100644 index 0000000000..5ad02db355 Binary files /dev/null and b/skins/Black_lace/1.Black_lace/Active/oper.bmp differ diff --git a/skins/Black_lace/1.Black_lace/Inactive/base.bmp b/skins/Black_lace/1.Black_lace/Inactive/base.bmp new file mode 100644 index 0000000000..1a36623d17 Binary files /dev/null and b/skins/Black_lace/1.Black_lace/Inactive/base.bmp differ diff --git a/skins/Black_lace/1.Black_lace/Inactive/left.bmp b/skins/Black_lace/1.Black_lace/Inactive/left.bmp new file mode 100644 index 0000000000..e4cf287829 Binary files /dev/null and b/skins/Black_lace/1.Black_lace/Inactive/left.bmp differ diff --git a/skins/Black_lace/1.Black_lace/Inactive/oper.bmp b/skins/Black_lace/1.Black_lace/Inactive/oper.bmp new file mode 100644 index 0000000000..8080ff0579 Binary files /dev/null and b/skins/Black_lace/1.Black_lace/Inactive/oper.bmp differ diff --git a/skins/Black_lace/1.Black_lace/me_skin.inc b/skins/Black_lace/1.Black_lace/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Black_lace/1.Black_lace/me_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/Black_lace/2.Black_lace/2.Black_lace.DTP b/skins/Black_lace/2.Black_lace/2.Black_lace.DTP new file mode 100644 index 0000000000..bd4bcd6063 Binary files /dev/null and b/skins/Black_lace/2.Black_lace/2.Black_lace.DTP differ diff --git a/skins/Black_lace/2.Black_lace/2.Black_lace.asm b/skins/Black_lace/2.Black_lace/2.Black_lace.asm new file mode 100644 index 0000000000..cb12b81e87 --- /dev/null +++ b/skins/Black_lace/2.Black_lace/2.Black_lace.asm @@ -0,0 +1,37 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x484848:\ ; border inner color + bouter=0x484848:\ ; border outer color + bframe=0x030303],\ ; border frame color + colors inactive = [binner=0x5D5D5D:\ ; border inner color + bouter=0x5D5D5D:\ ; border outer color + bframe=0x353535],\ ; border frame color + dtp = '2.Black_lace.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:4][15:15],\ ; buttons coordinates + minimize = [-45:4][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + + diff --git a/skins/Black_lace/2.Black_lace/2.Black_lace.png b/skins/Black_lace/2.Black_lace/2.Black_lace.png new file mode 100644 index 0000000000..4cf9e5c49f Binary files /dev/null and b/skins/Black_lace/2.Black_lace/2.Black_lace.png differ diff --git a/skins/Black_lace/2.Black_lace/Active/base.bmp b/skins/Black_lace/2.Black_lace/Active/base.bmp new file mode 100644 index 0000000000..5631079d0c Binary files /dev/null and b/skins/Black_lace/2.Black_lace/Active/base.bmp differ diff --git a/skins/Black_lace/2.Black_lace/Active/left.bmp b/skins/Black_lace/2.Black_lace/Active/left.bmp new file mode 100644 index 0000000000..387f52f81c Binary files /dev/null and b/skins/Black_lace/2.Black_lace/Active/left.bmp differ diff --git a/skins/Black_lace/2.Black_lace/Active/oper.bmp b/skins/Black_lace/2.Black_lace/Active/oper.bmp new file mode 100644 index 0000000000..5ad02db355 Binary files /dev/null and b/skins/Black_lace/2.Black_lace/Active/oper.bmp differ diff --git a/skins/Black_lace/2.Black_lace/Inactive/base.bmp b/skins/Black_lace/2.Black_lace/Inactive/base.bmp new file mode 100644 index 0000000000..1a36623d17 Binary files /dev/null and b/skins/Black_lace/2.Black_lace/Inactive/base.bmp differ diff --git a/skins/Black_lace/2.Black_lace/Inactive/left.bmp b/skins/Black_lace/2.Black_lace/Inactive/left.bmp new file mode 100644 index 0000000000..e4ccb1e019 Binary files /dev/null and b/skins/Black_lace/2.Black_lace/Inactive/left.bmp differ diff --git a/skins/Black_lace/2.Black_lace/Inactive/oper.bmp b/skins/Black_lace/2.Black_lace/Inactive/oper.bmp new file mode 100644 index 0000000000..8080ff0579 Binary files /dev/null and b/skins/Black_lace/2.Black_lace/Inactive/oper.bmp differ diff --git a/skins/Black_lace/2.Black_lace/me_skin.inc b/skins/Black_lace/2.Black_lace/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Black_lace/2.Black_lace/me_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/Black_lace/screenshot.png b/skins/Black_lace/screenshot.png new file mode 100644 index 0000000000..d85d0a6991 Binary files /dev/null and b/skins/Black_lace/screenshot.png differ diff --git a/skins/Blended/base.bmp b/skins/Blended/base.bmp new file mode 100644 index 0000000000..44d4a1275b Binary files /dev/null and b/skins/Blended/base.bmp differ diff --git a/skins/Blended/base_1.bmp b/skins/Blended/base_1.bmp new file mode 100644 index 0000000000..44d4a1275b Binary files /dev/null and b/skins/Blended/base_1.bmp differ diff --git a/skins/Blended/default.asm b/skins/Blended/default.asm new file mode 100644 index 0000000000..1fa76648af --- /dev/null +++ b/skins/Blended/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:54:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xC7CACC:\ ; border inner color + bouter=0xA3A6AA:\ ; border outer color + bframe=0xF5F5F5],\ ; border frame color + colors inactive = [binner=0xC7CACC:\ ; border inner color + bouter=0xA3A6AA:\ ; border outer color + bframe=0xF5F5F5],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][25:17],\ ; buttons coordinates + minimize = [-55:3][25:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/Blended/default.dtp b/skins/Blended/default.dtp new file mode 100644 index 0000000000..6bf5c33d4c Binary files /dev/null and b/skins/Blended/default.dtp differ diff --git a/skins/Blended/default.dtp.asm b/skins/Blended/default.dtp.asm new file mode 100644 index 0000000000..118e93dbeb --- /dev/null +++ b/skins/Blended/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xF5F5F5 +grab dd 0xF1F1F2 +grab_button dd 0x969A9E +grab_button_text dd 0x4F4F50 +grab_text dd 0x515151 +work dd 0xECEDEE +work_button dd 0xECEDEE +work_button_text dd 0x474747 +work_text dd 0x474747 +work_graph dd 0xC7CACC diff --git a/skins/Blended/default.skn b/skins/Blended/default.skn new file mode 100644 index 0000000000..299f3a9ae5 Binary files /dev/null and b/skins/Blended/default.skn differ diff --git a/skins/Blended/dtp_build.bat b/skins/Blended/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/Blended/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/Blended/left.bmp b/skins/Blended/left.bmp new file mode 100644 index 0000000000..31dd492fc5 Binary files /dev/null and b/skins/Blended/left.bmp differ diff --git a/skins/Blended/left_1.bmp b/skins/Blended/left_1.bmp new file mode 100644 index 0000000000..31dd492fc5 Binary files /dev/null and b/skins/Blended/left_1.bmp differ diff --git a/skins/Blended/me_skin.inc b/skins/Blended/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Blended/me_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/Blended/oper.bmp b/skins/Blended/oper.bmp new file mode 100644 index 0000000000..cb1e3b0823 Binary files /dev/null and b/skins/Blended/oper.bmp differ diff --git a/skins/Blended/oper_1.bmp b/skins/Blended/oper_1.bmp new file mode 100644 index 0000000000..8827522ccf Binary files /dev/null and b/skins/Blended/oper_1.bmp differ diff --git a/skins/Blended/pack_build.bat b/skins/Blended/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/Blended/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/Blended/skn_build.bat b/skins/Blended/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/Blended/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/Brick/1.Brick/Active/base.bmp b/skins/Brick/1.Brick/Active/base.bmp new file mode 100644 index 0000000000..91195453fa Binary files /dev/null and b/skins/Brick/1.Brick/Active/base.bmp differ diff --git a/skins/Brick/1.Brick/Active/left.bmp b/skins/Brick/1.Brick/Active/left.bmp new file mode 100644 index 0000000000..0ad17fde15 Binary files /dev/null and b/skins/Brick/1.Brick/Active/left.bmp differ diff --git a/skins/Brick/1.Brick/Active/oper.bmp b/skins/Brick/1.Brick/Active/oper.bmp new file mode 100644 index 0000000000..38d1c6bd48 Binary files /dev/null and b/skins/Brick/1.Brick/Active/oper.bmp differ diff --git a/skins/Brick/1.Brick/Brick.png b/skins/Brick/1.Brick/Brick.png new file mode 100644 index 0000000000..ff3f2871d8 Binary files /dev/null and b/skins/Brick/1.Brick/Brick.png differ diff --git a/skins/Brick/1.Brick/Default.dtp b/skins/Brick/1.Brick/Default.dtp new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/Brick/1.Brick/Default.dtp differ diff --git a/skins/Brick/1.Brick/Inactive/base.bmp b/skins/Brick/1.Brick/Inactive/base.bmp new file mode 100644 index 0000000000..91195453fa Binary files /dev/null and b/skins/Brick/1.Brick/Inactive/base.bmp differ diff --git a/skins/Brick/1.Brick/Inactive/left.bmp b/skins/Brick/1.Brick/Inactive/left.bmp new file mode 100644 index 0000000000..0ad17fde15 Binary files /dev/null and b/skins/Brick/1.Brick/Inactive/left.bmp differ diff --git a/skins/Brick/1.Brick/Inactive/oper.bmp b/skins/Brick/1.Brick/Inactive/oper.bmp new file mode 100644 index 0000000000..a1f7a7b4dc Binary files /dev/null and b/skins/Brick/1.Brick/Inactive/oper.bmp differ diff --git a/skins/Brick/1.Brick/brick.asm b/skins/Brick/1.Brick/brick.asm new file mode 100644 index 0000000000..c91a16f1b7 --- /dev/null +++ b/skins/Brick/1.Brick/brick.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x000000],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x000000],\ ; border frame color + dtp = 'Default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:4][16:17],\ ; buttons coordinates + minimize = [-43:4][16:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Brick/1.Brick/me_skin.inc b/skins/Brick/1.Brick/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Brick/1.Brick/me_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/BrownLustre/BrownLustre/Active/base.bmp b/skins/BrownLustre/BrownLustre/Active/base.bmp new file mode 100644 index 0000000000..f422987407 Binary files /dev/null and b/skins/BrownLustre/BrownLustre/Active/base.bmp differ diff --git a/skins/BrownLustre/BrownLustre/Active/left.bmp b/skins/BrownLustre/BrownLustre/Active/left.bmp new file mode 100644 index 0000000000..34472ed83e Binary files /dev/null and b/skins/BrownLustre/BrownLustre/Active/left.bmp differ diff --git a/skins/BrownLustre/BrownLustre/Active/oper.bmp b/skins/BrownLustre/BrownLustre/Active/oper.bmp new file mode 100644 index 0000000000..4c9594c217 Binary files /dev/null and b/skins/BrownLustre/BrownLustre/Active/oper.bmp differ diff --git a/skins/BrownLustre/BrownLustre/BrownLustre.DTP b/skins/BrownLustre/BrownLustre/BrownLustre.DTP new file mode 100644 index 0000000000..838fea6288 Binary files /dev/null and b/skins/BrownLustre/BrownLustre/BrownLustre.DTP differ diff --git a/skins/BrownLustre/BrownLustre/BrownLustre.asm b/skins/BrownLustre/BrownLustre/BrownLustre.asm new file mode 100644 index 0000000000..01b8b3250b --- /dev/null +++ b/skins/BrownLustre/BrownLustre/BrownLustre.asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x612000:\ ; border inner color + bouter=0x612000:\ ; border outer color + bframe=0x842B00],\ ; border frame color + colors inactive = [binner=0x6C4532:\ ; border inner color + bouter=0x6C4532:\ ; border outer color + bframe=0x844C32],\ ; border frame color + dtp = 'BrownLustre.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:6][12:12],\ ; buttons coordinates + minimize = [-42:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/BrownLustre/BrownLustre/Inactive/base.bmp b/skins/BrownLustre/BrownLustre/Inactive/base.bmp new file mode 100644 index 0000000000..29162394e6 Binary files /dev/null and b/skins/BrownLustre/BrownLustre/Inactive/base.bmp differ diff --git a/skins/BrownLustre/BrownLustre/Inactive/left.bmp b/skins/BrownLustre/BrownLustre/Inactive/left.bmp new file mode 100644 index 0000000000..dc7aea16a0 Binary files /dev/null and b/skins/BrownLustre/BrownLustre/Inactive/left.bmp differ diff --git a/skins/BrownLustre/BrownLustre/Inactive/oper.bmp b/skins/BrownLustre/BrownLustre/Inactive/oper.bmp new file mode 100644 index 0000000000..809d868d2d Binary files /dev/null and b/skins/BrownLustre/BrownLustre/Inactive/oper.bmp differ diff --git a/skins/BrownLustre/BrownLustre/me_skin.inc b/skins/BrownLustre/BrownLustre/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/BrownLustre/BrownLustre/me_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/BrownLustre/BrownLustre/scrBrownLustre.png b/skins/BrownLustre/BrownLustre/scrBrownLustre.png new file mode 100644 index 0000000000..2500d57d37 Binary files /dev/null and b/skins/BrownLustre/BrownLustre/scrBrownLustre.png differ diff --git a/skins/BrownLustre/BrownLustre_2/Active/base.bmp b/skins/BrownLustre/BrownLustre_2/Active/base.bmp new file mode 100644 index 0000000000..f422987407 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/Active/base.bmp differ diff --git a/skins/BrownLustre/BrownLustre_2/Active/left.bmp b/skins/BrownLustre/BrownLustre_2/Active/left.bmp new file mode 100644 index 0000000000..34472ed83e Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/Active/left.bmp differ diff --git a/skins/BrownLustre/BrownLustre_2/Active/oper.bmp b/skins/BrownLustre/BrownLustre_2/Active/oper.bmp new file mode 100644 index 0000000000..5485da3646 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/Active/oper.bmp differ diff --git a/skins/BrownLustre/BrownLustre_2/BrownLustre_2.DTP b/skins/BrownLustre/BrownLustre_2/BrownLustre_2.DTP new file mode 100644 index 0000000000..838fea6288 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/BrownLustre_2.DTP differ diff --git a/skins/BrownLustre/BrownLustre_2/BrownLustre_2.asm b/skins/BrownLustre/BrownLustre_2/BrownLustre_2.asm new file mode 100644 index 0000000000..89949d8d41 --- /dev/null +++ b/skins/BrownLustre/BrownLustre_2/BrownLustre_2.asm @@ -0,0 +1,37 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x612000:\ ; border inner color + bouter=0x612000:\ ; border outer color + bframe=0x842B00],\ ; border frame color + colors inactive = [binner=0x6C4532:\ ; border inner color + bouter=0x6C4532:\ ; border outer color + bframe=0x844C32],\ ; border frame color + dtp = 'BrownLustre_2.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:6][12:12],\ ; buttons coordinates + minimize = [-42:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + + diff --git a/skins/BrownLustre/BrownLustre_2/Inactive/base.bmp b/skins/BrownLustre/BrownLustre_2/Inactive/base.bmp new file mode 100644 index 0000000000..29162394e6 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/Inactive/base.bmp differ diff --git a/skins/BrownLustre/BrownLustre_2/Inactive/left.bmp b/skins/BrownLustre/BrownLustre_2/Inactive/left.bmp new file mode 100644 index 0000000000..dc7aea16a0 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/Inactive/left.bmp differ diff --git a/skins/BrownLustre/BrownLustre_2/Inactive/oper.bmp b/skins/BrownLustre/BrownLustre_2/Inactive/oper.bmp new file mode 100644 index 0000000000..c3d6b426d8 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/Inactive/oper.bmp differ diff --git a/skins/BrownLustre/BrownLustre_2/me_skin.inc b/skins/BrownLustre/BrownLustre_2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/BrownLustre/BrownLustre_2/me_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/BrownLustre/BrownLustre_2/scrBrownLustre_2.png b/skins/BrownLustre/BrownLustre_2/scrBrownLustre_2.png new file mode 100644 index 0000000000..dbceb9c127 Binary files /dev/null and b/skins/BrownLustre/BrownLustre_2/scrBrownLustre_2.png differ diff --git a/skins/BrownLustre/screenshot.png b/skins/BrownLustre/screenshot.png new file mode 100644 index 0000000000..bdc254f085 Binary files /dev/null and b/skins/BrownLustre/screenshot.png differ diff --git a/skins/Circles/1.Circles/1.Circles.asm b/skins/Circles/1.Circles/1.Circles.asm new file mode 100644 index 0000000000..3c5e5c91b0 --- /dev/null +++ b/skins/Circles/1.Circles/1.Circles.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7A7A7A:\ ; border inner color + bouter=0x7A7A7A:\ ; border outer color + bframe=0x8A8A8A],\ ; border frame color + colors inactive = [binner=0x969696:\ ; border inner color + bouter=0x969696:\ ; border outer color + bframe=0xA3A3A3],\ ; border frame color + dtp = 'GREY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:2][19:19],\ ; buttons coordinates + minimize = [-47:2][19:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +; \ No newline at end of file diff --git a/skins/Circles/1.Circles/Active/base.bmp b/skins/Circles/1.Circles/Active/base.bmp new file mode 100644 index 0000000000..8265c5d21d Binary files /dev/null and b/skins/Circles/1.Circles/Active/base.bmp differ diff --git a/skins/Circles/1.Circles/Active/left.bmp b/skins/Circles/1.Circles/Active/left.bmp new file mode 100644 index 0000000000..03150843b4 Binary files /dev/null and b/skins/Circles/1.Circles/Active/left.bmp differ diff --git a/skins/Circles/1.Circles/Active/oper.bmp b/skins/Circles/1.Circles/Active/oper.bmp new file mode 100644 index 0000000000..54f5d8f268 Binary files /dev/null and b/skins/Circles/1.Circles/Active/oper.bmp differ diff --git a/skins/Circles/1.Circles/GREY.DTP b/skins/Circles/1.Circles/GREY.DTP new file mode 100644 index 0000000000..ee9247634a Binary files /dev/null and b/skins/Circles/1.Circles/GREY.DTP differ diff --git a/skins/Circles/1.Circles/Inactive/base.bmp b/skins/Circles/1.Circles/Inactive/base.bmp new file mode 100644 index 0000000000..22943ef028 Binary files /dev/null and b/skins/Circles/1.Circles/Inactive/base.bmp differ diff --git a/skins/Circles/1.Circles/Inactive/left.bmp b/skins/Circles/1.Circles/Inactive/left.bmp new file mode 100644 index 0000000000..a56ede56d0 Binary files /dev/null and b/skins/Circles/1.Circles/Inactive/left.bmp differ diff --git a/skins/Circles/1.Circles/Inactive/oper.bmp b/skins/Circles/1.Circles/Inactive/oper.bmp new file mode 100644 index 0000000000..f27c76f15e Binary files /dev/null and b/skins/Circles/1.Circles/Inactive/oper.bmp differ diff --git a/skins/Circles/1.Circles/my_skin.inc b/skins/Circles/1.Circles/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Circles/1.Circles/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/Circles/2.Circles/2.Circles.asm b/skins/Circles/2.Circles/2.Circles.asm new file mode 100644 index 0000000000..3c5e5c91b0 --- /dev/null +++ b/skins/Circles/2.Circles/2.Circles.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7A7A7A:\ ; border inner color + bouter=0x7A7A7A:\ ; border outer color + bframe=0x8A8A8A],\ ; border frame color + colors inactive = [binner=0x969696:\ ; border inner color + bouter=0x969696:\ ; border outer color + bframe=0xA3A3A3],\ ; border frame color + dtp = 'GREY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:2][19:19],\ ; buttons coordinates + minimize = [-47:2][19:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +; \ No newline at end of file diff --git a/skins/Circles/2.Circles/Active/base.bmp b/skins/Circles/2.Circles/Active/base.bmp new file mode 100644 index 0000000000..8265c5d21d Binary files /dev/null and b/skins/Circles/2.Circles/Active/base.bmp differ diff --git a/skins/Circles/2.Circles/Active/left.bmp b/skins/Circles/2.Circles/Active/left.bmp new file mode 100644 index 0000000000..03150843b4 Binary files /dev/null and b/skins/Circles/2.Circles/Active/left.bmp differ diff --git a/skins/Circles/2.Circles/Active/oper.bmp b/skins/Circles/2.Circles/Active/oper.bmp new file mode 100644 index 0000000000..4833d7b1ca Binary files /dev/null and b/skins/Circles/2.Circles/Active/oper.bmp differ diff --git a/skins/Circles/2.Circles/GREY.DTP b/skins/Circles/2.Circles/GREY.DTP new file mode 100644 index 0000000000..ee9247634a Binary files /dev/null and b/skins/Circles/2.Circles/GREY.DTP differ diff --git a/skins/Circles/2.Circles/Inactive/base.bmp b/skins/Circles/2.Circles/Inactive/base.bmp new file mode 100644 index 0000000000..22943ef028 Binary files /dev/null and b/skins/Circles/2.Circles/Inactive/base.bmp differ diff --git a/skins/Circles/2.Circles/Inactive/left.bmp b/skins/Circles/2.Circles/Inactive/left.bmp new file mode 100644 index 0000000000..a56ede56d0 Binary files /dev/null and b/skins/Circles/2.Circles/Inactive/left.bmp differ diff --git a/skins/Circles/2.Circles/Inactive/oper.bmp b/skins/Circles/2.Circles/Inactive/oper.bmp new file mode 100644 index 0000000000..9c39768f1e Binary files /dev/null and b/skins/Circles/2.Circles/Inactive/oper.bmp differ diff --git a/skins/Circles/2.Circles/my_skin.inc b/skins/Circles/2.Circles/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Circles/2.Circles/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/Circles/3.Circles/3.Circles.asm b/skins/Circles/3.Circles/3.Circles.asm new file mode 100644 index 0000000000..3c5e5c91b0 --- /dev/null +++ b/skins/Circles/3.Circles/3.Circles.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7A7A7A:\ ; border inner color + bouter=0x7A7A7A:\ ; border outer color + bframe=0x8A8A8A],\ ; border frame color + colors inactive = [binner=0x969696:\ ; border inner color + bouter=0x969696:\ ; border outer color + bframe=0xA3A3A3],\ ; border frame color + dtp = 'GREY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:2][19:19],\ ; buttons coordinates + minimize = [-47:2][19:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +; \ No newline at end of file diff --git a/skins/Circles/3.Circles/Active/base.bmp b/skins/Circles/3.Circles/Active/base.bmp new file mode 100644 index 0000000000..8265c5d21d Binary files /dev/null and b/skins/Circles/3.Circles/Active/base.bmp differ diff --git a/skins/Circles/3.Circles/Active/left.bmp b/skins/Circles/3.Circles/Active/left.bmp new file mode 100644 index 0000000000..03150843b4 Binary files /dev/null and b/skins/Circles/3.Circles/Active/left.bmp differ diff --git a/skins/Circles/3.Circles/Active/oper.bmp b/skins/Circles/3.Circles/Active/oper.bmp new file mode 100644 index 0000000000..3b16ee6213 Binary files /dev/null and b/skins/Circles/3.Circles/Active/oper.bmp differ diff --git a/skins/Circles/3.Circles/GREY.DTP b/skins/Circles/3.Circles/GREY.DTP new file mode 100644 index 0000000000..ee9247634a Binary files /dev/null and b/skins/Circles/3.Circles/GREY.DTP differ diff --git a/skins/Circles/3.Circles/Inactive/base.bmp b/skins/Circles/3.Circles/Inactive/base.bmp new file mode 100644 index 0000000000..22943ef028 Binary files /dev/null and b/skins/Circles/3.Circles/Inactive/base.bmp differ diff --git a/skins/Circles/3.Circles/Inactive/left.bmp b/skins/Circles/3.Circles/Inactive/left.bmp new file mode 100644 index 0000000000..a56ede56d0 Binary files /dev/null and b/skins/Circles/3.Circles/Inactive/left.bmp differ diff --git a/skins/Circles/3.Circles/Inactive/oper.bmp b/skins/Circles/3.Circles/Inactive/oper.bmp new file mode 100644 index 0000000000..2b1e39391e Binary files /dev/null and b/skins/Circles/3.Circles/Inactive/oper.bmp differ diff --git a/skins/Circles/3.Circles/my_skin.inc b/skins/Circles/3.Circles/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Circles/3.Circles/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/Circles/4.Circles/4.Circles.asm b/skins/Circles/4.Circles/4.Circles.asm new file mode 100644 index 0000000000..3c5e5c91b0 --- /dev/null +++ b/skins/Circles/4.Circles/4.Circles.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7A7A7A:\ ; border inner color + bouter=0x7A7A7A:\ ; border outer color + bframe=0x8A8A8A],\ ; border frame color + colors inactive = [binner=0x969696:\ ; border inner color + bouter=0x969696:\ ; border outer color + bframe=0xA3A3A3],\ ; border frame color + dtp = 'GREY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:2][19:19],\ ; buttons coordinates + minimize = [-47:2][19:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +; \ No newline at end of file diff --git a/skins/Circles/4.Circles/Active/base.bmp b/skins/Circles/4.Circles/Active/base.bmp new file mode 100644 index 0000000000..8265c5d21d Binary files /dev/null and b/skins/Circles/4.Circles/Active/base.bmp differ diff --git a/skins/Circles/4.Circles/Active/left.bmp b/skins/Circles/4.Circles/Active/left.bmp new file mode 100644 index 0000000000..03150843b4 Binary files /dev/null and b/skins/Circles/4.Circles/Active/left.bmp differ diff --git a/skins/Circles/4.Circles/Active/oper.bmp b/skins/Circles/4.Circles/Active/oper.bmp new file mode 100644 index 0000000000..f0fdf80518 Binary files /dev/null and b/skins/Circles/4.Circles/Active/oper.bmp differ diff --git a/skins/Circles/4.Circles/GREY.DTP b/skins/Circles/4.Circles/GREY.DTP new file mode 100644 index 0000000000..ee9247634a Binary files /dev/null and b/skins/Circles/4.Circles/GREY.DTP differ diff --git a/skins/Circles/4.Circles/Inactive/base.bmp b/skins/Circles/4.Circles/Inactive/base.bmp new file mode 100644 index 0000000000..22943ef028 Binary files /dev/null and b/skins/Circles/4.Circles/Inactive/base.bmp differ diff --git a/skins/Circles/4.Circles/Inactive/left.bmp b/skins/Circles/4.Circles/Inactive/left.bmp new file mode 100644 index 0000000000..a56ede56d0 Binary files /dev/null and b/skins/Circles/4.Circles/Inactive/left.bmp differ diff --git a/skins/Circles/4.Circles/Inactive/oper.bmp b/skins/Circles/4.Circles/Inactive/oper.bmp new file mode 100644 index 0000000000..8bc43a9b56 Binary files /dev/null and b/skins/Circles/4.Circles/Inactive/oper.bmp differ diff --git a/skins/Circles/4.Circles/my_skin.inc b/skins/Circles/4.Circles/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Circles/4.Circles/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/CodeOpusC/Opus_A.skn b/skins/CodeOpusC/Opus_A.skn new file mode 100644 index 0000000000..adba5c32cd Binary files /dev/null and b/skins/CodeOpusC/Opus_A.skn differ diff --git a/skins/CodeOpusC/Opus_Alpha.dtp b/skins/CodeOpusC/Opus_Alpha.dtp new file mode 100644 index 0000000000..b04c43f42e Binary files /dev/null and b/skins/CodeOpusC/Opus_Alpha.dtp differ diff --git a/skins/CodeOpusC/Opus_B.skn b/skins/CodeOpusC/Opus_B.skn new file mode 100644 index 0000000000..e7eb7b9367 Binary files /dev/null and b/skins/CodeOpusC/Opus_B.skn differ diff --git a/skins/CodeOpusC/Opus_Blue.dtp b/skins/CodeOpusC/Opus_Blue.dtp new file mode 100644 index 0000000000..303f039efe Binary files /dev/null and b/skins/CodeOpusC/Opus_Blue.dtp differ diff --git a/skins/CodeOpusC/Opus_D.skn b/skins/CodeOpusC/Opus_D.skn new file mode 100644 index 0000000000..0878cfb88e Binary files /dev/null and b/skins/CodeOpusC/Opus_D.skn differ diff --git a/skins/CodeOpusC/Opus_DA.skn b/skins/CodeOpusC/Opus_DA.skn new file mode 100644 index 0000000000..47fb95249e Binary files /dev/null and b/skins/CodeOpusC/Opus_DA.skn differ diff --git a/skins/CodeOpusC/Opus_DeviantART.dtp b/skins/CodeOpusC/Opus_DeviantART.dtp new file mode 100644 index 0000000000..a37a733888 Binary files /dev/null and b/skins/CodeOpusC/Opus_DeviantART.dtp differ diff --git a/skins/CodeOpusC/Opus_Dusk.dtp b/skins/CodeOpusC/Opus_Dusk.dtp new file mode 100644 index 0000000000..a3826ca1ca Binary files /dev/null and b/skins/CodeOpusC/Opus_Dusk.dtp differ diff --git a/skins/CodeOpusC/Opus_G.skn b/skins/CodeOpusC/Opus_G.skn new file mode 100644 index 0000000000..c568757347 Binary files /dev/null and b/skins/CodeOpusC/Opus_G.skn differ diff --git a/skins/CodeOpusC/Opus_Green.dtp b/skins/CodeOpusC/Opus_Green.dtp new file mode 100644 index 0000000000..e654236212 Binary files /dev/null and b/skins/CodeOpusC/Opus_Green.dtp differ diff --git a/skins/Crystal/base.bmp b/skins/Crystal/base.bmp new file mode 100644 index 0000000000..f32c4cb3d3 Binary files /dev/null and b/skins/Crystal/base.bmp differ diff --git a/skins/Crystal/base_1.bmp b/skins/Crystal/base_1.bmp new file mode 100644 index 0000000000..122c8d5d66 Binary files /dev/null and b/skins/Crystal/base_1.bmp differ diff --git a/skins/Crystal/default.asm b/skins/Crystal/default.asm new file mode 100644 index 0000000000..0ba9566930 --- /dev/null +++ b/skins/Crystal/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:68:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x4e7ab2:\ ; border inner color + bouter=0x4e7ab2:\ ; border outer color + bframe=0x7197cc],\ ; border frame color + colors inactive = [binner=0xa4a4a4:\ ; border inner color + bouter=0xa4a4a4:\ ; border outer color + bframe=0xc2c2c2],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-34:2][28:17],\ ; buttons coordinates + minimize = [-63:2][28:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/Crystal/default.dtp b/skins/Crystal/default.dtp new file mode 100644 index 0000000000..f57c43c083 Binary files /dev/null and b/skins/Crystal/default.dtp differ diff --git a/skins/Crystal/default.dtp.asm b/skins/Crystal/default.dtp.asm new file mode 100644 index 0000000000..1ea96e326c --- /dev/null +++ b/skins/Crystal/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x7197cc +grab dd 0x7da6d5 +grab_button dd 0x7da6d5 +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/Crystal/default.skn b/skins/Crystal/default.skn new file mode 100644 index 0000000000..04aa243fea Binary files /dev/null and b/skins/Crystal/default.skn differ diff --git a/skins/Crystal/dtp_build.bat b/skins/Crystal/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/Crystal/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/Crystal/left.bmp b/skins/Crystal/left.bmp new file mode 100644 index 0000000000..c3dac20a1c Binary files /dev/null and b/skins/Crystal/left.bmp differ diff --git a/skins/Crystal/left_1.bmp b/skins/Crystal/left_1.bmp new file mode 100644 index 0000000000..1a80cf8876 Binary files /dev/null and b/skins/Crystal/left_1.bmp differ diff --git a/skins/Crystal/me_skin.inc b/skins/Crystal/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Crystal/me_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/Crystal/oper.bmp b/skins/Crystal/oper.bmp new file mode 100644 index 0000000000..742fcdecb5 Binary files /dev/null and b/skins/Crystal/oper.bmp differ diff --git a/skins/Crystal/oper_1.bmp b/skins/Crystal/oper_1.bmp new file mode 100644 index 0000000000..a0617faa09 Binary files /dev/null and b/skins/Crystal/oper_1.bmp differ diff --git a/skins/Crystal/pack_build.bat b/skins/Crystal/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/Crystal/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/Crystal/skn_build.bat b/skins/Crystal/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/Crystal/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/Cyclops/1.Cyclops/1.Cyclops.asm b/skins/Cyclops/1.Cyclops/1.Cyclops.asm new file mode 100644 index 0000000000..abfb4e28cb --- /dev/null +++ b/skins/Cyclops/1.Cyclops/1.Cyclops.asm @@ -0,0 +1,36 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0xA2A2A1],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x8A8A8A],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:4][17:17],\ ; buttons coordinates + minimize = [-39:5][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Cyclops/1.Cyclops/Active/base.bmp b/skins/Cyclops/1.Cyclops/Active/base.bmp new file mode 100644 index 0000000000..9cdfaee815 Binary files /dev/null and b/skins/Cyclops/1.Cyclops/Active/base.bmp differ diff --git a/skins/Cyclops/1.Cyclops/Active/left.bmp b/skins/Cyclops/1.Cyclops/Active/left.bmp new file mode 100644 index 0000000000..9655eff516 Binary files /dev/null and b/skins/Cyclops/1.Cyclops/Active/left.bmp differ diff --git a/skins/Cyclops/1.Cyclops/Active/oper.bmp b/skins/Cyclops/1.Cyclops/Active/oper.bmp new file mode 100644 index 0000000000..a39835cbf9 Binary files /dev/null and b/skins/Cyclops/1.Cyclops/Active/oper.bmp differ diff --git a/skins/Cyclops/1.Cyclops/Inactive/base.bmp b/skins/Cyclops/1.Cyclops/Inactive/base.bmp new file mode 100644 index 0000000000..e3ae88bad8 Binary files /dev/null and b/skins/Cyclops/1.Cyclops/Inactive/base.bmp differ diff --git a/skins/Cyclops/1.Cyclops/Inactive/left.bmp b/skins/Cyclops/1.Cyclops/Inactive/left.bmp new file mode 100644 index 0000000000..0fb35568a7 Binary files /dev/null and b/skins/Cyclops/1.Cyclops/Inactive/left.bmp differ diff --git a/skins/Cyclops/1.Cyclops/Inactive/oper.bmp b/skins/Cyclops/1.Cyclops/Inactive/oper.bmp new file mode 100644 index 0000000000..899b642ebf Binary files /dev/null and b/skins/Cyclops/1.Cyclops/Inactive/oper.bmp differ diff --git a/skins/Cyclops/1.Cyclops/default.dtp b/skins/Cyclops/1.Cyclops/default.dtp new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/Cyclops/1.Cyclops/default.dtp differ diff --git a/skins/Cyclops/1.Cyclops/my_skin.inc b/skins/Cyclops/1.Cyclops/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Cyclops/1.Cyclops/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/Cyclops/2.Cyclops/2.Cyclops.asm b/skins/Cyclops/2.Cyclops/2.Cyclops.asm new file mode 100644 index 0000000000..abfb4e28cb --- /dev/null +++ b/skins/Cyclops/2.Cyclops/2.Cyclops.asm @@ -0,0 +1,36 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0xA2A2A1],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x8A8A8A],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:4][17:17],\ ; buttons coordinates + minimize = [-39:5][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Cyclops/2.Cyclops/Active/base.bmp b/skins/Cyclops/2.Cyclops/Active/base.bmp new file mode 100644 index 0000000000..9cdfaee815 Binary files /dev/null and b/skins/Cyclops/2.Cyclops/Active/base.bmp differ diff --git a/skins/Cyclops/2.Cyclops/Active/left.bmp b/skins/Cyclops/2.Cyclops/Active/left.bmp new file mode 100644 index 0000000000..9655eff516 Binary files /dev/null and b/skins/Cyclops/2.Cyclops/Active/left.bmp differ diff --git a/skins/Cyclops/2.Cyclops/Active/oper.bmp b/skins/Cyclops/2.Cyclops/Active/oper.bmp new file mode 100644 index 0000000000..a92da0f68c Binary files /dev/null and b/skins/Cyclops/2.Cyclops/Active/oper.bmp differ diff --git a/skins/Cyclops/2.Cyclops/Inactive/base.bmp b/skins/Cyclops/2.Cyclops/Inactive/base.bmp new file mode 100644 index 0000000000..e3ae88bad8 Binary files /dev/null and b/skins/Cyclops/2.Cyclops/Inactive/base.bmp differ diff --git a/skins/Cyclops/2.Cyclops/Inactive/left.bmp b/skins/Cyclops/2.Cyclops/Inactive/left.bmp new file mode 100644 index 0000000000..0fb35568a7 Binary files /dev/null and b/skins/Cyclops/2.Cyclops/Inactive/left.bmp differ diff --git a/skins/Cyclops/2.Cyclops/Inactive/oper.bmp b/skins/Cyclops/2.Cyclops/Inactive/oper.bmp new file mode 100644 index 0000000000..0b83162a05 Binary files /dev/null and b/skins/Cyclops/2.Cyclops/Inactive/oper.bmp differ diff --git a/skins/Cyclops/2.Cyclops/default.dtp b/skins/Cyclops/2.Cyclops/default.dtp new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/Cyclops/2.Cyclops/default.dtp differ diff --git a/skins/Cyclops/2.Cyclops/my_skin.inc b/skins/Cyclops/2.Cyclops/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Cyclops/2.Cyclops/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/Cyclops/Cyclops.png b/skins/Cyclops/Cyclops.png new file mode 100644 index 0000000000..17b0b83114 Binary files /dev/null and b/skins/Cyclops/Cyclops.png differ diff --git a/skins/DTP/AQUA.DTP b/skins/DTP/AQUA.DTP new file mode 100644 index 0000000000..6ee4e47840 Binary files /dev/null and b/skins/DTP/AQUA.DTP differ diff --git a/skins/DTP/BLACK.DTP b/skins/DTP/BLACK.DTP new file mode 100644 index 0000000000..f5e4d2a562 Binary files /dev/null and b/skins/DTP/BLACK.DTP differ diff --git a/skins/DTP/BLUES.DTP b/skins/DTP/BLUES.DTP new file mode 100644 index 0000000000..731e003958 Binary files /dev/null and b/skins/DTP/BLUES.DTP differ diff --git a/skins/DTP/CGREEN.DTP b/skins/DTP/CGREEN.DTP new file mode 100644 index 0000000000..ba27c2c131 Binary files /dev/null and b/skins/DTP/CGREEN.DTP differ diff --git a/skins/DTP/GRAY.DTP b/skins/DTP/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/DTP/GRAY.DTP differ diff --git a/skins/DTP/GREEN.DTP b/skins/DTP/GREEN.DTP new file mode 100644 index 0000000000..ccf0162aeb Binary files /dev/null and b/skins/DTP/GREEN.DTP differ diff --git a/skins/DTP/MYBLUE.DTP b/skins/DTP/MYBLUE.DTP new file mode 100644 index 0000000000..9e268cc7a7 Binary files /dev/null and b/skins/DTP/MYBLUE.DTP differ diff --git a/skins/DTP/NEWSKIN.DTP b/skins/DTP/NEWSKIN.DTP new file mode 100644 index 0000000000..ac7ca62968 Binary files /dev/null and b/skins/DTP/NEWSKIN.DTP differ diff --git a/skins/DTP/ORANGE.DTP b/skins/DTP/ORANGE.DTP new file mode 100644 index 0000000000..3c74ae59b7 Binary files /dev/null and b/skins/DTP/ORANGE.DTP differ diff --git a/skins/DTP/RED.DTP b/skins/DTP/RED.DTP new file mode 100644 index 0000000000..7898d946c4 Binary files /dev/null and b/skins/DTP/RED.DTP differ diff --git a/skins/Dark_future/Active/base.bmp b/skins/Dark_future/Active/base.bmp new file mode 100644 index 0000000000..b614e6c69d Binary files /dev/null and b/skins/Dark_future/Active/base.bmp differ diff --git a/skins/Dark_future/Active/left.bmp b/skins/Dark_future/Active/left.bmp new file mode 100644 index 0000000000..03af7d825d Binary files /dev/null and b/skins/Dark_future/Active/left.bmp differ diff --git a/skins/Dark_future/Active/oper.bmp b/skins/Dark_future/Active/oper.bmp new file mode 100644 index 0000000000..5e1240b15a Binary files /dev/null and b/skins/Dark_future/Active/oper.bmp differ diff --git a/skins/Dark_future/Dark_future.asm b/skins/Dark_future/Dark_future.asm new file mode 100644 index 0000000000..23d8b54626 --- /dev/null +++ b/skins/Dark_future/Dark_future.asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x202020:\ ; border inner color + bouter=0x202020:\ ; border outer color + bframe=0x000000],\ ; border frame color + colors inactive = [binner=0x202020:\ ; border inner color + bouter=0x202020:\ ; border outer color + bframe=0x505050],\ ; border frame color + dtp = 'dark_future.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:4][21:16],\ ; buttons coordinates + minimize = [-49:4][21:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Dark_future/Inactive/base.bmp b/skins/Dark_future/Inactive/base.bmp new file mode 100644 index 0000000000..82b2ae69c9 Binary files /dev/null and b/skins/Dark_future/Inactive/base.bmp differ diff --git a/skins/Dark_future/Inactive/left.bmp b/skins/Dark_future/Inactive/left.bmp new file mode 100644 index 0000000000..c61b01596f Binary files /dev/null and b/skins/Dark_future/Inactive/left.bmp differ diff --git a/skins/Dark_future/Inactive/oper.bmp b/skins/Dark_future/Inactive/oper.bmp new file mode 100644 index 0000000000..36319d7151 Binary files /dev/null and b/skins/Dark_future/Inactive/oper.bmp differ diff --git a/skins/Dark_future/dark_future.dtp b/skins/Dark_future/dark_future.dtp new file mode 100644 index 0000000000..0ed28337df Binary files /dev/null and b/skins/Dark_future/dark_future.dtp differ diff --git a/skins/Dark_future/me_skin.inc b/skins/Dark_future/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Dark_future/me_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/Dark_future/screenshot.png b/skins/Dark_future/screenshot.png new file mode 100644 index 0000000000..c1a89c9499 Binary files /dev/null and b/skins/Dark_future/screenshot.png differ diff --git a/skins/Devil_skins/Blue_devil/Active/base.bmp b/skins/Devil_skins/Blue_devil/Active/base.bmp new file mode 100644 index 0000000000..75f12d30a7 Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Active/base.bmp differ diff --git a/skins/Devil_skins/Blue_devil/Active/left.bmp b/skins/Devil_skins/Blue_devil/Active/left.bmp new file mode 100644 index 0000000000..89136188f3 Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Active/left.bmp differ diff --git a/skins/Devil_skins/Blue_devil/Active/oper.bmp b/skins/Devil_skins/Blue_devil/Active/oper.bmp new file mode 100644 index 0000000000..3bf5f86c29 Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Active/oper.bmp differ diff --git a/skins/Devil_skins/Blue_devil/BLUE.DTP b/skins/Devil_skins/Blue_devil/BLUE.DTP new file mode 100644 index 0000000000..79f46d3c94 Binary files /dev/null and b/skins/Devil_skins/Blue_devil/BLUE.DTP differ diff --git a/skins/Devil_skins/Blue_devil/Blue_devil.asm b/skins/Devil_skins/Blue_devil/Blue_devil.asm new file mode 100644 index 0000000000..655186bbef --- /dev/null +++ b/skins/Devil_skins/Blue_devil/Blue_devil.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x0B4D7B:\ ; border inner color + bouter=0x0B4D7B:\ ; border outer color + bframe=0x0C5E98],\ ; border frame color + colors inactive = [binner=0x0B4D7B:\ ; border inner color + bouter=0x0B4D7B:\ ; border outer color + bframe=0x54718B],\ ; border frame color + dtp = 'BLUE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-33:5][26:14],\ ; buttons coordinates + minimize = [-52:5][20:14] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Devil_skins/Blue_devil/Inactive/base.bmp b/skins/Devil_skins/Blue_devil/Inactive/base.bmp new file mode 100644 index 0000000000..626f7a7e05 Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Inactive/base.bmp differ diff --git a/skins/Devil_skins/Blue_devil/Inactive/left.bmp b/skins/Devil_skins/Blue_devil/Inactive/left.bmp new file mode 100644 index 0000000000..cc389e6a5d Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Inactive/left.bmp differ diff --git a/skins/Devil_skins/Blue_devil/Inactive/oper.bmp b/skins/Devil_skins/Blue_devil/Inactive/oper.bmp new file mode 100644 index 0000000000..38a4e6d110 Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Inactive/oper.bmp differ diff --git a/skins/Devil_skins/Blue_devil/Screenshot.png b/skins/Devil_skins/Blue_devil/Screenshot.png new file mode 100644 index 0000000000..c186ed368a Binary files /dev/null and b/skins/Devil_skins/Blue_devil/Screenshot.png differ diff --git a/skins/Devil_skins/Blue_devil/me_skin.inc b/skins/Devil_skins/Blue_devil/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Devil_skins/Blue_devil/me_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/Devil_skins/Green_devil/Active/base.bmp b/skins/Devil_skins/Green_devil/Active/base.bmp new file mode 100644 index 0000000000..4478658105 Binary files /dev/null and b/skins/Devil_skins/Green_devil/Active/base.bmp differ diff --git a/skins/Devil_skins/Green_devil/Active/left.bmp b/skins/Devil_skins/Green_devil/Active/left.bmp new file mode 100644 index 0000000000..0a5a515d68 Binary files /dev/null and b/skins/Devil_skins/Green_devil/Active/left.bmp differ diff --git a/skins/Devil_skins/Green_devil/Active/oper.bmp b/skins/Devil_skins/Green_devil/Active/oper.bmp new file mode 100644 index 0000000000..8934982d1c Binary files /dev/null and b/skins/Devil_skins/Green_devil/Active/oper.bmp differ diff --git a/skins/Devil_skins/Green_devil/GREEN.DTP b/skins/Devil_skins/Green_devil/GREEN.DTP new file mode 100644 index 0000000000..c7034bdbd2 Binary files /dev/null and b/skins/Devil_skins/Green_devil/GREEN.DTP differ diff --git a/skins/Devil_skins/Green_devil/Green_devil.asm b/skins/Devil_skins/Green_devil/Green_devil.asm new file mode 100644 index 0000000000..21babd8716 --- /dev/null +++ b/skins/Devil_skins/Green_devil/Green_devil.asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x0E7B0D:\ ; border inner color + bouter=0x0E7B0D:\ ; border outer color + bframe=0x10980E],\ ; border frame color + colors inactive = [binner=0x0E7B0D:\ ; border inner color + bouter=0x0E7B0D:\ ; border outer color + bframe=0x578B55],\ ; border frame color + dtp = 'GREEN.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-33:5][26:14],\ ; buttons coordinates + minimize = [-52:5][20:14] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Devil_skins/Green_devil/Inactive/Thumbs.db b/skins/Devil_skins/Green_devil/Inactive/Thumbs.db new file mode 100644 index 0000000000..e4dfc591ff Binary files /dev/null and b/skins/Devil_skins/Green_devil/Inactive/Thumbs.db differ diff --git a/skins/Devil_skins/Green_devil/Inactive/base.bmp b/skins/Devil_skins/Green_devil/Inactive/base.bmp new file mode 100644 index 0000000000..bc8b0e8ea3 Binary files /dev/null and b/skins/Devil_skins/Green_devil/Inactive/base.bmp differ diff --git a/skins/Devil_skins/Green_devil/Inactive/left.bmp b/skins/Devil_skins/Green_devil/Inactive/left.bmp new file mode 100644 index 0000000000..9e509c11a6 Binary files /dev/null and b/skins/Devil_skins/Green_devil/Inactive/left.bmp differ diff --git a/skins/Devil_skins/Green_devil/Inactive/oper.bmp b/skins/Devil_skins/Green_devil/Inactive/oper.bmp new file mode 100644 index 0000000000..7940005aed Binary files /dev/null and b/skins/Devil_skins/Green_devil/Inactive/oper.bmp differ diff --git a/skins/Devil_skins/Green_devil/green.png b/skins/Devil_skins/Green_devil/green.png new file mode 100644 index 0000000000..dc069b1de8 Binary files /dev/null and b/skins/Devil_skins/Green_devil/green.png differ diff --git a/skins/Devil_skins/Green_devil/me_skin.inc b/skins/Devil_skins/Green_devil/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Devil_skins/Green_devil/me_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/Devil_skins/Pink_devil/Active/base.bmp b/skins/Devil_skins/Pink_devil/Active/base.bmp new file mode 100644 index 0000000000..787182c4a9 Binary files /dev/null and b/skins/Devil_skins/Pink_devil/Active/base.bmp differ diff --git a/skins/Devil_skins/Pink_devil/Active/left.bmp b/skins/Devil_skins/Pink_devil/Active/left.bmp new file mode 100644 index 0000000000..9d6cdbd1f9 Binary files /dev/null and b/skins/Devil_skins/Pink_devil/Active/left.bmp differ diff --git a/skins/Devil_skins/Pink_devil/Active/oper.bmp b/skins/Devil_skins/Pink_devil/Active/oper.bmp new file mode 100644 index 0000000000..32dd2478ee Binary files /dev/null and b/skins/Devil_skins/Pink_devil/Active/oper.bmp differ diff --git a/skins/Devil_skins/Pink_devil/Inactive/base.bmp b/skins/Devil_skins/Pink_devil/Inactive/base.bmp new file mode 100644 index 0000000000..35993eb850 Binary files /dev/null and b/skins/Devil_skins/Pink_devil/Inactive/base.bmp differ diff --git a/skins/Devil_skins/Pink_devil/Inactive/left.bmp b/skins/Devil_skins/Pink_devil/Inactive/left.bmp new file mode 100644 index 0000000000..2ed790ff9d Binary files /dev/null and b/skins/Devil_skins/Pink_devil/Inactive/left.bmp differ diff --git a/skins/Devil_skins/Pink_devil/Inactive/oper.bmp b/skins/Devil_skins/Pink_devil/Inactive/oper.bmp new file mode 100644 index 0000000000..b71260e127 Binary files /dev/null and b/skins/Devil_skins/Pink_devil/Inactive/oper.bmp differ diff --git a/skins/Devil_skins/Pink_devil/PINK.DTP b/skins/Devil_skins/Pink_devil/PINK.DTP new file mode 100644 index 0000000000..7ac6b59a0f Binary files /dev/null and b/skins/Devil_skins/Pink_devil/PINK.DTP differ diff --git a/skins/Devil_skins/Pink_devil/Pink_devil.asm b/skins/Devil_skins/Pink_devil/Pink_devil.asm new file mode 100644 index 0000000000..dca342d6d8 --- /dev/null +++ b/skins/Devil_skins/Pink_devil/Pink_devil.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7B0F6B:\ ; border inner color + bouter=0x7B0F6B:\ ; border outer color + bframe=0x981084],\ ; border frame color + colors inactive = [binner=0x7B0F6B:\ ; border inner color + bouter=0x7B0F6B:\ ; border outer color + bframe=0x8B5784],\ ; border frame color + dtp = 'PINK.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-33:5][26:14],\ ; buttons coordinates + minimize = [-52:5][20:14] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/Devil_skins/Pink_devil/me_skin.inc b/skins/Devil_skins/Pink_devil/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Devil_skins/Pink_devil/me_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/Devil_skins/Pink_devil/pink.png b/skins/Devil_skins/Pink_devil/pink.png new file mode 100644 index 0000000000..b7def81751 Binary files /dev/null and b/skins/Devil_skins/Pink_devil/pink.png differ diff --git a/skins/Devil_skins/Red_devil/Active/base.bmp b/skins/Devil_skins/Red_devil/Active/base.bmp new file mode 100644 index 0000000000..55d4ab8bef Binary files /dev/null and b/skins/Devil_skins/Red_devil/Active/base.bmp differ diff --git a/skins/Devil_skins/Red_devil/Active/left.bmp b/skins/Devil_skins/Red_devil/Active/left.bmp new file mode 100644 index 0000000000..76c4b7049a Binary files /dev/null and b/skins/Devil_skins/Red_devil/Active/left.bmp differ diff --git a/skins/Devil_skins/Red_devil/Active/oper.bmp b/skins/Devil_skins/Red_devil/Active/oper.bmp new file mode 100644 index 0000000000..6c3b3d852a Binary files /dev/null and b/skins/Devil_skins/Red_devil/Active/oper.bmp differ diff --git a/skins/Devil_skins/Red_devil/Inactive/base.bmp b/skins/Devil_skins/Red_devil/Inactive/base.bmp new file mode 100644 index 0000000000..5b52840b2e Binary files /dev/null and b/skins/Devil_skins/Red_devil/Inactive/base.bmp differ diff --git a/skins/Devil_skins/Red_devil/Inactive/left.bmp b/skins/Devil_skins/Red_devil/Inactive/left.bmp new file mode 100644 index 0000000000..2fe8e8668d Binary files /dev/null and b/skins/Devil_skins/Red_devil/Inactive/left.bmp differ diff --git a/skins/Devil_skins/Red_devil/Inactive/oper.bmp b/skins/Devil_skins/Red_devil/Inactive/oper.bmp new file mode 100644 index 0000000000..8f5a1ae322 Binary files /dev/null and b/skins/Devil_skins/Red_devil/Inactive/oper.bmp differ diff --git a/skins/Devil_skins/Red_devil/Red_devil.asm b/skins/Devil_skins/Red_devil/Red_devil.asm new file mode 100644 index 0000000000..c7f63668e6 --- /dev/null +++ b/skins/Devil_skins/Red_devil/Red_devil.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7B0C13:\ ; border inner color + bouter=0x7B0C13:\ ; border outer color + bframe=0x980D16],\ ; border frame color + colors inactive = [binner=0x7B0C13:\ ; border inner color + bouter=0x7B0C13:\ ; border outer color + bframe=0x8B5557],\ ; border frame color + dtp = 'red_devil.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-33:5][26:14],\ ; buttons coordinates + minimize = [-52:5][20:14] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/Devil_skins/Red_devil/me_skin.inc b/skins/Devil_skins/Red_devil/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Devil_skins/Red_devil/me_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/Devil_skins/Red_devil/red.png b/skins/Devil_skins/Red_devil/red.png new file mode 100644 index 0000000000..8fcf35929e Binary files /dev/null and b/skins/Devil_skins/Red_devil/red.png differ diff --git a/skins/Devil_skins/Red_devil/red_devil.dtp b/skins/Devil_skins/Red_devil/red_devil.dtp new file mode 100644 index 0000000000..67eaaf51fc Binary files /dev/null and b/skins/Devil_skins/Red_devil/red_devil.dtp differ diff --git a/skins/Devil_skins/Violet_devil/Active/base.bmp b/skins/Devil_skins/Violet_devil/Active/base.bmp new file mode 100644 index 0000000000..ad7e99a755 Binary files /dev/null and b/skins/Devil_skins/Violet_devil/Active/base.bmp differ diff --git a/skins/Devil_skins/Violet_devil/Active/left.bmp b/skins/Devil_skins/Violet_devil/Active/left.bmp new file mode 100644 index 0000000000..8dce1df960 Binary files /dev/null and b/skins/Devil_skins/Violet_devil/Active/left.bmp differ diff --git a/skins/Devil_skins/Violet_devil/Active/oper.bmp b/skins/Devil_skins/Violet_devil/Active/oper.bmp new file mode 100644 index 0000000000..5d12d53789 Binary files /dev/null and b/skins/Devil_skins/Violet_devil/Active/oper.bmp differ diff --git a/skins/Devil_skins/Violet_devil/Inactive/base.bmp b/skins/Devil_skins/Violet_devil/Inactive/base.bmp new file mode 100644 index 0000000000..b15a689eee Binary files /dev/null and b/skins/Devil_skins/Violet_devil/Inactive/base.bmp differ diff --git a/skins/Devil_skins/Violet_devil/Inactive/left.bmp b/skins/Devil_skins/Violet_devil/Inactive/left.bmp new file mode 100644 index 0000000000..03cc842042 Binary files /dev/null and b/skins/Devil_skins/Violet_devil/Inactive/left.bmp differ diff --git a/skins/Devil_skins/Violet_devil/Inactive/oper.bmp b/skins/Devil_skins/Violet_devil/Inactive/oper.bmp new file mode 100644 index 0000000000..d42e794924 Binary files /dev/null and b/skins/Devil_skins/Violet_devil/Inactive/oper.bmp differ diff --git a/skins/Devil_skins/Violet_devil/VIOLET.DTP b/skins/Devil_skins/Violet_devil/VIOLET.DTP new file mode 100644 index 0000000000..da3bba39c2 Binary files /dev/null and b/skins/Devil_skins/Violet_devil/VIOLET.DTP differ diff --git a/skins/Devil_skins/Violet_devil/Violet_devil.asm b/skins/Devil_skins/Violet_devil/Violet_devil.asm new file mode 100644 index 0000000000..60fd809d24 --- /dev/null +++ b/skins/Devil_skins/Violet_devil/Violet_devil.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x510D7B:\ ; border inner color + bouter=0x510D7B:\ ; border outer color + bframe=0x630E98],\ ; border frame color + colors inactive = [binner=0x510D7B:\ ; border inner color + bouter=0x510D7B:\ ; border outer color + bframe=0x72558B],\ ; border frame color + dtp = 'VIOLET.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-33:5][26:14],\ ; buttons coordinates + minimize = [-52:5][20:14] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/Devil_skins/Violet_devil/me_skin.inc b/skins/Devil_skins/Violet_devil/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Devil_skins/Violet_devil/me_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/Devil_skins/Violet_devil/violet.png b/skins/Devil_skins/Violet_devil/violet.png new file mode 100644 index 0000000000..0005d1526a Binary files /dev/null and b/skins/Devil_skins/Violet_devil/violet.png differ diff --git a/skins/Devil_skins/screenshot.png b/skins/Devil_skins/screenshot.png new file mode 100644 index 0000000000..8196c3e438 Binary files /dev/null and b/skins/Devil_skins/screenshot.png differ diff --git a/skins/Eyes/Active/base.bmp b/skins/Eyes/Active/base.bmp new file mode 100644 index 0000000000..c0642dab13 Binary files /dev/null and b/skins/Eyes/Active/base.bmp differ diff --git a/skins/Eyes/Active/left.bmp b/skins/Eyes/Active/left.bmp new file mode 100644 index 0000000000..303cfab92e Binary files /dev/null and b/skins/Eyes/Active/left.bmp differ diff --git a/skins/Eyes/Active/oper.bmp b/skins/Eyes/Active/oper.bmp new file mode 100644 index 0000000000..2d081dad37 Binary files /dev/null and b/skins/Eyes/Active/oper.bmp differ diff --git a/skins/Eyes/Eyes.asm b/skins/Eyes/Eyes.asm new file mode 100644 index 0000000000..bae10c9ff5 --- /dev/null +++ b/skins/Eyes/Eyes.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x3F3F3F],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x3F3F3F],\ ; border frame color + dtp = 'GREY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][23:17],\ ; buttons coordinates + minimize = [-54:3][23:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + + diff --git a/skins/Eyes/GREY.DTP b/skins/Eyes/GREY.DTP new file mode 100644 index 0000000000..f490126178 Binary files /dev/null and b/skins/Eyes/GREY.DTP differ diff --git a/skins/Eyes/Inactive/base.bmp b/skins/Eyes/Inactive/base.bmp new file mode 100644 index 0000000000..c0642dab13 Binary files /dev/null and b/skins/Eyes/Inactive/base.bmp differ diff --git a/skins/Eyes/Inactive/left.bmp b/skins/Eyes/Inactive/left.bmp new file mode 100644 index 0000000000..303cfab92e Binary files /dev/null and b/skins/Eyes/Inactive/left.bmp differ diff --git a/skins/Eyes/Inactive/oper.bmp b/skins/Eyes/Inactive/oper.bmp new file mode 100644 index 0000000000..febb4f5214 Binary files /dev/null and b/skins/Eyes/Inactive/oper.bmp differ diff --git a/skins/Eyes/my_skin.inc b/skins/Eyes/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Eyes/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/Fever/1/Fever (blue)/Active/base.bmp b/skins/Fever/1/Fever (blue)/Active/base.bmp new file mode 100644 index 0000000000..1d43142c37 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/Active/base.bmp differ diff --git a/skins/Fever/1/Fever (blue)/Active/left.bmp b/skins/Fever/1/Fever (blue)/Active/left.bmp new file mode 100644 index 0000000000..1effb5b84a Binary files /dev/null and b/skins/Fever/1/Fever (blue)/Active/left.bmp differ diff --git a/skins/Fever/1/Fever (blue)/Active/oper.bmp b/skins/Fever/1/Fever (blue)/Active/oper.bmp new file mode 100644 index 0000000000..2e8c260634 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/Active/oper.bmp differ diff --git a/skins/Fever/1/Fever (blue)/Fever_(blue).asm b/skins/Fever/1/Fever (blue)/Fever_(blue).asm new file mode 100644 index 0000000000..cc57c179b2 --- /dev/null +++ b/skins/Fever/1/Fever (blue)/Fever_(blue).asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000057:\ ; border inner color + bouter=0x000057:\ ; border outer color + bframe=0x0039D4],\ ; border frame color + colors inactive = [binner=0x000057:\ ; border inner color + bouter=0x000057:\ ; border outer color + bframe=0x5065A1],\ ; border frame color + dtp = 'fever_blue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:3][18:18],\ ; buttons coordinates + minimize = [-45:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Fever/1/Fever (blue)/Inactive/base.bmp b/skins/Fever/1/Fever (blue)/Inactive/base.bmp new file mode 100644 index 0000000000..2d795d9737 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/Inactive/base.bmp differ diff --git a/skins/Fever/1/Fever (blue)/Inactive/left.bmp b/skins/Fever/1/Fever (blue)/Inactive/left.bmp new file mode 100644 index 0000000000..d3bc8ab779 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/Inactive/left.bmp differ diff --git a/skins/Fever/1/Fever (blue)/Inactive/oper.bmp b/skins/Fever/1/Fever (blue)/Inactive/oper.bmp new file mode 100644 index 0000000000..3dbe06d7a5 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/Inactive/oper.bmp differ diff --git a/skins/Fever/1/Fever (blue)/blue.png b/skins/Fever/1/Fever (blue)/blue.png new file mode 100644 index 0000000000..8a4e73cfc6 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/blue.png differ diff --git a/skins/Fever/1/Fever (blue)/fever_blue.dtp b/skins/Fever/1/Fever (blue)/fever_blue.dtp new file mode 100644 index 0000000000..b7eb884785 Binary files /dev/null and b/skins/Fever/1/Fever (blue)/fever_blue.dtp differ diff --git a/skins/Fever/1/Fever (blue)/me_skin.inc b/skins/Fever/1/Fever (blue)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Fever/1/Fever (blue)/me_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/Fever/1/Fever (green)/Active/base.bmp b/skins/Fever/1/Fever (green)/Active/base.bmp new file mode 100644 index 0000000000..4140861c78 Binary files /dev/null and b/skins/Fever/1/Fever (green)/Active/base.bmp differ diff --git a/skins/Fever/1/Fever (green)/Active/left.bmp b/skins/Fever/1/Fever (green)/Active/left.bmp new file mode 100644 index 0000000000..1d0ff57a1e Binary files /dev/null and b/skins/Fever/1/Fever (green)/Active/left.bmp differ diff --git a/skins/Fever/1/Fever (green)/Active/oper.bmp b/skins/Fever/1/Fever (green)/Active/oper.bmp new file mode 100644 index 0000000000..409b5e620c Binary files /dev/null and b/skins/Fever/1/Fever (green)/Active/oper.bmp differ diff --git a/skins/Fever/1/Fever (green)/Fever_(green).asm b/skins/Fever/1/Fever (green)/Fever_(green).asm new file mode 100644 index 0000000000..07d3f9fd42 --- /dev/null +++ b/skins/Fever/1/Fever (green)/Fever_(green).asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x005E00:\ ; border inner color + bouter=0x005E00:\ ; border outer color + bframe=0x008900],\ ; border frame color + colors inactive = [binner=0x005E00:\ ; border inner color + bouter=0x005E00:\ ; border outer color + bframe=0x508950],\ ; border frame color + dtp = 'fever_green.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:3][18:18],\ ; buttons coordinates + minimize = [-45:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Fever/1/Fever (green)/Inactive/base.bmp b/skins/Fever/1/Fever (green)/Inactive/base.bmp new file mode 100644 index 0000000000..edcf193ba2 Binary files /dev/null and b/skins/Fever/1/Fever (green)/Inactive/base.bmp differ diff --git a/skins/Fever/1/Fever (green)/Inactive/left.bmp b/skins/Fever/1/Fever (green)/Inactive/left.bmp new file mode 100644 index 0000000000..edf818cb3f Binary files /dev/null and b/skins/Fever/1/Fever (green)/Inactive/left.bmp differ diff --git a/skins/Fever/1/Fever (green)/Inactive/oper.bmp b/skins/Fever/1/Fever (green)/Inactive/oper.bmp new file mode 100644 index 0000000000..7a702f2140 Binary files /dev/null and b/skins/Fever/1/Fever (green)/Inactive/oper.bmp differ diff --git a/skins/Fever/1/Fever (green)/fever_green.dtp b/skins/Fever/1/Fever (green)/fever_green.dtp new file mode 100644 index 0000000000..9fff246f96 Binary files /dev/null and b/skins/Fever/1/Fever (green)/fever_green.dtp differ diff --git a/skins/Fever/1/Fever (green)/green.png b/skins/Fever/1/Fever (green)/green.png new file mode 100644 index 0000000000..d2c94460eb Binary files /dev/null and b/skins/Fever/1/Fever (green)/green.png differ diff --git a/skins/Fever/1/Fever (green)/me_skin.inc b/skins/Fever/1/Fever (green)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Fever/1/Fever (green)/me_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/Fever/1/Fever (red)/Active/base.bmp b/skins/Fever/1/Fever (red)/Active/base.bmp new file mode 100644 index 0000000000..0a885118ef Binary files /dev/null and b/skins/Fever/1/Fever (red)/Active/base.bmp differ diff --git a/skins/Fever/1/Fever (red)/Active/left.bmp b/skins/Fever/1/Fever (red)/Active/left.bmp new file mode 100644 index 0000000000..3ff29572fa Binary files /dev/null and b/skins/Fever/1/Fever (red)/Active/left.bmp differ diff --git a/skins/Fever/1/Fever (red)/Active/oper.bmp b/skins/Fever/1/Fever (red)/Active/oper.bmp new file mode 100644 index 0000000000..9ca624a875 Binary files /dev/null and b/skins/Fever/1/Fever (red)/Active/oper.bmp differ diff --git a/skins/Fever/1/Fever (red)/Fever_(red).asm b/skins/Fever/1/Fever (red)/Fever_(red).asm new file mode 100644 index 0000000000..41a8058ee0 --- /dev/null +++ b/skins/Fever/1/Fever (red)/Fever_(red).asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x870000:\ ; border inner color + bouter=0x870000:\ ; border outer color + bframe=0xC10000],\ ; border frame color + colors inactive = [binner=0x870000:\ ; border inner color + bouter=0x870000:\ ; border outer color + bframe=0x9A5050],\ ; border frame color + dtp = 'fever_red.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:3][18:18],\ ; buttons coordinates + minimize = [-45:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Fever/1/Fever (red)/Inactive/base.bmp b/skins/Fever/1/Fever (red)/Inactive/base.bmp new file mode 100644 index 0000000000..4197dc2f99 Binary files /dev/null and b/skins/Fever/1/Fever (red)/Inactive/base.bmp differ diff --git a/skins/Fever/1/Fever (red)/Inactive/left.bmp b/skins/Fever/1/Fever (red)/Inactive/left.bmp new file mode 100644 index 0000000000..b7de5f792f Binary files /dev/null and b/skins/Fever/1/Fever (red)/Inactive/left.bmp differ diff --git a/skins/Fever/1/Fever (red)/Inactive/oper.bmp b/skins/Fever/1/Fever (red)/Inactive/oper.bmp new file mode 100644 index 0000000000..75d6d3f27a Binary files /dev/null and b/skins/Fever/1/Fever (red)/Inactive/oper.bmp differ diff --git a/skins/Fever/1/Fever (red)/fever_red.dtp b/skins/Fever/1/Fever (red)/fever_red.dtp new file mode 100644 index 0000000000..4be947ac31 Binary files /dev/null and b/skins/Fever/1/Fever (red)/fever_red.dtp differ diff --git a/skins/Fever/1/Fever (red)/me_skin.inc b/skins/Fever/1/Fever (red)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Fever/1/Fever (red)/me_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/Fever/1/Fever (red)/red.png b/skins/Fever/1/Fever (red)/red.png new file mode 100644 index 0000000000..1bab8647d3 Binary files /dev/null and b/skins/Fever/1/Fever (red)/red.png differ diff --git a/skins/Fever/2/Fever (blue)/Active/base.bmp b/skins/Fever/2/Fever (blue)/Active/base.bmp new file mode 100644 index 0000000000..1d43142c37 Binary files /dev/null and b/skins/Fever/2/Fever (blue)/Active/base.bmp differ diff --git a/skins/Fever/2/Fever (blue)/Active/left.bmp b/skins/Fever/2/Fever (blue)/Active/left.bmp new file mode 100644 index 0000000000..52e326cb3c Binary files /dev/null and b/skins/Fever/2/Fever (blue)/Active/left.bmp differ diff --git a/skins/Fever/2/Fever (blue)/Active/oper.bmp b/skins/Fever/2/Fever (blue)/Active/oper.bmp new file mode 100644 index 0000000000..bd009839bd Binary files /dev/null and b/skins/Fever/2/Fever (blue)/Active/oper.bmp differ diff --git a/skins/Fever/2/Fever (blue)/Fever_(blue).asm b/skins/Fever/2/Fever (blue)/Fever_(blue).asm new file mode 100644 index 0000000000..84a73b097d --- /dev/null +++ b/skins/Fever/2/Fever (blue)/Fever_(blue).asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000057:\ ; border inner color + bouter=0x000057:\ ; border outer color + bframe=0x0039D4],\ ; border frame color + colors inactive = [binner=0x000057:\ ; border inner color + bouter=0x000057:\ ; border outer color + bframe=0x5065A1],\ ; border frame color + dtp = 'NEWSKIN.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:3][18:18],\ ; buttons coordinates + minimize = [-45:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Fever/2/Fever (blue)/Inactive/base.bmp b/skins/Fever/2/Fever (blue)/Inactive/base.bmp new file mode 100644 index 0000000000..2d795d9737 Binary files /dev/null and b/skins/Fever/2/Fever (blue)/Inactive/base.bmp differ diff --git a/skins/Fever/2/Fever (blue)/Inactive/left.bmp b/skins/Fever/2/Fever (blue)/Inactive/left.bmp new file mode 100644 index 0000000000..b4aec7ae05 Binary files /dev/null and b/skins/Fever/2/Fever (blue)/Inactive/left.bmp differ diff --git a/skins/Fever/2/Fever (blue)/Inactive/oper.bmp b/skins/Fever/2/Fever (blue)/Inactive/oper.bmp new file mode 100644 index 0000000000..4a1fbfa5d7 Binary files /dev/null and b/skins/Fever/2/Fever (blue)/Inactive/oper.bmp differ diff --git a/skins/Fever/2/Fever (blue)/NEWSKIN.DTP b/skins/Fever/2/Fever (blue)/NEWSKIN.DTP new file mode 100644 index 0000000000..ac7ca62968 Binary files /dev/null and b/skins/Fever/2/Fever (blue)/NEWSKIN.DTP differ diff --git a/skins/Fever/2/Fever (blue)/me_skin.inc b/skins/Fever/2/Fever (blue)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Fever/2/Fever (blue)/me_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/Fever/2/Fever (green)/Active/base.bmp b/skins/Fever/2/Fever (green)/Active/base.bmp new file mode 100644 index 0000000000..4140861c78 Binary files /dev/null and b/skins/Fever/2/Fever (green)/Active/base.bmp differ diff --git a/skins/Fever/2/Fever (green)/Active/left.bmp b/skins/Fever/2/Fever (green)/Active/left.bmp new file mode 100644 index 0000000000..9145262914 Binary files /dev/null and b/skins/Fever/2/Fever (green)/Active/left.bmp differ diff --git a/skins/Fever/2/Fever (green)/Active/oper.bmp b/skins/Fever/2/Fever (green)/Active/oper.bmp new file mode 100644 index 0000000000..5242848f1d Binary files /dev/null and b/skins/Fever/2/Fever (green)/Active/oper.bmp differ diff --git a/skins/Fever/2/Fever (green)/Fever_(green).asm b/skins/Fever/2/Fever (green)/Fever_(green).asm new file mode 100644 index 0000000000..c6bee95b1c --- /dev/null +++ b/skins/Fever/2/Fever (green)/Fever_(green).asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x005E00:\ ; border inner color + bouter=0x005E00:\ ; border outer color + bframe=0x008900],\ ; border frame color + colors inactive = [binner=0x005E00:\ ; border inner color + bouter=0x005E00:\ ; border outer color + bframe=0x508950],\ ; border frame color + dtp = 'NEWSKIN.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:3][18:18],\ ; buttons coordinates + minimize = [-45:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Fever/2/Fever (green)/Inactive/base.bmp b/skins/Fever/2/Fever (green)/Inactive/base.bmp new file mode 100644 index 0000000000..a64d4a9cb7 Binary files /dev/null and b/skins/Fever/2/Fever (green)/Inactive/base.bmp differ diff --git a/skins/Fever/2/Fever (green)/Inactive/left.bmp b/skins/Fever/2/Fever (green)/Inactive/left.bmp new file mode 100644 index 0000000000..1e7257244b Binary files /dev/null and b/skins/Fever/2/Fever (green)/Inactive/left.bmp differ diff --git a/skins/Fever/2/Fever (green)/Inactive/oper.bmp b/skins/Fever/2/Fever (green)/Inactive/oper.bmp new file mode 100644 index 0000000000..d2d8a97bbe Binary files /dev/null and b/skins/Fever/2/Fever (green)/Inactive/oper.bmp differ diff --git a/skins/Fever/2/Fever (green)/NEWSKIN.DTP b/skins/Fever/2/Fever (green)/NEWSKIN.DTP new file mode 100644 index 0000000000..ac7ca62968 Binary files /dev/null and b/skins/Fever/2/Fever (green)/NEWSKIN.DTP differ diff --git a/skins/Fever/2/Fever (green)/me_skin.inc b/skins/Fever/2/Fever (green)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Fever/2/Fever (green)/me_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/Fever/2/Fever (red)/Active/base.bmp b/skins/Fever/2/Fever (red)/Active/base.bmp new file mode 100644 index 0000000000..0a885118ef Binary files /dev/null and b/skins/Fever/2/Fever (red)/Active/base.bmp differ diff --git a/skins/Fever/2/Fever (red)/Active/left.bmp b/skins/Fever/2/Fever (red)/Active/left.bmp new file mode 100644 index 0000000000..018a4ee3dd Binary files /dev/null and b/skins/Fever/2/Fever (red)/Active/left.bmp differ diff --git a/skins/Fever/2/Fever (red)/Active/oper.bmp b/skins/Fever/2/Fever (red)/Active/oper.bmp new file mode 100644 index 0000000000..dd4ed3c769 Binary files /dev/null and b/skins/Fever/2/Fever (red)/Active/oper.bmp differ diff --git a/skins/Fever/2/Fever (red)/Fever_(red).asm b/skins/Fever/2/Fever (red)/Fever_(red).asm new file mode 100644 index 0000000000..662d0a1072 --- /dev/null +++ b/skins/Fever/2/Fever (red)/Fever_(red).asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x870000:\ ; border inner color + bouter=0x870000:\ ; border outer color + bframe=0xC10000],\ ; border frame color + colors inactive = [binner=0x870000:\ ; border inner color + bouter=0x870000:\ ; border outer color + bframe=0x9A5050],\ ; border frame color + dtp = 'NEWSKIN.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:3][18:18],\ ; buttons coordinates + minimize = [-45:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Fever/2/Fever (red)/Inactive/base.bmp b/skins/Fever/2/Fever (red)/Inactive/base.bmp new file mode 100644 index 0000000000..4197dc2f99 Binary files /dev/null and b/skins/Fever/2/Fever (red)/Inactive/base.bmp differ diff --git a/skins/Fever/2/Fever (red)/Inactive/left.bmp b/skins/Fever/2/Fever (red)/Inactive/left.bmp new file mode 100644 index 0000000000..13764c223f Binary files /dev/null and b/skins/Fever/2/Fever (red)/Inactive/left.bmp differ diff --git a/skins/Fever/2/Fever (red)/Inactive/oper.bmp b/skins/Fever/2/Fever (red)/Inactive/oper.bmp new file mode 100644 index 0000000000..ba2095b88d Binary files /dev/null and b/skins/Fever/2/Fever (red)/Inactive/oper.bmp differ diff --git a/skins/Fever/2/Fever (red)/NEWSKIN.DTP b/skins/Fever/2/Fever (red)/NEWSKIN.DTP new file mode 100644 index 0000000000..ac7ca62968 Binary files /dev/null and b/skins/Fever/2/Fever (red)/NEWSKIN.DTP differ diff --git a/skins/Fever/2/Fever (red)/me_skin.inc b/skins/Fever/2/Fever (red)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Fever/2/Fever (red)/me_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/Fever/screen.png b/skins/Fever/screen.png new file mode 100644 index 0000000000..d2e42381bd Binary files /dev/null and b/skins/Fever/screen.png differ diff --git a/skins/Flowers/Active/base.bmp b/skins/Flowers/Active/base.bmp new file mode 100644 index 0000000000..0f888b7a2a Binary files /dev/null and b/skins/Flowers/Active/base.bmp differ diff --git a/skins/Flowers/Active/left.bmp b/skins/Flowers/Active/left.bmp new file mode 100644 index 0000000000..c7a33d9393 Binary files /dev/null and b/skins/Flowers/Active/left.bmp differ diff --git a/skins/Flowers/Active/oper.bmp b/skins/Flowers/Active/oper.bmp new file mode 100644 index 0000000000..2c611e5c71 Binary files /dev/null and b/skins/Flowers/Active/oper.bmp differ diff --git a/skins/Flowers/BLUE.DTP b/skins/Flowers/BLUE.DTP new file mode 100644 index 0000000000..b4bbc6d722 Binary files /dev/null and b/skins/Flowers/BLUE.DTP differ diff --git a/skins/Flowers/Flowers.asm b/skins/Flowers/Flowers.asm new file mode 100644 index 0000000000..9a9aca7309 --- /dev/null +++ b/skins/Flowers/Flowers.asm @@ -0,0 +1,38 @@ + +; -- ONLY FOR GIRLS -- + +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x0077AA:\ ; border inner color + bouter=0x0077AA:\ ; border outer color + bframe=0x039BDB],\ ; border frame color + colors inactive = [binner=0x0077AA:\ ; border inner color + bouter=0x0077AA:\ ; border outer color + bframe=0x039BDB],\ ; border frame color + dtp = 'BLUE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:1][21:22],\ ; buttons coordinates + minimize = [-51:1][21:22] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Flowers/Inactive/base.bmp b/skins/Flowers/Inactive/base.bmp new file mode 100644 index 0000000000..98787fbf00 Binary files /dev/null and b/skins/Flowers/Inactive/base.bmp differ diff --git a/skins/Flowers/Inactive/left.bmp b/skins/Flowers/Inactive/left.bmp new file mode 100644 index 0000000000..aae863a62f Binary files /dev/null and b/skins/Flowers/Inactive/left.bmp differ diff --git a/skins/Flowers/Inactive/oper.bmp b/skins/Flowers/Inactive/oper.bmp new file mode 100644 index 0000000000..b800fa7278 Binary files /dev/null and b/skins/Flowers/Inactive/oper.bmp differ diff --git a/skins/Flowers/my_skin.inc b/skins/Flowers/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Flowers/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/Flyght/Active/base.bmp b/skins/Flyght/Active/base.bmp new file mode 100644 index 0000000000..8af9047095 Binary files /dev/null and b/skins/Flyght/Active/base.bmp differ diff --git a/skins/Flyght/Active/left.bmp b/skins/Flyght/Active/left.bmp new file mode 100644 index 0000000000..0373a8fbd4 Binary files /dev/null and b/skins/Flyght/Active/left.bmp differ diff --git a/skins/Flyght/Active/oper.bmp b/skins/Flyght/Active/oper.bmp new file mode 100644 index 0000000000..7d21193554 Binary files /dev/null and b/skins/Flyght/Active/oper.bmp differ diff --git a/skins/Flyght/FLIGHT.DTP b/skins/Flyght/FLIGHT.DTP new file mode 100644 index 0000000000..fd459196bd Binary files /dev/null and b/skins/Flyght/FLIGHT.DTP differ diff --git a/skins/Flyght/Flight.png b/skins/Flyght/Flight.png new file mode 100644 index 0000000000..d6c6315b82 Binary files /dev/null and b/skins/Flyght/Flight.png differ diff --git a/skins/Flyght/Flyght.asm b/skins/Flyght/Flyght.asm new file mode 100644 index 0000000000..1016e9216d --- /dev/null +++ b/skins/Flyght/Flyght.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x008080],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x575E5E],\ ; border frame color + dtp = 'FLIGHT.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:1][24:19],\ ; buttons coordinates + minimize = [-53:1][24:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Flyght/Inactive/base.bmp b/skins/Flyght/Inactive/base.bmp new file mode 100644 index 0000000000..a5d8262b91 Binary files /dev/null and b/skins/Flyght/Inactive/base.bmp differ diff --git a/skins/Flyght/Inactive/left.bmp b/skins/Flyght/Inactive/left.bmp new file mode 100644 index 0000000000..94554df9af Binary files /dev/null and b/skins/Flyght/Inactive/left.bmp differ diff --git a/skins/Flyght/Inactive/oper.bmp b/skins/Flyght/Inactive/oper.bmp new file mode 100644 index 0000000000..5fef8b0722 Binary files /dev/null and b/skins/Flyght/Inactive/oper.bmp differ diff --git a/skins/Flyght/me_skin.inc b/skins/Flyght/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Flyght/me_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/Glass_lime/Active/base.bmp b/skins/Glass_lime/Active/base.bmp new file mode 100644 index 0000000000..69d8635be0 Binary files /dev/null and b/skins/Glass_lime/Active/base.bmp differ diff --git a/skins/Glass_lime/Active/left.bmp b/skins/Glass_lime/Active/left.bmp new file mode 100644 index 0000000000..994f9c5086 Binary files /dev/null and b/skins/Glass_lime/Active/left.bmp differ diff --git a/skins/Glass_lime/Active/oper.bmp b/skins/Glass_lime/Active/oper.bmp new file mode 100644 index 0000000000..332d3cbb5f Binary files /dev/null and b/skins/Glass_lime/Active/oper.bmp differ diff --git a/skins/Glass_lime/BLUE.DTP b/skins/Glass_lime/BLUE.DTP new file mode 100644 index 0000000000..442d7dc575 Binary files /dev/null and b/skins/Glass_lime/BLUE.DTP differ diff --git a/skins/Glass_lime/Glass_lime.asm b/skins/Glass_lime/Glass_lime.asm new file mode 100644 index 0000000000..0a698612f2 --- /dev/null +++ b/skins/Glass_lime/Glass_lime.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x0545ED],\ ; border frame color + colors inactive = [binner=0x373737:\ ; border inner color + bouter=0x373737:\ ; border outer color + bframe=0x3B6CF0],\ ; border frame color + dtp = 'BLUE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-28:4][22:15],\ ; buttons coordinates + minimize = [-51:4][22:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +; 75F875 \ No newline at end of file diff --git a/skins/Glass_lime/Inactive/base.bmp b/skins/Glass_lime/Inactive/base.bmp new file mode 100644 index 0000000000..edf67866f5 Binary files /dev/null and b/skins/Glass_lime/Inactive/base.bmp differ diff --git a/skins/Glass_lime/Inactive/left.bmp b/skins/Glass_lime/Inactive/left.bmp new file mode 100644 index 0000000000..9294605f23 Binary files /dev/null and b/skins/Glass_lime/Inactive/left.bmp differ diff --git a/skins/Glass_lime/Inactive/oper.bmp b/skins/Glass_lime/Inactive/oper.bmp new file mode 100644 index 0000000000..a4a6547574 Binary files /dev/null and b/skins/Glass_lime/Inactive/oper.bmp differ diff --git a/skins/Glass_lime/my_skin.inc b/skins/Glass_lime/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Glass_lime/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/Grey/default.skn b/skins/Grey/default.skn new file mode 100644 index 0000000000..5e8a6cc49d Binary files /dev/null and b/skins/Grey/default.skn differ diff --git a/skins/Hearts/Hearts (3d)/Active/base.bmp b/skins/Hearts/Hearts (3d)/Active/base.bmp new file mode 100644 index 0000000000..a883ae00c5 Binary files /dev/null and b/skins/Hearts/Hearts (3d)/Active/base.bmp differ diff --git a/skins/Hearts/Hearts (3d)/Active/left.bmp b/skins/Hearts/Hearts (3d)/Active/left.bmp new file mode 100644 index 0000000000..4d7d47ad21 Binary files /dev/null and b/skins/Hearts/Hearts (3d)/Active/left.bmp differ diff --git a/skins/Hearts/Hearts (3d)/Active/oper.bmp b/skins/Hearts/Hearts (3d)/Active/oper.bmp new file mode 100644 index 0000000000..cfecb1547b Binary files /dev/null and b/skins/Hearts/Hearts (3d)/Active/oper.bmp differ diff --git a/skins/Hearts/Hearts (3d)/Inactive/base.bmp b/skins/Hearts/Hearts (3d)/Inactive/base.bmp new file mode 100644 index 0000000000..81bc361e6e Binary files /dev/null and b/skins/Hearts/Hearts (3d)/Inactive/base.bmp differ diff --git a/skins/Hearts/Hearts (3d)/Inactive/left.bmp b/skins/Hearts/Hearts (3d)/Inactive/left.bmp new file mode 100644 index 0000000000..2c21f060bd Binary files /dev/null and b/skins/Hearts/Hearts (3d)/Inactive/left.bmp differ diff --git a/skins/Hearts/Hearts (3d)/Inactive/oper.bmp b/skins/Hearts/Hearts (3d)/Inactive/oper.bmp new file mode 100644 index 0000000000..ca29f29786 Binary files /dev/null and b/skins/Hearts/Hearts (3d)/Inactive/oper.bmp differ diff --git a/skins/Hearts/Hearts (3d)/PINK.DTP b/skins/Hearts/Hearts (3d)/PINK.DTP new file mode 100644 index 0000000000..b26c2b9c65 Binary files /dev/null and b/skins/Hearts/Hearts (3d)/PINK.DTP differ diff --git a/skins/Hearts/Hearts (3d)/hearts_3d.asm b/skins/Hearts/Hearts (3d)/hearts_3d.asm new file mode 100644 index 0000000000..a22ba21778 --- /dev/null +++ b/skins/Hearts/Hearts (3d)/hearts_3d.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x9C009C:\ ; border inner color + bouter=0x9C009C:\ ; border outer color + bframe=0xFF00FF],\ ; border frame color + colors inactive = [binner=0x9C009C:\ ; border inner color + bouter=0x9C009C:\ ; border outer color + bframe=0xAF50AF],\ ; border frame color + dtp = 'PINK.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-26:3][19:18],\ ; buttons coordinates + minimize = [-48:3][19:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Hearts/Hearts (3d)/me_skin.inc b/skins/Hearts/Hearts (3d)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Hearts/Hearts (3d)/me_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/Hearts/Hearts (flat)/Active/base.bmp b/skins/Hearts/Hearts (flat)/Active/base.bmp new file mode 100644 index 0000000000..1a714d4be1 Binary files /dev/null and b/skins/Hearts/Hearts (flat)/Active/base.bmp differ diff --git a/skins/Hearts/Hearts (flat)/Active/left.bmp b/skins/Hearts/Hearts (flat)/Active/left.bmp new file mode 100644 index 0000000000..ba316e41f7 Binary files /dev/null and b/skins/Hearts/Hearts (flat)/Active/left.bmp differ diff --git a/skins/Hearts/Hearts (flat)/Active/oper.bmp b/skins/Hearts/Hearts (flat)/Active/oper.bmp new file mode 100644 index 0000000000..24d9069e04 Binary files /dev/null and b/skins/Hearts/Hearts (flat)/Active/oper.bmp differ diff --git a/skins/Hearts/Hearts (flat)/Inactive/base.bmp b/skins/Hearts/Hearts (flat)/Inactive/base.bmp new file mode 100644 index 0000000000..71e1b72e92 Binary files /dev/null and b/skins/Hearts/Hearts (flat)/Inactive/base.bmp differ diff --git a/skins/Hearts/Hearts (flat)/Inactive/left.bmp b/skins/Hearts/Hearts (flat)/Inactive/left.bmp new file mode 100644 index 0000000000..6819d003dc Binary files /dev/null and b/skins/Hearts/Hearts (flat)/Inactive/left.bmp differ diff --git a/skins/Hearts/Hearts (flat)/Inactive/oper.bmp b/skins/Hearts/Hearts (flat)/Inactive/oper.bmp new file mode 100644 index 0000000000..7eb98e6782 Binary files /dev/null and b/skins/Hearts/Hearts (flat)/Inactive/oper.bmp differ diff --git a/skins/Hearts/Hearts (flat)/PINK.DTP b/skins/Hearts/Hearts (flat)/PINK.DTP new file mode 100644 index 0000000000..b26c2b9c65 Binary files /dev/null and b/skins/Hearts/Hearts (flat)/PINK.DTP differ diff --git a/skins/Hearts/Hearts (flat)/hearts_flat.asm b/skins/Hearts/Hearts (flat)/hearts_flat.asm new file mode 100644 index 0000000000..d33c592215 --- /dev/null +++ b/skins/Hearts/Hearts (flat)/hearts_flat.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x740074:\ ; border inner color + bouter=0x740074:\ ; border outer color + bframe=0xBD00BD],\ ; border frame color + colors inactive = [binner=0x740074:\ ; border inner color + bouter=0x740074:\ ; border outer color + bframe=0x985098],\ ; border frame color + dtp = 'PINK.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-26:3][19:18],\ ; buttons coordinates + minimize = [-48:3][19:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Hearts/Hearts (flat)/me_skin.inc b/skins/Hearts/Hearts (flat)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Hearts/Hearts (flat)/me_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/Hearts/Screenshot.png b/skins/Hearts/Screenshot.png new file mode 100644 index 0000000000..c5acd7fb56 Binary files /dev/null and b/skins/Hearts/Screenshot.png differ diff --git a/skins/L-Junior/DEFAULT.ASM b/skins/L-Junior/DEFAULT.ASM new file mode 100644 index 0000000000..132c078062 --- /dev/null +++ b/skins/L-Junior/DEFAULT.ASM @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0xDEDFDE],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0xEFEFEF],\ ; border frame color 0x1a8acc + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-17:5][13:13],\ ; buttons coordinates + minimize = [-33:5][13:13] ; [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 ,'left1.bmp' ; skin bitmaps +BITMAP bmp_oper ,'right1.bmp' +BITMAP bmp_base ,'center1.bmp' +BITMAP bmp_left1,'left2.bmp' +BITMAP bmp_oper1,'right2.bmp' +BITMAP bmp_base1,'center2.bmp' diff --git a/skins/L-Junior/ME_SKIN.INC b/skins/L-Junior/ME_SKIN.INC new file mode 100644 index 0000000000..752c8f07d3 --- /dev/null +++ b/skins/L-Junior/ME_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/L-Junior/build.bat b/skins/L-Junior/build.bat new file mode 100644 index 0000000000..2131bf7f71 --- /dev/null +++ b/skins/L-Junior/build.bat @@ -0,0 +1,3 @@ +fasm default.asm default.skn +kpack default.skn +pause \ No newline at end of file diff --git a/skins/L-Junior/center1.BMP b/skins/L-Junior/center1.BMP new file mode 100644 index 0000000000..cec19d23d0 Binary files /dev/null and b/skins/L-Junior/center1.BMP differ diff --git a/skins/L-Junior/center2.BMP b/skins/L-Junior/center2.BMP new file mode 100644 index 0000000000..c3322dd8c3 Binary files /dev/null and b/skins/L-Junior/center2.BMP differ diff --git a/skins/L-Junior/left1.BMP b/skins/L-Junior/left1.BMP new file mode 100644 index 0000000000..35bf23d723 Binary files /dev/null and b/skins/L-Junior/left1.BMP differ diff --git a/skins/L-Junior/left2.BMP b/skins/L-Junior/left2.BMP new file mode 100644 index 0000000000..5f568e0141 Binary files /dev/null and b/skins/L-Junior/left2.BMP differ diff --git a/skins/L-Junior/myblue.DTP b/skins/L-Junior/myblue.DTP new file mode 100644 index 0000000000..d30b7d2eb2 Binary files /dev/null and b/skins/L-Junior/myblue.DTP differ diff --git a/skins/L-Junior/right1.BMP b/skins/L-Junior/right1.BMP new file mode 100644 index 0000000000..80b8085e38 Binary files /dev/null and b/skins/L-Junior/right1.BMP differ diff --git a/skins/L-Junior/right2.BMP b/skins/L-Junior/right2.BMP new file mode 100644 index 0000000000..ae7b548b84 Binary files /dev/null and b/skins/L-Junior/right2.BMP differ diff --git a/skins/MenuetOS/1.MenuetOS/1/Active/base.bmp b/skins/MenuetOS/1.MenuetOS/1/Active/base.bmp new file mode 100644 index 0000000000..53d32073fe Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/Active/base.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/1/Active/left.bmp b/skins/MenuetOS/1.MenuetOS/1/Active/left.bmp new file mode 100644 index 0000000000..adaa708d9f Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/Active/left.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/1/Active/oper.bmp b/skins/MenuetOS/1.MenuetOS/1/Active/oper.bmp new file mode 100644 index 0000000000..03e96f9483 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/Active/oper.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/1/Inactive/base.bmp b/skins/MenuetOS/1.MenuetOS/1/Inactive/base.bmp new file mode 100644 index 0000000000..697725e36b Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/Inactive/base.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/1/Inactive/left.bmp b/skins/MenuetOS/1.MenuetOS/1/Inactive/left.bmp new file mode 100644 index 0000000000..0acc200c34 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/Inactive/left.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/1/Inactive/oper.bmp b/skins/MenuetOS/1.MenuetOS/1/Inactive/oper.bmp new file mode 100644 index 0000000000..61b7bd05d1 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/1/MenuetOS.asm b/skins/MenuetOS/1.MenuetOS/1/MenuetOS.asm new file mode 100644 index 0000000000..3db7b92e9a --- /dev/null +++ b/skins/MenuetOS/1.MenuetOS/1/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x111B27:\ ; border inner color + bouter=0x111B27:\ ; border outer color + bframe=0x23364F],\ ; border frame color + colors inactive = [binner=0x111B27:\ ; border inner color + bouter=0x111B27:\ ; border outer color + bframe=0x5C646C],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:6][12:12],\ ; buttons coordinates + minimize = [-35:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/1.MenuetOS/1/me_skin.inc b/skins/MenuetOS/1.MenuetOS/1/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/1.MenuetOS/1/me_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/MenuetOS/1.MenuetOS/1/menuet.dtp b/skins/MenuetOS/1.MenuetOS/1/menuet.dtp new file mode 100644 index 0000000000..5d9a097609 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/1/menuet.dtp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/Active/base.bmp b/skins/MenuetOS/1.MenuetOS/2/Active/base.bmp new file mode 100644 index 0000000000..53d32073fe Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/Active/base.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/Active/left.bmp b/skins/MenuetOS/1.MenuetOS/2/Active/left.bmp new file mode 100644 index 0000000000..6e0422af25 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/Active/left.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/Active/oper.bmp b/skins/MenuetOS/1.MenuetOS/2/Active/oper.bmp new file mode 100644 index 0000000000..b055478575 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/Active/oper.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/Inactive/base.bmp b/skins/MenuetOS/1.MenuetOS/2/Inactive/base.bmp new file mode 100644 index 0000000000..697725e36b Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/Inactive/base.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/Inactive/left.bmp b/skins/MenuetOS/1.MenuetOS/2/Inactive/left.bmp new file mode 100644 index 0000000000..51b8a1ba71 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/Inactive/left.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/Inactive/oper.bmp b/skins/MenuetOS/1.MenuetOS/2/Inactive/oper.bmp new file mode 100644 index 0000000000..ba4baea507 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/1.MenuetOS/2/MenuetOS.asm b/skins/MenuetOS/1.MenuetOS/2/MenuetOS.asm new file mode 100644 index 0000000000..f10dcc33e2 --- /dev/null +++ b/skins/MenuetOS/1.MenuetOS/2/MenuetOS.asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x111B27:\ ; border inner color + bouter=0x111B27:\ ; border outer color + bframe=0x23364F],\ ; border frame color + colors inactive = [binner=0x111B27:\ ; border inner color + bouter=0x111B27:\ ; border outer color + bframe=0x5C646C],\ ; border frame color + dtp = 'menuet.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:6][12:12],\ ; buttons coordinates + minimize = [-35:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/MenuetOS/1.MenuetOS/2/me_skin.inc b/skins/MenuetOS/1.MenuetOS/2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/1.MenuetOS/2/me_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/MenuetOS/1.MenuetOS/2/menuet.dtp b/skins/MenuetOS/1.MenuetOS/2/menuet.dtp new file mode 100644 index 0000000000..5d9a097609 Binary files /dev/null and b/skins/MenuetOS/1.MenuetOS/2/menuet.dtp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/Active/base.bmp b/skins/MenuetOS/2.MenuetOS/1/Active/base.bmp new file mode 100644 index 0000000000..c815d68d46 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/Active/base.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/Active/left.bmp b/skins/MenuetOS/2.MenuetOS/1/Active/left.bmp new file mode 100644 index 0000000000..74fcedfd08 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/Active/left.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/Active/oper.bmp b/skins/MenuetOS/2.MenuetOS/1/Active/oper.bmp new file mode 100644 index 0000000000..26734d8049 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/Active/oper.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/GRAY.DTP b/skins/MenuetOS/2.MenuetOS/1/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/GRAY.DTP differ diff --git a/skins/MenuetOS/2.MenuetOS/1/Inactive/base.bmp b/skins/MenuetOS/2.MenuetOS/1/Inactive/base.bmp new file mode 100644 index 0000000000..70ef410157 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/Inactive/base.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/Inactive/left.bmp b/skins/MenuetOS/2.MenuetOS/1/Inactive/left.bmp new file mode 100644 index 0000000000..4f96750b1f Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/Inactive/left.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/Inactive/oper.bmp b/skins/MenuetOS/2.MenuetOS/1/Inactive/oper.bmp new file mode 100644 index 0000000000..e2b3c1855b Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/1/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/1/MenuetOS.asm b/skins/MenuetOS/2.MenuetOS/1/MenuetOS.asm new file mode 100644 index 0000000000..e90062839e --- /dev/null +++ b/skins/MenuetOS/2.MenuetOS/1/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x314C58:\ ; border inner color + bouter=0x011C28:\ ; border outer color + bframe=0x314C58],\ ; border frame color + colors inactive = [binner=0x6C7174:\ ; border inner color + bouter=0x011C28:\ ; border outer color + bframe=0x6C7174],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-18:6][12:12],\ ; buttons coordinates + minimize = [-34:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/2.MenuetOS/1/me_skin.inc b/skins/MenuetOS/2.MenuetOS/1/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/2.MenuetOS/1/me_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/MenuetOS/2.MenuetOS/2/Active/base.bmp b/skins/MenuetOS/2.MenuetOS/2/Active/base.bmp new file mode 100644 index 0000000000..c815d68d46 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/Active/base.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/2/Active/left.bmp b/skins/MenuetOS/2.MenuetOS/2/Active/left.bmp new file mode 100644 index 0000000000..bc7cd9a3f9 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/Active/left.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/2/Active/oper.bmp b/skins/MenuetOS/2.MenuetOS/2/Active/oper.bmp new file mode 100644 index 0000000000..b84553b9f9 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/Active/oper.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/2/GRAY.DTP b/skins/MenuetOS/2.MenuetOS/2/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/GRAY.DTP differ diff --git a/skins/MenuetOS/2.MenuetOS/2/Inactive/base.bmp b/skins/MenuetOS/2.MenuetOS/2/Inactive/base.bmp new file mode 100644 index 0000000000..8a680bc601 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/Inactive/base.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/2/Inactive/left.bmp b/skins/MenuetOS/2.MenuetOS/2/Inactive/left.bmp new file mode 100644 index 0000000000..37e22c57a0 Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/Inactive/left.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/2/Inactive/oper.bmp b/skins/MenuetOS/2.MenuetOS/2/Inactive/oper.bmp new file mode 100644 index 0000000000..685ea6c9fe Binary files /dev/null and b/skins/MenuetOS/2.MenuetOS/2/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/2.MenuetOS/2/MenuetOS.asm b/skins/MenuetOS/2.MenuetOS/2/MenuetOS.asm new file mode 100644 index 0000000000..e90062839e --- /dev/null +++ b/skins/MenuetOS/2.MenuetOS/2/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x314C58:\ ; border inner color + bouter=0x011C28:\ ; border outer color + bframe=0x314C58],\ ; border frame color + colors inactive = [binner=0x6C7174:\ ; border inner color + bouter=0x011C28:\ ; border outer color + bframe=0x6C7174],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-18:6][12:12],\ ; buttons coordinates + minimize = [-34:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/2.MenuetOS/2/me_skin.inc b/skins/MenuetOS/2.MenuetOS/2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/2.MenuetOS/2/me_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/MenuetOS/3.MenuetOS/1/Active/base.bmp b/skins/MenuetOS/3.MenuetOS/1/Active/base.bmp new file mode 100644 index 0000000000..9b2d8d23c4 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/Active/base.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/1/Active/left.bmp b/skins/MenuetOS/3.MenuetOS/1/Active/left.bmp new file mode 100644 index 0000000000..9de64cfde7 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/Active/left.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/1/Active/oper.bmp b/skins/MenuetOS/3.MenuetOS/1/Active/oper.bmp new file mode 100644 index 0000000000..4453adca31 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/Active/oper.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/1/GRAY.DTP b/skins/MenuetOS/3.MenuetOS/1/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/GRAY.DTP differ diff --git a/skins/MenuetOS/3.MenuetOS/1/Inactive/base.bmp b/skins/MenuetOS/3.MenuetOS/1/Inactive/base.bmp new file mode 100644 index 0000000000..182e36b0d2 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/Inactive/base.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/1/Inactive/left.bmp b/skins/MenuetOS/3.MenuetOS/1/Inactive/left.bmp new file mode 100644 index 0000000000..c54b5a6076 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/Inactive/left.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/1/Inactive/oper.bmp b/skins/MenuetOS/3.MenuetOS/1/Inactive/oper.bmp new file mode 100644 index 0000000000..a0c5602fac Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/1/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/1/MenuetOS.asm b/skins/MenuetOS/3.MenuetOS/1/MenuetOS.asm new file mode 100644 index 0000000000..700b473422 --- /dev/null +++ b/skins/MenuetOS/3.MenuetOS/1/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x1D2325:\ ; border inner color + bouter=0x1D2325:\ ; border outer color + bframe=0x3B454A],\ ; border frame color + colors inactive = [binner=0x1D2325:\ ; border inner color + bouter=0x1D2325:\ ; border outer color + bframe=0x65686A],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][15:15],\ ; buttons coordinates + minimize = [-39:3][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/3.MenuetOS/1/me_skin.inc b/skins/MenuetOS/3.MenuetOS/1/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/3.MenuetOS/1/me_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/MenuetOS/3.MenuetOS/2/Active/base.bmp b/skins/MenuetOS/3.MenuetOS/2/Active/base.bmp new file mode 100644 index 0000000000..9b2d8d23c4 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/Active/base.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/2/Active/left.bmp b/skins/MenuetOS/3.MenuetOS/2/Active/left.bmp new file mode 100644 index 0000000000..9e3904de55 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/Active/left.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/2/Active/oper.bmp b/skins/MenuetOS/3.MenuetOS/2/Active/oper.bmp new file mode 100644 index 0000000000..572ff5f1d4 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/Active/oper.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/2/GRAY.DTP b/skins/MenuetOS/3.MenuetOS/2/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/GRAY.DTP differ diff --git a/skins/MenuetOS/3.MenuetOS/2/Inactive/base.bmp b/skins/MenuetOS/3.MenuetOS/2/Inactive/base.bmp new file mode 100644 index 0000000000..182e36b0d2 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/Inactive/base.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/2/Inactive/left.bmp b/skins/MenuetOS/3.MenuetOS/2/Inactive/left.bmp new file mode 100644 index 0000000000..07f03b7369 Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/Inactive/left.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/2/Inactive/oper.bmp b/skins/MenuetOS/3.MenuetOS/2/Inactive/oper.bmp new file mode 100644 index 0000000000..ac8fa1ea4d Binary files /dev/null and b/skins/MenuetOS/3.MenuetOS/2/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/3.MenuetOS/2/MenuetOS.asm b/skins/MenuetOS/3.MenuetOS/2/MenuetOS.asm new file mode 100644 index 0000000000..700b473422 --- /dev/null +++ b/skins/MenuetOS/3.MenuetOS/2/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x1D2325:\ ; border inner color + bouter=0x1D2325:\ ; border outer color + bframe=0x3B454A],\ ; border frame color + colors inactive = [binner=0x1D2325:\ ; border inner color + bouter=0x1D2325:\ ; border outer color + bframe=0x65686A],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][15:15],\ ; buttons coordinates + minimize = [-39:3][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/3.MenuetOS/2/me_skin.inc b/skins/MenuetOS/3.MenuetOS/2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/3.MenuetOS/2/me_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/MenuetOS/4.MenuetOS/1/Active/base.bmp b/skins/MenuetOS/4.MenuetOS/1/Active/base.bmp new file mode 100644 index 0000000000..f9f550465b Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/Active/base.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/1/Active/left.bmp b/skins/MenuetOS/4.MenuetOS/1/Active/left.bmp new file mode 100644 index 0000000000..d22cc363a3 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/Active/left.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/1/Active/oper.bmp b/skins/MenuetOS/4.MenuetOS/1/Active/oper.bmp new file mode 100644 index 0000000000..64f44d10f7 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/Active/oper.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/1/GRAY.DTP b/skins/MenuetOS/4.MenuetOS/1/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/GRAY.DTP differ diff --git a/skins/MenuetOS/4.MenuetOS/1/Inactive/base.bmp b/skins/MenuetOS/4.MenuetOS/1/Inactive/base.bmp new file mode 100644 index 0000000000..20e634f962 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/Inactive/base.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/1/Inactive/left.bmp b/skins/MenuetOS/4.MenuetOS/1/Inactive/left.bmp new file mode 100644 index 0000000000..642290eb28 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/Inactive/left.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/1/Inactive/oper.bmp b/skins/MenuetOS/4.MenuetOS/1/Inactive/oper.bmp new file mode 100644 index 0000000000..0df14a3d08 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/1/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/1/MenuetOS.asm b/skins/MenuetOS/4.MenuetOS/1/MenuetOS.asm new file mode 100644 index 0000000000..15d04592af --- /dev/null +++ b/skins/MenuetOS/4.MenuetOS/1/MenuetOS.asm @@ -0,0 +1,36 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x152D41:\ ; border inner color + bouter=0x0B1721:\ ; border outer color + bframe=0x152D41],\ ; border frame color + colors inactive = [binner=0x576067:\ ; border inner color + bouter=0x0B1721:\ ; border outer color + bframe=0x576067],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:6][12:12],\ ; buttons coordinates + minimize = [-36:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/MenuetOS/4.MenuetOS/1/me_skin.inc b/skins/MenuetOS/4.MenuetOS/1/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/4.MenuetOS/1/me_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/MenuetOS/4.MenuetOS/2/Active/base.bmp b/skins/MenuetOS/4.MenuetOS/2/Active/base.bmp new file mode 100644 index 0000000000..f9f550465b Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/Active/base.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/2/Active/left.bmp b/skins/MenuetOS/4.MenuetOS/2/Active/left.bmp new file mode 100644 index 0000000000..2d92608da4 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/Active/left.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/2/Active/oper.bmp b/skins/MenuetOS/4.MenuetOS/2/Active/oper.bmp new file mode 100644 index 0000000000..6c66991bf2 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/Active/oper.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/2/GRAY.DTP b/skins/MenuetOS/4.MenuetOS/2/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/GRAY.DTP differ diff --git a/skins/MenuetOS/4.MenuetOS/2/Inactive/base.bmp b/skins/MenuetOS/4.MenuetOS/2/Inactive/base.bmp new file mode 100644 index 0000000000..20e634f962 Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/Inactive/base.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/2/Inactive/left.bmp b/skins/MenuetOS/4.MenuetOS/2/Inactive/left.bmp new file mode 100644 index 0000000000..c7f6d8aaef Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/Inactive/left.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/2/Inactive/oper.bmp b/skins/MenuetOS/4.MenuetOS/2/Inactive/oper.bmp new file mode 100644 index 0000000000..ea70b33b9d Binary files /dev/null and b/skins/MenuetOS/4.MenuetOS/2/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/4.MenuetOS/2/MenuetOS.asm b/skins/MenuetOS/4.MenuetOS/2/MenuetOS.asm new file mode 100644 index 0000000000..ce0e547ed4 --- /dev/null +++ b/skins/MenuetOS/4.MenuetOS/2/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x152D41:\ ; border inner color + bouter=0x0B1721:\ ; border outer color + bframe=0x152D41],\ ; border frame color + colors inactive = [binner=0x576067:\ ; border inner color + bouter=0x0B1721:\ ; border outer color + bframe=0x576067],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:6][12:12],\ ; buttons coordinates + minimize = [-36:6][12:12] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/4.MenuetOS/2/me_skin.inc b/skins/MenuetOS/4.MenuetOS/2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/4.MenuetOS/2/me_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/MenuetOS/5.MenuetOS/1/Active/base.bmp b/skins/MenuetOS/5.MenuetOS/1/Active/base.bmp new file mode 100644 index 0000000000..8a6d900579 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/Active/base.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/1/Active/left.bmp b/skins/MenuetOS/5.MenuetOS/1/Active/left.bmp new file mode 100644 index 0000000000..dbc9da6200 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/Active/left.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/1/Active/oper.bmp b/skins/MenuetOS/5.MenuetOS/1/Active/oper.bmp new file mode 100644 index 0000000000..31bebac8e0 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/Active/oper.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/1/GRAY.DTP b/skins/MenuetOS/5.MenuetOS/1/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/GRAY.DTP differ diff --git a/skins/MenuetOS/5.MenuetOS/1/Inactive/base.bmp b/skins/MenuetOS/5.MenuetOS/1/Inactive/base.bmp new file mode 100644 index 0000000000..4e8958cce5 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/Inactive/base.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/1/Inactive/left.bmp b/skins/MenuetOS/5.MenuetOS/1/Inactive/left.bmp new file mode 100644 index 0000000000..964e8967ec Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/Inactive/left.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/1/Inactive/oper.bmp b/skins/MenuetOS/5.MenuetOS/1/Inactive/oper.bmp new file mode 100644 index 0000000000..9b8798088d Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/1/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/1/MenuetOS.asm b/skins/MenuetOS/5.MenuetOS/1/MenuetOS.asm new file mode 100644 index 0000000000..0998f5f775 --- /dev/null +++ b/skins/MenuetOS/5.MenuetOS/1/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x162F44],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x576168],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:5][15:15],\ ; buttons coordinates + minimize = [-39:5][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/5.MenuetOS/1/me_skin.inc b/skins/MenuetOS/5.MenuetOS/1/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/5.MenuetOS/1/me_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/MenuetOS/5.MenuetOS/2/Active/base.bmp b/skins/MenuetOS/5.MenuetOS/2/Active/base.bmp new file mode 100644 index 0000000000..8a6d900579 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/Active/base.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/2/Active/left.bmp b/skins/MenuetOS/5.MenuetOS/2/Active/left.bmp new file mode 100644 index 0000000000..2f49fd0707 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/Active/left.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/2/Active/oper.bmp b/skins/MenuetOS/5.MenuetOS/2/Active/oper.bmp new file mode 100644 index 0000000000..1f13d13c41 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/Active/oper.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/2/GRAY.DTP b/skins/MenuetOS/5.MenuetOS/2/GRAY.DTP new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/GRAY.DTP differ diff --git a/skins/MenuetOS/5.MenuetOS/2/Inactive/base.bmp b/skins/MenuetOS/5.MenuetOS/2/Inactive/base.bmp new file mode 100644 index 0000000000..4e8958cce5 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/Inactive/base.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/2/Inactive/left.bmp b/skins/MenuetOS/5.MenuetOS/2/Inactive/left.bmp new file mode 100644 index 0000000000..17bd48b38e Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/Inactive/left.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/2/Inactive/oper.bmp b/skins/MenuetOS/5.MenuetOS/2/Inactive/oper.bmp new file mode 100644 index 0000000000..5f0c704a50 Binary files /dev/null and b/skins/MenuetOS/5.MenuetOS/2/Inactive/oper.bmp differ diff --git a/skins/MenuetOS/5.MenuetOS/2/MenuetOS.asm b/skins/MenuetOS/5.MenuetOS/2/MenuetOS.asm new file mode 100644 index 0000000000..0998f5f775 --- /dev/null +++ b/skins/MenuetOS/5.MenuetOS/2/MenuetOS.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x162F44],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x576168],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:5][15:15],\ ; buttons coordinates + minimize = [-39:5][15:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MenuetOS/5.MenuetOS/2/me_skin.inc b/skins/MenuetOS/5.MenuetOS/2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MenuetOS/5.MenuetOS/2/me_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/MenuetOS/MenuetOS.png b/skins/MenuetOS/MenuetOS.png new file mode 100644 index 0000000000..cbb042546f Binary files /dev/null and b/skins/MenuetOS/MenuetOS.png differ diff --git a/skins/MetalColor/MCBlue.dtp b/skins/MetalColor/MCBlue.dtp new file mode 100644 index 0000000000..e3d410bcbc Binary files /dev/null and b/skins/MetalColor/MCBlue.dtp differ diff --git a/skins/MetalColor/MCBlue.skn b/skins/MetalColor/MCBlue.skn new file mode 100644 index 0000000000..5d629d51b9 Binary files /dev/null and b/skins/MetalColor/MCBlue.skn differ diff --git a/skins/MetalColor/MCRed.skn b/skins/MetalColor/MCRed.skn new file mode 100644 index 0000000000..92281965f6 Binary files /dev/null and b/skins/MetalColor/MCRed.skn differ diff --git a/skins/MetalColor/MetalColorRed.dtp b/skins/MetalColor/MetalColorRed.dtp new file mode 100644 index 0000000000..dc1750320d Binary files /dev/null and b/skins/MetalColor/MetalColorRed.dtp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.DTP b/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.DTP new file mode 100644 index 0000000000..74b285012c Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.DTP differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.asm b/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.asm new file mode 100644 index 0000000000..f580796824 --- /dev/null +++ b/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x696969:\ ; border inner color + bouter=0x696969:\ ; border outer color + bframe=0x808080],\ ; border frame color + colors inactive = [binner=0x707070:\ ; border inner color + bouter=0x707070:\ ; border outer color + bframe=0x808080],\ ; border frame color + dtp = '1.MetalGearArrows.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:5][16:16],\ ; buttons coordinates + minimize = [-47:5][16:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.png b/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.png new file mode 100644 index 0000000000..fdaa8c2ce7 Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/1.MetalGearArrows.png differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/Active/base.bmp b/skins/MetalGearArrows/1.MetalGearArrows/Active/base.bmp new file mode 100644 index 0000000000..abc3428898 Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/Active/base.bmp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/Active/left.bmp b/skins/MetalGearArrows/1.MetalGearArrows/Active/left.bmp new file mode 100644 index 0000000000..6c83a8170d Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/Active/left.bmp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/Active/oper.bmp b/skins/MetalGearArrows/1.MetalGearArrows/Active/oper.bmp new file mode 100644 index 0000000000..f40da90cb0 Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/Active/oper.bmp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/Inactive/base.bmp b/skins/MetalGearArrows/1.MetalGearArrows/Inactive/base.bmp new file mode 100644 index 0000000000..b797446d3e Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/Inactive/base.bmp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/Inactive/left.bmp b/skins/MetalGearArrows/1.MetalGearArrows/Inactive/left.bmp new file mode 100644 index 0000000000..d620a5213f Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/Inactive/left.bmp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/Inactive/oper.bmp b/skins/MetalGearArrows/1.MetalGearArrows/Inactive/oper.bmp new file mode 100644 index 0000000000..5d442952f7 Binary files /dev/null and b/skins/MetalGearArrows/1.MetalGearArrows/Inactive/oper.bmp differ diff --git a/skins/MetalGearArrows/1.MetalGearArrows/me_skin.inc b/skins/MetalGearArrows/1.MetalGearArrows/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MetalGearArrows/1.MetalGearArrows/me_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/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.DTP b/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.DTP new file mode 100644 index 0000000000..74b285012c Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.DTP differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.asm b/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.asm new file mode 100644 index 0000000000..f8dfa162cb --- /dev/null +++ b/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x696969:\ ; border inner color + bouter=0x696969:\ ; border outer color + bframe=0x808080],\ ; border frame color + colors inactive = [binner=0x707070:\ ; border inner color + bouter=0x707070:\ ; border outer color + bframe=0x808080],\ ; border frame color + dtp = '2.MetalGearArrows.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:5][16:16],\ ; buttons coordinates + minimize = [-47:5][16:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.png b/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.png new file mode 100644 index 0000000000..09f8850835 Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/2.MetalGearArrows.png differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/Active/base.bmp b/skins/MetalGearArrows/2.MetalGearArrows/Active/base.bmp new file mode 100644 index 0000000000..abc3428898 Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/Active/base.bmp differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/Active/left.bmp b/skins/MetalGearArrows/2.MetalGearArrows/Active/left.bmp new file mode 100644 index 0000000000..6c83a8170d Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/Active/left.bmp differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/Active/oper.bmp b/skins/MetalGearArrows/2.MetalGearArrows/Active/oper.bmp new file mode 100644 index 0000000000..d231b3d4a5 Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/Active/oper.bmp differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/Inactive/base.bmp b/skins/MetalGearArrows/2.MetalGearArrows/Inactive/base.bmp new file mode 100644 index 0000000000..b797446d3e Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/Inactive/base.bmp differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/Inactive/left.bmp b/skins/MetalGearArrows/2.MetalGearArrows/Inactive/left.bmp new file mode 100644 index 0000000000..d620a5213f Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/Inactive/left.bmp differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/Inactive/oper.bmp b/skins/MetalGearArrows/2.MetalGearArrows/Inactive/oper.bmp new file mode 100644 index 0000000000..3f014a1945 Binary files /dev/null and b/skins/MetalGearArrows/2.MetalGearArrows/Inactive/oper.bmp differ diff --git a/skins/MetalGearArrows/2.MetalGearArrows/me_skin.inc b/skins/MetalGearArrows/2.MetalGearArrows/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MetalGearArrows/2.MetalGearArrows/me_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/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.DTP b/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.DTP new file mode 100644 index 0000000000..74b285012c Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.DTP differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.asm b/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.asm new file mode 100644 index 0000000000..28ffe592d1 --- /dev/null +++ b/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x696969:\ ; border inner color + bouter=0x696969:\ ; border outer color + bframe=0x808080],\ ; border frame color + colors inactive = [binner=0x707070:\ ; border inner color + bouter=0x707070:\ ; border outer color + bframe=0x808080],\ ; border frame color + dtp = '3.MetalGearArrows.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:5][16:16],\ ; buttons coordinates + minimize = [-47:5][16:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.png b/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.png new file mode 100644 index 0000000000..b6012d5a24 Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/3.MetalGearArrows.png differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/Active/base.bmp b/skins/MetalGearArrows/3.MetalGearArrows/Active/base.bmp new file mode 100644 index 0000000000..abc3428898 Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/Active/base.bmp differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/Active/left.bmp b/skins/MetalGearArrows/3.MetalGearArrows/Active/left.bmp new file mode 100644 index 0000000000..6c83a8170d Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/Active/left.bmp differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/Active/oper.bmp b/skins/MetalGearArrows/3.MetalGearArrows/Active/oper.bmp new file mode 100644 index 0000000000..f0e972184f Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/Active/oper.bmp differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/Inactive/base.bmp b/skins/MetalGearArrows/3.MetalGearArrows/Inactive/base.bmp new file mode 100644 index 0000000000..b797446d3e Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/Inactive/base.bmp differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/Inactive/left.bmp b/skins/MetalGearArrows/3.MetalGearArrows/Inactive/left.bmp new file mode 100644 index 0000000000..d620a5213f Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/Inactive/left.bmp differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/Inactive/oper.bmp b/skins/MetalGearArrows/3.MetalGearArrows/Inactive/oper.bmp new file mode 100644 index 0000000000..8f61e02fed Binary files /dev/null and b/skins/MetalGearArrows/3.MetalGearArrows/Inactive/oper.bmp differ diff --git a/skins/MetalGearArrows/3.MetalGearArrows/me_skin.inc b/skins/MetalGearArrows/3.MetalGearArrows/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MetalGearArrows/3.MetalGearArrows/me_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/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.DTP b/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.DTP new file mode 100644 index 0000000000..74b285012c Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.DTP differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.asm b/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.asm new file mode 100644 index 0000000000..90fe6989dd --- /dev/null +++ b/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x696969:\ ; border inner color + bouter=0x696969:\ ; border outer color + bframe=0x808080],\ ; border frame color + colors inactive = [binner=0x707070:\ ; border inner color + bouter=0x707070:\ ; border outer color + bframe=0x808080],\ ; border frame color + dtp = '4.MetalGearArrows.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:5][16:16],\ ; buttons coordinates + minimize = [-47:5][16:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.png b/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.png new file mode 100644 index 0000000000..b8b20518f1 Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/4.MetalGearArrows.png differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/Active/base.bmp b/skins/MetalGearArrows/4.MetalGearArrows/Active/base.bmp new file mode 100644 index 0000000000..abc3428898 Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/Active/base.bmp differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/Active/left.bmp b/skins/MetalGearArrows/4.MetalGearArrows/Active/left.bmp new file mode 100644 index 0000000000..6c83a8170d Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/Active/left.bmp differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/Active/oper.bmp b/skins/MetalGearArrows/4.MetalGearArrows/Active/oper.bmp new file mode 100644 index 0000000000..1afc3dc338 Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/Active/oper.bmp differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/Inactive/base.bmp b/skins/MetalGearArrows/4.MetalGearArrows/Inactive/base.bmp new file mode 100644 index 0000000000..b797446d3e Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/Inactive/base.bmp differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/Inactive/left.bmp b/skins/MetalGearArrows/4.MetalGearArrows/Inactive/left.bmp new file mode 100644 index 0000000000..d620a5213f Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/Inactive/left.bmp differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/Inactive/oper.bmp b/skins/MetalGearArrows/4.MetalGearArrows/Inactive/oper.bmp new file mode 100644 index 0000000000..661ffe2169 Binary files /dev/null and b/skins/MetalGearArrows/4.MetalGearArrows/Inactive/oper.bmp differ diff --git a/skins/MetalGearArrows/4.MetalGearArrows/me_skin.inc b/skins/MetalGearArrows/4.MetalGearArrows/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/MetalGearArrows/4.MetalGearArrows/me_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/MetalGearArrows/screenshot.png b/skins/MetalGearArrows/screenshot.png new file mode 100644 index 0000000000..83e67e7a6d Binary files /dev/null and b/skins/MetalGearArrows/screenshot.png differ diff --git a/skins/MyTango/default.skn b/skins/MyTango/default.skn new file mode 100644 index 0000000000..e5401c128e Binary files /dev/null and b/skins/MyTango/default.skn differ diff --git a/skins/Nature/Active/base.bmp b/skins/Nature/Active/base.bmp new file mode 100644 index 0000000000..135d3a11a7 Binary files /dev/null and b/skins/Nature/Active/base.bmp differ diff --git a/skins/Nature/Active/left.bmp b/skins/Nature/Active/left.bmp new file mode 100644 index 0000000000..725d7c657b Binary files /dev/null and b/skins/Nature/Active/left.bmp differ diff --git a/skins/Nature/Active/oper.bmp b/skins/Nature/Active/oper.bmp new file mode 100644 index 0000000000..06071786f4 Binary files /dev/null and b/skins/Nature/Active/oper.bmp differ diff --git a/skins/Nature/Inactive/base.bmp b/skins/Nature/Inactive/base.bmp new file mode 100644 index 0000000000..974eaee1cb Binary files /dev/null and b/skins/Nature/Inactive/base.bmp differ diff --git a/skins/Nature/Inactive/left.bmp b/skins/Nature/Inactive/left.bmp new file mode 100644 index 0000000000..5a9a97f9a9 Binary files /dev/null and b/skins/Nature/Inactive/left.bmp differ diff --git a/skins/Nature/Inactive/oper.bmp b/skins/Nature/Inactive/oper.bmp new file mode 100644 index 0000000000..68a98e18d0 Binary files /dev/null and b/skins/Nature/Inactive/oper.bmp differ diff --git a/skins/Nature/Nature.asm b/skins/Nature/Nature.asm new file mode 100644 index 0000000000..17c43fbb22 --- /dev/null +++ b/skins/Nature/Nature.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x1D481D:\ ; border inner color + bouter=0x1D481D:\ ; border outer color + bframe=0x026302],\ ; border frame color + colors inactive = [binner=0x1D481D:\ ; border inner color + bouter=0x1D481D:\ ; border outer color + bframe=0x517251],\ ; border frame color + dtp = 'nature.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-24:4][16:16],\ ; buttons coordinates + minimize = [-45:4][16:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/Nature/Screenshot.png b/skins/Nature/Screenshot.png new file mode 100644 index 0000000000..ab88745736 Binary files /dev/null and b/skins/Nature/Screenshot.png differ diff --git a/skins/Nature/me_skin.inc b/skins/Nature/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Nature/me_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/Nature/nature.dtp b/skins/Nature/nature.dtp new file mode 100644 index 0000000000..cca4cdc95c Binary files /dev/null and b/skins/Nature/nature.dtp differ diff --git a/skins/OpusOs_Blue/OpusOs_Blue.skn b/skins/OpusOs_Blue/OpusOs_Blue.skn new file mode 100644 index 0000000000..088dea2b03 Binary files /dev/null and b/skins/OpusOs_Blue/OpusOs_Blue.skn differ diff --git a/skins/Orange_Silence/Active/base.bmp b/skins/Orange_Silence/Active/base.bmp new file mode 100644 index 0000000000..32cd9e6d8b Binary files /dev/null and b/skins/Orange_Silence/Active/base.bmp differ diff --git a/skins/Orange_Silence/Active/left.bmp b/skins/Orange_Silence/Active/left.bmp new file mode 100644 index 0000000000..14a8b20dc3 Binary files /dev/null and b/skins/Orange_Silence/Active/left.bmp differ diff --git a/skins/Orange_Silence/Active/oper.bmp b/skins/Orange_Silence/Active/oper.bmp new file mode 100644 index 0000000000..90180b2f78 Binary files /dev/null and b/skins/Orange_Silence/Active/oper.bmp differ diff --git a/skins/Orange_Silence/Inactive/base.bmp b/skins/Orange_Silence/Inactive/base.bmp new file mode 100644 index 0000000000..2a49443384 Binary files /dev/null and b/skins/Orange_Silence/Inactive/base.bmp differ diff --git a/skins/Orange_Silence/Inactive/left.bmp b/skins/Orange_Silence/Inactive/left.bmp new file mode 100644 index 0000000000..d6e8dcb813 Binary files /dev/null and b/skins/Orange_Silence/Inactive/left.bmp differ diff --git a/skins/Orange_Silence/Inactive/oper.bmp b/skins/Orange_Silence/Inactive/oper.bmp new file mode 100644 index 0000000000..28ebe5d75b Binary files /dev/null and b/skins/Orange_Silence/Inactive/oper.bmp differ diff --git a/skins/Orange_Silence/Orange_Silence.asm b/skins/Orange_Silence/Orange_Silence.asm new file mode 100644 index 0000000000..3f1ddbcd4b --- /dev/null +++ b/skins/Orange_Silence/Orange_Silence.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xff6600],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x878280],\ ; border frame color + dtp = 'Orange_Silence.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-27:3][18:18],\ ; buttons coordinates + minimize = [-50:3][18:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Orange_Silence/Orange_Silence.dtp b/skins/Orange_Silence/Orange_Silence.dtp new file mode 100644 index 0000000000..e025b3c002 Binary files /dev/null and b/skins/Orange_Silence/Orange_Silence.dtp differ diff --git a/skins/Orange_Silence/Orange_Silence.png b/skins/Orange_Silence/Orange_Silence.png new file mode 100644 index 0000000000..6e65c9b4cd Binary files /dev/null and b/skins/Orange_Silence/Orange_Silence.png differ diff --git a/skins/Orange_Silence/me_skin.inc b/skins/Orange_Silence/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Orange_Silence/me_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/Orange_aureole/Active/base.bmp b/skins/Orange_aureole/Active/base.bmp new file mode 100644 index 0000000000..f9cb94877e Binary files /dev/null and b/skins/Orange_aureole/Active/base.bmp differ diff --git a/skins/Orange_aureole/Active/left.bmp b/skins/Orange_aureole/Active/left.bmp new file mode 100644 index 0000000000..b0378b06cd Binary files /dev/null and b/skins/Orange_aureole/Active/left.bmp differ diff --git a/skins/Orange_aureole/Active/oper.bmp b/skins/Orange_aureole/Active/oper.bmp new file mode 100644 index 0000000000..e0e72d2309 Binary files /dev/null and b/skins/Orange_aureole/Active/oper.bmp differ diff --git a/skins/Orange_aureole/Inactive/base.bmp b/skins/Orange_aureole/Inactive/base.bmp new file mode 100644 index 0000000000..d7b6646d35 Binary files /dev/null and b/skins/Orange_aureole/Inactive/base.bmp differ diff --git a/skins/Orange_aureole/Inactive/left.bmp b/skins/Orange_aureole/Inactive/left.bmp new file mode 100644 index 0000000000..a60a6b4e4e Binary files /dev/null and b/skins/Orange_aureole/Inactive/left.bmp differ diff --git a/skins/Orange_aureole/Inactive/oper.bmp b/skins/Orange_aureole/Inactive/oper.bmp new file mode 100644 index 0000000000..b7ced2aad0 Binary files /dev/null and b/skins/Orange_aureole/Inactive/oper.bmp differ diff --git a/skins/Orange_aureole/me_skin.inc b/skins/Orange_aureole/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Orange_aureole/me_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/Orange_aureole/orange_aureole.DTP b/skins/Orange_aureole/orange_aureole.DTP new file mode 100644 index 0000000000..6ac8761e2a Binary files /dev/null and b/skins/Orange_aureole/orange_aureole.DTP differ diff --git a/skins/Orange_aureole/orange_aureole.asm b/skins/Orange_aureole/orange_aureole.asm new file mode 100644 index 0000000000..9e9f127875 --- /dev/null +++ b/skins/Orange_aureole/orange_aureole.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xF87710:\ ; border inner color + bouter=0xF87710:\ ; border outer color + bframe=0xF87710],\ ; border frame color + colors inactive = [binner=0xF87710:\ ; border inner color + bouter=0xF87710:\ ; border outer color + bframe=0x9C8A6D],\ ; border frame color + dtp = 'orange_aureole.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-26:2][19:19],\ ; buttons coordinates + minimize = [-46:2][19:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/Orange_aureole/screenshot.png b/skins/Orange_aureole/screenshot.png new file mode 100644 index 0000000000..2c9840d483 Binary files /dev/null and b/skins/Orange_aureole/screenshot.png differ diff --git a/skins/Organics/Active/base.bmp b/skins/Organics/Active/base.bmp new file mode 100644 index 0000000000..0a62712185 Binary files /dev/null and b/skins/Organics/Active/base.bmp differ diff --git a/skins/Organics/Active/left.bmp b/skins/Organics/Active/left.bmp new file mode 100644 index 0000000000..12fdc8f77c Binary files /dev/null and b/skins/Organics/Active/left.bmp differ diff --git a/skins/Organics/Active/oper.bmp b/skins/Organics/Active/oper.bmp new file mode 100644 index 0000000000..ab376a9282 Binary files /dev/null and b/skins/Organics/Active/oper.bmp differ diff --git a/skins/Organics/Inactive/base.bmp b/skins/Organics/Inactive/base.bmp new file mode 100644 index 0000000000..b9428aa369 Binary files /dev/null and b/skins/Organics/Inactive/base.bmp differ diff --git a/skins/Organics/Inactive/left.bmp b/skins/Organics/Inactive/left.bmp new file mode 100644 index 0000000000..98d72dbf1a Binary files /dev/null and b/skins/Organics/Inactive/left.bmp differ diff --git a/skins/Organics/Inactive/oper.bmp b/skins/Organics/Inactive/oper.bmp new file mode 100644 index 0000000000..dcd46d0af7 Binary files /dev/null and b/skins/Organics/Inactive/oper.bmp differ diff --git a/skins/Organics/ORANGE.DTP b/skins/Organics/ORANGE.DTP new file mode 100644 index 0000000000..58d9278d87 Binary files /dev/null and b/skins/Organics/ORANGE.DTP differ diff --git a/skins/Organics/Organics.asm b/skins/Organics/Organics.asm new file mode 100644 index 0000000000..3879b16c69 --- /dev/null +++ b/skins/Organics/Organics.asm @@ -0,0 +1,37 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xA46200:\ ; border inner color + bouter=0xA46200:\ ; border outer color + bframe=0xFF9900],\ ; border frame color + colors inactive = [binner=0xB17926:\ ; border inner color + bouter=0xB17926:\ ; border outer color + bframe=0xFFA826],\ ; border frame color + dtp = 'ORANGE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-28:4][19:15],\ ; buttons coordinates + minimize = [-53:4][19:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +; FFA900 \ No newline at end of file diff --git a/skins/Organics/my_skin.inc b/skins/Organics/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Organics/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/Rednex/Active/base.bmp b/skins/Rednex/Active/base.bmp new file mode 100644 index 0000000000..cd54226dca Binary files /dev/null and b/skins/Rednex/Active/base.bmp differ diff --git a/skins/Rednex/Active/left.bmp b/skins/Rednex/Active/left.bmp new file mode 100644 index 0000000000..341c1e3c5e Binary files /dev/null and b/skins/Rednex/Active/left.bmp differ diff --git a/skins/Rednex/Active/oper.bmp b/skins/Rednex/Active/oper.bmp new file mode 100644 index 0000000000..fcea01d9eb Binary files /dev/null and b/skins/Rednex/Active/oper.bmp differ diff --git a/skins/Rednex/Inactive/base.bmp b/skins/Rednex/Inactive/base.bmp new file mode 100644 index 0000000000..478d6e963d Binary files /dev/null and b/skins/Rednex/Inactive/base.bmp differ diff --git a/skins/Rednex/Inactive/left.bmp b/skins/Rednex/Inactive/left.bmp new file mode 100644 index 0000000000..d2a5b1dc8f Binary files /dev/null and b/skins/Rednex/Inactive/left.bmp differ diff --git a/skins/Rednex/Inactive/oper.bmp b/skins/Rednex/Inactive/oper.bmp new file mode 100644 index 0000000000..6c1b296039 Binary files /dev/null and b/skins/Rednex/Inactive/oper.bmp differ diff --git a/skins/Rednex/RED.DTP b/skins/Rednex/RED.DTP new file mode 100644 index 0000000000..e912af8543 Binary files /dev/null and b/skins/Rednex/RED.DTP differ diff --git a/skins/Rednex/Rednex.asm b/skins/Rednex/Rednex.asm new file mode 100644 index 0000000000..c51c1d88b6 --- /dev/null +++ b/skins/Rednex/Rednex.asm @@ -0,0 +1,36 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x800000:\ ; border inner color + bouter=0x800000:\ ; border outer color + bframe=0xA10000],\ ; border frame color + colors inactive = [binner=0xA34747:\ ; border inner color + bouter=0xA34747:\ ; border outer color + bframe=0xBA4747],\ ; border frame color + dtp = 'RED.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-32:0][26:17],\ ; buttons coordinates + minimize = [-51:0][19:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + diff --git a/skins/Rednex/my_skin.inc b/skins/Rednex/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Rednex/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/RoboTech/BRoboTech/Active/base.bmp b/skins/RoboTech/BRoboTech/Active/base.bmp new file mode 100644 index 0000000000..ee38dd3e71 Binary files /dev/null and b/skins/RoboTech/BRoboTech/Active/base.bmp differ diff --git a/skins/RoboTech/BRoboTech/Active/left.bmp b/skins/RoboTech/BRoboTech/Active/left.bmp new file mode 100644 index 0000000000..e66d30d771 Binary files /dev/null and b/skins/RoboTech/BRoboTech/Active/left.bmp differ diff --git a/skins/RoboTech/BRoboTech/Active/oper.bmp b/skins/RoboTech/BRoboTech/Active/oper.bmp new file mode 100644 index 0000000000..4a8a8b4f0f Binary files /dev/null and b/skins/RoboTech/BRoboTech/Active/oper.bmp differ diff --git a/skins/RoboTech/BRoboTech/BRoboTech.asm b/skins/RoboTech/BRoboTech/BRoboTech.asm new file mode 100644 index 0000000000..3226457ac4 --- /dev/null +++ b/skins/RoboTech/BRoboTech/BRoboTech.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x060606:\ ; border inner color + bouter=0x060606:\ ; border outer color + bframe=0x101010],\ ; border frame color + colors inactive = [binner=0x121212:\ ; border inner color + bouter=0x121212:\ ; border outer color + bframe=0x1B1B1B],\ ; border frame color + dtp = 'BRoboTech.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:4][16:15],\ ; buttons coordinates + minimize = [-46:4][16:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/RoboTech/BRoboTech/BRoboTech.dtp b/skins/RoboTech/BRoboTech/BRoboTech.dtp new file mode 100644 index 0000000000..e2fda925b8 Binary files /dev/null and b/skins/RoboTech/BRoboTech/BRoboTech.dtp differ diff --git a/skins/RoboTech/BRoboTech/Inactive/base.bmp b/skins/RoboTech/BRoboTech/Inactive/base.bmp new file mode 100644 index 0000000000..bdb01f0977 Binary files /dev/null and b/skins/RoboTech/BRoboTech/Inactive/base.bmp differ diff --git a/skins/RoboTech/BRoboTech/Inactive/left.bmp b/skins/RoboTech/BRoboTech/Inactive/left.bmp new file mode 100644 index 0000000000..5ed4e324b2 Binary files /dev/null and b/skins/RoboTech/BRoboTech/Inactive/left.bmp differ diff --git a/skins/RoboTech/BRoboTech/Inactive/oper.bmp b/skins/RoboTech/BRoboTech/Inactive/oper.bmp new file mode 100644 index 0000000000..52892ff2ad Binary files /dev/null and b/skins/RoboTech/BRoboTech/Inactive/oper.bmp differ diff --git a/skins/RoboTech/BRoboTech/me_skin.inc b/skins/RoboTech/BRoboTech/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/RoboTech/BRoboTech/me_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/RoboTech/BRoboTech/screenshot.png b/skins/RoboTech/BRoboTech/screenshot.png new file mode 100644 index 0000000000..88dd50bca4 Binary files /dev/null and b/skins/RoboTech/BRoboTech/screenshot.png differ diff --git a/skins/RoboTech/GRoboTech/Active/base.bmp b/skins/RoboTech/GRoboTech/Active/base.bmp new file mode 100644 index 0000000000..f455927e14 Binary files /dev/null and b/skins/RoboTech/GRoboTech/Active/base.bmp differ diff --git a/skins/RoboTech/GRoboTech/Active/left.bmp b/skins/RoboTech/GRoboTech/Active/left.bmp new file mode 100644 index 0000000000..04c81b02ba Binary files /dev/null and b/skins/RoboTech/GRoboTech/Active/left.bmp differ diff --git a/skins/RoboTech/GRoboTech/Active/oper.bmp b/skins/RoboTech/GRoboTech/Active/oper.bmp new file mode 100644 index 0000000000..cebf81b339 Binary files /dev/null and b/skins/RoboTech/GRoboTech/Active/oper.bmp differ diff --git a/skins/RoboTech/GRoboTech/GRoboTech.DTP b/skins/RoboTech/GRoboTech/GRoboTech.DTP new file mode 100644 index 0000000000..ea56f16b31 Binary files /dev/null and b/skins/RoboTech/GRoboTech/GRoboTech.DTP differ diff --git a/skins/RoboTech/GRoboTech/GRoboTech.asm b/skins/RoboTech/GRoboTech/GRoboTech.asm new file mode 100644 index 0000000000..1da80f4a74 --- /dev/null +++ b/skins/RoboTech/GRoboTech/GRoboTech.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x4E4E4E:\ ; border inner color + bouter=0x4E4E4E:\ ; border outer color + bframe=0x6A6A6A],\ ; border frame color + colors inactive = [binner=0x575757:\ ; border inner color + bouter=0x575757:\ ; border outer color + bframe=0x6E6E6E],\ ; border frame color + dtp = 'GRoboTech.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-25:4][16:15],\ ; buttons coordinates + minimize = [-46:4][16:15] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/RoboTech/GRoboTech/Inactive/base.bmp b/skins/RoboTech/GRoboTech/Inactive/base.bmp new file mode 100644 index 0000000000..e62ae6548a Binary files /dev/null and b/skins/RoboTech/GRoboTech/Inactive/base.bmp differ diff --git a/skins/RoboTech/GRoboTech/Inactive/left.bmp b/skins/RoboTech/GRoboTech/Inactive/left.bmp new file mode 100644 index 0000000000..36683b7b43 Binary files /dev/null and b/skins/RoboTech/GRoboTech/Inactive/left.bmp differ diff --git a/skins/RoboTech/GRoboTech/Inactive/oper.bmp b/skins/RoboTech/GRoboTech/Inactive/oper.bmp new file mode 100644 index 0000000000..9fd9eaa2a7 Binary files /dev/null and b/skins/RoboTech/GRoboTech/Inactive/oper.bmp differ diff --git a/skins/RoboTech/GRoboTech/me_skin.inc b/skins/RoboTech/GRoboTech/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/RoboTech/GRoboTech/me_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/RoboTech/GRoboTech/screenshot.png b/skins/RoboTech/GRoboTech/screenshot.png new file mode 100644 index 0000000000..88dd50bca4 Binary files /dev/null and b/skins/RoboTech/GRoboTech/screenshot.png differ diff --git a/skins/Russia/Active/base.bmp b/skins/Russia/Active/base.bmp new file mode 100644 index 0000000000..2e8bd763d9 Binary files /dev/null and b/skins/Russia/Active/base.bmp differ diff --git a/skins/Russia/Active/left.bmp b/skins/Russia/Active/left.bmp new file mode 100644 index 0000000000..58ed6b8639 Binary files /dev/null and b/skins/Russia/Active/left.bmp differ diff --git a/skins/Russia/Active/oper.bmp b/skins/Russia/Active/oper.bmp new file mode 100644 index 0000000000..69e0a39f0b Binary files /dev/null and b/skins/Russia/Active/oper.bmp differ diff --git a/skins/Russia/GREEN.DTP b/skins/Russia/GREEN.DTP new file mode 100644 index 0000000000..7bcdd4ccf3 Binary files /dev/null and b/skins/Russia/GREEN.DTP differ diff --git a/skins/Russia/Inactive/base.bmp b/skins/Russia/Inactive/base.bmp new file mode 100644 index 0000000000..bc8e5c4cf7 Binary files /dev/null and b/skins/Russia/Inactive/base.bmp differ diff --git a/skins/Russia/Inactive/left.bmp b/skins/Russia/Inactive/left.bmp new file mode 100644 index 0000000000..a3c3f45c63 Binary files /dev/null and b/skins/Russia/Inactive/left.bmp differ diff --git a/skins/Russia/Inactive/oper.bmp b/skins/Russia/Inactive/oper.bmp new file mode 100644 index 0000000000..8ebb751ad7 Binary files /dev/null and b/skins/Russia/Inactive/oper.bmp differ diff --git a/skins/Russia/build.bat b/skins/Russia/build.bat new file mode 100644 index 0000000000..c8468a4627 --- /dev/null +++ b/skins/Russia/build.bat @@ -0,0 +1,2 @@ +@fasm russia.asm russia.skn +@pause \ No newline at end of file diff --git a/skins/Russia/me_skin.inc b/skins/Russia/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Russia/me_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/Russia/russia.asm b/skins/Russia/russia.asm new file mode 100644 index 0000000000..5f531b6b71 --- /dev/null +++ b/skins/Russia/russia.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x109420],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x789c80],\ ; border frame color + dtp = 'Green.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-24:2][22:20],\ ; buttons coordinates + minimize = [-48:2][22: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/Russia/russia.skn b/skins/Russia/russia.skn new file mode 100644 index 0000000000..791ebb186d Binary files /dev/null and b/skins/Russia/russia.skn differ diff --git a/skins/Russia_2/Active/base.bmp b/skins/Russia_2/Active/base.bmp new file mode 100644 index 0000000000..e34026db71 Binary files /dev/null and b/skins/Russia_2/Active/base.bmp differ diff --git a/skins/Russia_2/Active/left.bmp b/skins/Russia_2/Active/left.bmp new file mode 100644 index 0000000000..5d8952a992 Binary files /dev/null and b/skins/Russia_2/Active/left.bmp differ diff --git a/skins/Russia_2/Active/oper.bmp b/skins/Russia_2/Active/oper.bmp new file mode 100644 index 0000000000..e705578644 Binary files /dev/null and b/skins/Russia_2/Active/oper.bmp differ diff --git a/skins/Russia_2/Inactive/base.bmp b/skins/Russia_2/Inactive/base.bmp new file mode 100644 index 0000000000..0a875b239e Binary files /dev/null and b/skins/Russia_2/Inactive/base.bmp differ diff --git a/skins/Russia_2/Inactive/left.bmp b/skins/Russia_2/Inactive/left.bmp new file mode 100644 index 0000000000..ac37265349 Binary files /dev/null and b/skins/Russia_2/Inactive/left.bmp differ diff --git a/skins/Russia_2/Inactive/oper.bmp b/skins/Russia_2/Inactive/oper.bmp new file mode 100644 index 0000000000..9066689334 Binary files /dev/null and b/skins/Russia_2/Inactive/oper.bmp differ diff --git a/skins/Russia_2/Russia_2.asm b/skins/Russia_2/Russia_2.asm new file mode 100644 index 0000000000..9609143f1e --- /dev/null +++ b/skins/Russia_2/Russia_2.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xE8E800],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xD4D4CF],\ ; border frame color + dtp = 'russia_2.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-23:3][19:19],\ ; buttons coordinates + minimize = [-45:3][19:19] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/Russia_2/me_skin.inc b/skins/Russia_2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Russia_2/me_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/Russia_2/russia_2.dtp b/skins/Russia_2/russia_2.dtp new file mode 100644 index 0000000000..f6d5854d55 Binary files /dev/null and b/skins/Russia_2/russia_2.dtp differ diff --git a/skins/Russia_2/russia_2.png b/skins/Russia_2/russia_2.png new file mode 100644 index 0000000000..48b2b57401 Binary files /dev/null and b/skins/Russia_2/russia_2.png differ diff --git a/skins/Sad_grey/base.bmp b/skins/Sad_grey/base.bmp new file mode 100644 index 0000000000..8358389624 Binary files /dev/null and b/skins/Sad_grey/base.bmp differ diff --git a/skins/Sad_grey/base_1.bmp b/skins/Sad_grey/base_1.bmp new file mode 100644 index 0000000000..e4ff3dfc6c Binary files /dev/null and b/skins/Sad_grey/base_1.bmp differ diff --git a/skins/Sad_grey/default.asm b/skins/Sad_grey/default.asm new file mode 100644 index 0000000000..a08abd301e --- /dev/null +++ b/skins/Sad_grey/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:72:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0xF1F1F1:\ ; border outer color + bframe=0xB7B7B7],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0xC0C0C0:\ ; border outer color + bframe=0xB7B7B7],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:1][24:24],\ ; buttons coordinates + minimize = [-55:1][24:24] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/Sad_grey/default.dtp b/skins/Sad_grey/default.dtp new file mode 100644 index 0000000000..5795441852 Binary files /dev/null and b/skins/Sad_grey/default.dtp differ diff --git a/skins/Sad_grey/default.dtp.asm b/skins/Sad_grey/default.dtp.asm new file mode 100644 index 0000000000..0728683af1 --- /dev/null +++ b/skins/Sad_grey/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xB7B7B7 +grab dd 0xE9E9E9 +grab_button dd 0xA6A6A6 +grab_button_text dd 0xffffff +grab_text dd 0x747474 +work dd 0xf3f3f3 +work_button dd 0xf3f3f3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/Sad_grey/default.skn b/skins/Sad_grey/default.skn new file mode 100644 index 0000000000..8c6ceb0e55 Binary files /dev/null and b/skins/Sad_grey/default.skn differ diff --git a/skins/Sad_grey/dtp_build.bat b/skins/Sad_grey/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/Sad_grey/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/Sad_grey/left.bmp b/skins/Sad_grey/left.bmp new file mode 100644 index 0000000000..708e7a5273 Binary files /dev/null and b/skins/Sad_grey/left.bmp differ diff --git a/skins/Sad_grey/left_1.bmp b/skins/Sad_grey/left_1.bmp new file mode 100644 index 0000000000..c78823c983 Binary files /dev/null and b/skins/Sad_grey/left_1.bmp differ diff --git a/skins/Sad_grey/me_skin.inc b/skins/Sad_grey/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Sad_grey/me_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/Sad_grey/oper.bmp b/skins/Sad_grey/oper.bmp new file mode 100644 index 0000000000..a4c3935878 Binary files /dev/null and b/skins/Sad_grey/oper.bmp differ diff --git a/skins/Sad_grey/oper_1.bmp b/skins/Sad_grey/oper_1.bmp new file mode 100644 index 0000000000..1196588f68 Binary files /dev/null and b/skins/Sad_grey/oper_1.bmp differ diff --git a/skins/Sad_grey/pack_build.bat b/skins/Sad_grey/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/Sad_grey/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/Sad_grey/skn_build.bat b/skins/Sad_grey/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/Sad_grey/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/Sandwich/build.bat b/skins/Sandwich/build.bat new file mode 100644 index 0000000000..2131bf7f71 --- /dev/null +++ b/skins/Sandwich/build.bat @@ -0,0 +1,3 @@ +fasm default.asm default.skn +kpack default.skn +pause \ No newline at end of file diff --git a/skins/Sandwich/center1.bmp b/skins/Sandwich/center1.bmp new file mode 100644 index 0000000000..0bba64b7b6 Binary files /dev/null and b/skins/Sandwich/center1.bmp differ diff --git a/skins/Sandwich/center2.bmp b/skins/Sandwich/center2.bmp new file mode 100644 index 0000000000..0bba64b7b6 Binary files /dev/null and b/skins/Sandwich/center2.bmp differ diff --git a/skins/Sandwich/default.asm b/skins/Sandwich/default.asm new file mode 100644 index 0000000000..e84bbe2cea --- /dev/null +++ b/skins/Sandwich/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_center1.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xE1E1E1:\ ; border inner color + bouter=0x3E3635:\ ; border outer color + bframe=0xE1E1E1],\ ; border frame color + colors inactive = [binner=0xE1E1E1:\ ; border inner color + bouter=0x3E3635:\ ; border outer color + bframe=0xE1E1E1],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-18:4][13:14],\ ; buttons coordinates + minimize = [-36:4][13:14] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left1,\ ; skin bitmaps pointers + left inactive = bmp_left2,\ + oper active = bmp_right1,\ + oper inactive = bmp_right2,\ + base active = bmp_center1,\ + base inactive = bmp_center2 + +BITMAP bmp_left1, 'left1.bmp' ; skin bitmaps +BITMAP bmp_left2, 'left2.bmp' +BITMAP bmp_right1, 'right1.bmp' +BITMAP bmp_right2, 'right2.bmp' +BITMAP bmp_center1,'center1.bmp' +BITMAP bmp_center2,'center2.bmp' diff --git a/skins/Sandwich/default.dtp b/skins/Sandwich/default.dtp new file mode 100644 index 0000000000..9e19447b76 Binary files /dev/null and b/skins/Sandwich/default.dtp differ diff --git a/skins/Sandwich/default.dtp.asm b/skins/Sandwich/default.dtp.asm new file mode 100644 index 0000000000..a182bb44b3 --- /dev/null +++ b/skins/Sandwich/default.dtp.asm @@ -0,0 +1,14 @@ +struc system_colors + { + .frame dd 0x000000 + .grab dd 0x006393 + .grab_button dd 0xB1B1B1 + .grab_button_text dd 0x000000 + .grab_text dd 0xFFFFFF + .work dd 0xE8E8E8 + .work_button dd 0xB1B1B1 + .work_button_text dd 0x000000 + .work_text dd 0x000000 + .work_graph dd 0x000000 + } +struct system_colors \ No newline at end of file diff --git a/skins/Sandwich/left1.bmp b/skins/Sandwich/left1.bmp new file mode 100644 index 0000000000..438b841bc2 Binary files /dev/null and b/skins/Sandwich/left1.bmp differ diff --git a/skins/Sandwich/left2.bmp b/skins/Sandwich/left2.bmp new file mode 100644 index 0000000000..438b841bc2 Binary files /dev/null and b/skins/Sandwich/left2.bmp differ diff --git a/skins/Sandwich/me_skin.inc b/skins/Sandwich/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Sandwich/me_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/Sandwich/right1.bmp b/skins/Sandwich/right1.bmp new file mode 100644 index 0000000000..294b94c567 Binary files /dev/null and b/skins/Sandwich/right1.bmp differ diff --git a/skins/Sandwich/right2.bmp b/skins/Sandwich/right2.bmp new file mode 100644 index 0000000000..996a2a57a4 Binary files /dev/null and b/skins/Sandwich/right2.bmp differ diff --git a/skins/SashSkinPack_1_1/Aqua.skn b/skins/SashSkinPack_1_1/Aqua.skn new file mode 100644 index 0000000000..773bce708e Binary files /dev/null and b/skins/SashSkinPack_1_1/Aqua.skn differ diff --git a/skins/SashSkinPack_1_1/Cold.skn b/skins/SashSkinPack_1_1/Cold.skn new file mode 100644 index 0000000000..0395450fc4 Binary files /dev/null and b/skins/SashSkinPack_1_1/Cold.skn differ diff --git a/skins/SashSkinPack_1_1/Metal.skn b/skins/SashSkinPack_1_1/Metal.skn new file mode 100644 index 0000000000..6b6e0fc2b6 Binary files /dev/null and b/skins/SashSkinPack_1_1/Metal.skn differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/Active/base.bmp b/skins/SashSkinPack_1_1/Src/Aqua/Active/base.bmp new file mode 100644 index 0000000000..4d27547927 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/Active/base.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/Active/left.bmp b/skins/SashSkinPack_1_1/Src/Aqua/Active/left.bmp new file mode 100644 index 0000000000..fd23fd77fe Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/Active/left.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/Active/oper.bmp b/skins/SashSkinPack_1_1/Src/Aqua/Active/oper.bmp new file mode 100644 index 0000000000..75ca57784e Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/Active/oper.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/Aqua.asm b/skins/SashSkinPack_1_1/Src/Aqua/Aqua.asm new file mode 100644 index 0000000000..dbe346887e --- /dev/null +++ b/skins/SashSkinPack_1_1/Src/Aqua/Aqua.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x49b2d5:\ ; border inner color + bouter=0x4fc0e5:\ ; border outer color + bframe=0x2cb9e9],\ ; border frame color + colors inactive = [binner=0x47899f:\ ; border inner color + bouter=0x47899f:\ ; border outer color + bframe=0x47899f],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:0][21:22],\ ; buttons coordinates + minimize = [-42:0][21:22] ; [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/SashSkinPack_1_1/Src/Aqua/Inactive/base.bmp b/skins/SashSkinPack_1_1/Src/Aqua/Inactive/base.bmp new file mode 100644 index 0000000000..55fb4e2d7c Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/Inactive/base.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/Inactive/left.bmp b/skins/SashSkinPack_1_1/Src/Aqua/Inactive/left.bmp new file mode 100644 index 0000000000..ca236029c4 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/Inactive/left.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/Inactive/oper.bmp b/skins/SashSkinPack_1_1/Src/Aqua/Inactive/oper.bmp new file mode 100644 index 0000000000..126f17afad Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/Inactive/oper.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/colors.DTP b/skins/SashSkinPack_1_1/Src/Aqua/colors.DTP new file mode 100644 index 0000000000..06f6832bc0 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Aqua/colors.DTP differ diff --git a/skins/SashSkinPack_1_1/Src/Aqua/me_skin.inc b/skins/SashSkinPack_1_1/Src/Aqua/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/SashSkinPack_1_1/Src/Aqua/me_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/SashSkinPack_1_1/Src/Cold/Active/base.bmp b/skins/SashSkinPack_1_1/Src/Cold/Active/base.bmp new file mode 100644 index 0000000000..b634b9f0c5 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/Active/base.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/Active/left.bmp b/skins/SashSkinPack_1_1/Src/Cold/Active/left.bmp new file mode 100644 index 0000000000..358047c6ba Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/Active/left.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/Active/oper.bmp b/skins/SashSkinPack_1_1/Src/Cold/Active/oper.bmp new file mode 100644 index 0000000000..588167933d Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/Active/oper.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/Cold.asm b/skins/SashSkinPack_1_1/Src/Cold/Cold.asm new file mode 100644 index 0000000000..5751c9fee9 --- /dev/null +++ b/skins/SashSkinPack_1_1/Src/Cold/Cold.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xa9b2b4:\ ; border inner color + bouter=0x909698:\ ; border outer color + bframe=0xa9b2b4],\ ; border frame color + colors inactive = [binner=0xa9b2b4:\ ; border inner color + bouter=0x909698:\ ; border outer color + bframe=0xa9b2b4],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:4][16:16],\ ; buttons coordinates + minimize = [-41:4][16:18] ; [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/SashSkinPack_1_1/Src/Cold/Inactive/base.bmp b/skins/SashSkinPack_1_1/Src/Cold/Inactive/base.bmp new file mode 100644 index 0000000000..c48976ca0f Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/Inactive/base.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/Inactive/left.bmp b/skins/SashSkinPack_1_1/Src/Cold/Inactive/left.bmp new file mode 100644 index 0000000000..af0d8cb9e2 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/Inactive/left.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/Inactive/oper.bmp b/skins/SashSkinPack_1_1/Src/Cold/Inactive/oper.bmp new file mode 100644 index 0000000000..e4ff59075a Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/Inactive/oper.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/colors.DTP b/skins/SashSkinPack_1_1/Src/Cold/colors.DTP new file mode 100644 index 0000000000..ce0d83d2f7 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Cold/colors.DTP differ diff --git a/skins/SashSkinPack_1_1/Src/Cold/me_skin.inc b/skins/SashSkinPack_1_1/Src/Cold/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/SashSkinPack_1_1/Src/Cold/me_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/SashSkinPack_1_1/Src/Metal/Active/base.bmp b/skins/SashSkinPack_1_1/Src/Metal/Active/base.bmp new file mode 100644 index 0000000000..205054dfbc Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/Active/base.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/Active/left.bmp b/skins/SashSkinPack_1_1/Src/Metal/Active/left.bmp new file mode 100644 index 0000000000..e68adeb60e Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/Active/left.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/Active/oper.bmp b/skins/SashSkinPack_1_1/Src/Metal/Active/oper.bmp new file mode 100644 index 0000000000..4460095eff Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/Active/oper.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/Inactive/base.bmp b/skins/SashSkinPack_1_1/Src/Metal/Inactive/base.bmp new file mode 100644 index 0000000000..10696a705c Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/Inactive/base.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/Inactive/left.bmp b/skins/SashSkinPack_1_1/Src/Metal/Inactive/left.bmp new file mode 100644 index 0000000000..70a92de5a9 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/Inactive/left.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/Inactive/oper.bmp b/skins/SashSkinPack_1_1/Src/Metal/Inactive/oper.bmp new file mode 100644 index 0000000000..b0cf9610cd Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/Inactive/oper.bmp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/Metal.asm b/skins/SashSkinPack_1_1/Src/Metal/Metal.asm new file mode 100644 index 0000000000..6851b0b131 --- /dev/null +++ b/skins/SashSkinPack_1_1/Src/Metal/Metal.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7f86a6:\ ; border inner color + bouter=0xb3b8bb:\ ; border outer color + bframe=0x7f86a6],\ ; border frame color + colors inactive = [binner=0x4d5060:\ ; border inner color + bouter=0x6a6c6e:\ ; border outer color + bframe=0x4d5060],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][18:18],\ ; buttons coordinates + minimize = [-40:3][18:18] ; [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/SashSkinPack_1_1/Src/Metal/colors.dtp b/skins/SashSkinPack_1_1/Src/Metal/colors.dtp new file mode 100644 index 0000000000..fdd649b440 Binary files /dev/null and b/skins/SashSkinPack_1_1/Src/Metal/colors.dtp differ diff --git a/skins/SashSkinPack_1_1/Src/Metal/me_skin.inc b/skins/SashSkinPack_1_1/Src/Metal/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/SashSkinPack_1_1/Src/Metal/me_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/StyleVista/pack_build.bat b/skins/StyleVista/pack_build.bat new file mode 100644 index 0000000000..031a4bc1d1 --- /dev/null +++ b/skins/StyleVista/pack_build.bat @@ -0,0 +1,5 @@ +kpack vista.skn vista.skn +kpack vista_basic.skn vista_basic.skn +kpack vista_basic_black.skn vista_basic_black.skn +kpack vista_dark.skn vista_dark.skn +pause \ No newline at end of file diff --git a/skins/StyleVista/vista/base.bmp b/skins/StyleVista/vista/base.bmp new file mode 100644 index 0000000000..6afccc32aa Binary files /dev/null and b/skins/StyleVista/vista/base.bmp differ diff --git a/skins/StyleVista/vista/base_1.bmp b/skins/StyleVista/vista/base_1.bmp new file mode 100644 index 0000000000..6afccc32aa Binary files /dev/null and b/skins/StyleVista/vista/base_1.bmp differ diff --git a/skins/StyleVista/vista/default.asm b/skins/StyleVista/vista/default.asm new file mode 100644 index 0000000000..64c1a5929d --- /dev/null +++ b/skins/StyleVista/vista/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:78:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-47:1][43:17],\ ; buttons coordinates + minimize = [-72:1][26:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleVista/vista/default.dtp b/skins/StyleVista/vista/default.dtp new file mode 100644 index 0000000000..5fc7ee741a Binary files /dev/null and b/skins/StyleVista/vista/default.dtp differ diff --git a/skins/StyleVista/vista/default.dtp.asm b/skins/StyleVista/vista/default.dtp.asm new file mode 100644 index 0000000000..03a4a4f693 --- /dev/null +++ b/skins/StyleVista/vista/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x525252 +grab_button dd 0xb8432c +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xd8d8d8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/StyleVista/vista/default.skn b/skins/StyleVista/vista/default.skn new file mode 100644 index 0000000000..088d7a058e Binary files /dev/null and b/skins/StyleVista/vista/default.skn differ diff --git a/skins/StyleVista/vista/dtp_build.bat b/skins/StyleVista/vista/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleVista/vista/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleVista/vista/left.bmp b/skins/StyleVista/vista/left.bmp new file mode 100644 index 0000000000..b43282c433 Binary files /dev/null and b/skins/StyleVista/vista/left.bmp differ diff --git a/skins/StyleVista/vista/left_1.bmp b/skins/StyleVista/vista/left_1.bmp new file mode 100644 index 0000000000..b43282c433 Binary files /dev/null and b/skins/StyleVista/vista/left_1.bmp differ diff --git a/skins/StyleVista/vista/me_skin.inc b/skins/StyleVista/vista/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleVista/vista/me_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/StyleVista/vista/oper.bmp b/skins/StyleVista/vista/oper.bmp new file mode 100644 index 0000000000..6728575a05 Binary files /dev/null and b/skins/StyleVista/vista/oper.bmp differ diff --git a/skins/StyleVista/vista/oper_1.bmp b/skins/StyleVista/vista/oper_1.bmp new file mode 100644 index 0000000000..7e3631e3d5 Binary files /dev/null and b/skins/StyleVista/vista/oper_1.bmp differ diff --git a/skins/StyleVista/vista/pack_build.bat b/skins/StyleVista/vista/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleVista/vista/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleVista/vista/skn_build.bat b/skins/StyleVista/vista/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleVista/vista/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/StyleVista/vista_basic/base.bmp b/skins/StyleVista/vista_basic/base.bmp new file mode 100644 index 0000000000..ed89a6f52f Binary files /dev/null and b/skins/StyleVista/vista_basic/base.bmp differ diff --git a/skins/StyleVista/vista_basic/base_1.bmp b/skins/StyleVista/vista_basic/base_1.bmp new file mode 100644 index 0000000000..a4ae7d36e0 Binary files /dev/null and b/skins/StyleVista/vista_basic/base_1.bmp differ diff --git a/skins/StyleVista/vista_basic/default.asm b/skins/StyleVista/vista_basic/default.asm new file mode 100644 index 0000000000..85743ddf4e --- /dev/null +++ b/skins/StyleVista/vista_basic/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:67:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x457496:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x868686:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-32:4][28:15],\ ; buttons coordinates + minimize = [-62:4][28:15] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleVista/vista_basic/default.dtp b/skins/StyleVista/vista_basic/default.dtp new file mode 100644 index 0000000000..b28562ed1c Binary files /dev/null and b/skins/StyleVista/vista_basic/default.dtp differ diff --git a/skins/StyleVista/vista_basic/default.dtp.asm b/skins/StyleVista/vista_basic/default.dtp.asm new file mode 100644 index 0000000000..c804beee64 --- /dev/null +++ b/skins/StyleVista/vista_basic/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x68a8de +grab_button dd 0xb8432c +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xd8d8d8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/StyleVista/vista_basic/default.skn b/skins/StyleVista/vista_basic/default.skn new file mode 100644 index 0000000000..076ead4014 Binary files /dev/null and b/skins/StyleVista/vista_basic/default.skn differ diff --git a/skins/StyleVista/vista_basic/dtp_build.bat b/skins/StyleVista/vista_basic/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleVista/vista_basic/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleVista/vista_basic/left.bmp b/skins/StyleVista/vista_basic/left.bmp new file mode 100644 index 0000000000..1e1dd3057d Binary files /dev/null and b/skins/StyleVista/vista_basic/left.bmp differ diff --git a/skins/StyleVista/vista_basic/left_1.bmp b/skins/StyleVista/vista_basic/left_1.bmp new file mode 100644 index 0000000000..3cbcf591c7 Binary files /dev/null and b/skins/StyleVista/vista_basic/left_1.bmp differ diff --git a/skins/StyleVista/vista_basic/me_skin.inc b/skins/StyleVista/vista_basic/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleVista/vista_basic/me_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/StyleVista/vista_basic/oper.bmp b/skins/StyleVista/vista_basic/oper.bmp new file mode 100644 index 0000000000..6ec5457e8d Binary files /dev/null and b/skins/StyleVista/vista_basic/oper.bmp differ diff --git a/skins/StyleVista/vista_basic/oper_1.bmp b/skins/StyleVista/vista_basic/oper_1.bmp new file mode 100644 index 0000000000..2b9dc2313b Binary files /dev/null and b/skins/StyleVista/vista_basic/oper_1.bmp differ diff --git a/skins/StyleVista/vista_basic/pack_build.bat b/skins/StyleVista/vista_basic/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleVista/vista_basic/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleVista/vista_basic/skn_build.bat b/skins/StyleVista/vista_basic/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleVista/vista_basic/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/StyleVista/vista_basic_black/base.bmp b/skins/StyleVista/vista_basic_black/base.bmp new file mode 100644 index 0000000000..f8a9a05c36 Binary files /dev/null and b/skins/StyleVista/vista_basic_black/base.bmp differ diff --git a/skins/StyleVista/vista_basic_black/base_1.bmp b/skins/StyleVista/vista_basic_black/base_1.bmp new file mode 100644 index 0000000000..f8a9a05c36 Binary files /dev/null and b/skins/StyleVista/vista_basic_black/base_1.bmp differ diff --git a/skins/StyleVista/vista_basic_black/default.asm b/skins/StyleVista/vista_basic_black/default.asm new file mode 100644 index 0000000000..b10c4c872f --- /dev/null +++ b/skins/StyleVista/vista_basic_black/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:67:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-32:4][28:15],\ ; buttons coordinates + minimize = [-62:4][28:15] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleVista/vista_basic_black/default.dtp b/skins/StyleVista/vista_basic_black/default.dtp new file mode 100644 index 0000000000..5fc7ee741a Binary files /dev/null and b/skins/StyleVista/vista_basic_black/default.dtp differ diff --git a/skins/StyleVista/vista_basic_black/default.dtp.asm b/skins/StyleVista/vista_basic_black/default.dtp.asm new file mode 100644 index 0000000000..03a4a4f693 --- /dev/null +++ b/skins/StyleVista/vista_basic_black/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x525252 +grab_button dd 0xb8432c +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xd8d8d8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/StyleVista/vista_basic_black/default.skn b/skins/StyleVista/vista_basic_black/default.skn new file mode 100644 index 0000000000..3fb29e6077 Binary files /dev/null and b/skins/StyleVista/vista_basic_black/default.skn differ diff --git a/skins/StyleVista/vista_basic_black/dtp_build.bat b/skins/StyleVista/vista_basic_black/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleVista/vista_basic_black/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleVista/vista_basic_black/left.bmp b/skins/StyleVista/vista_basic_black/left.bmp new file mode 100644 index 0000000000..1473754248 Binary files /dev/null and b/skins/StyleVista/vista_basic_black/left.bmp differ diff --git a/skins/StyleVista/vista_basic_black/left_1.bmp b/skins/StyleVista/vista_basic_black/left_1.bmp new file mode 100644 index 0000000000..1473754248 Binary files /dev/null and b/skins/StyleVista/vista_basic_black/left_1.bmp differ diff --git a/skins/StyleVista/vista_basic_black/me_skin.inc b/skins/StyleVista/vista_basic_black/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleVista/vista_basic_black/me_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/StyleVista/vista_basic_black/oper.bmp b/skins/StyleVista/vista_basic_black/oper.bmp new file mode 100644 index 0000000000..8f07f3eeb2 Binary files /dev/null and b/skins/StyleVista/vista_basic_black/oper.bmp differ diff --git a/skins/StyleVista/vista_basic_black/oper_1.bmp b/skins/StyleVista/vista_basic_black/oper_1.bmp new file mode 100644 index 0000000000..5b009f900d Binary files /dev/null and b/skins/StyleVista/vista_basic_black/oper_1.bmp differ diff --git a/skins/StyleVista/vista_basic_black/pack_build.bat b/skins/StyleVista/vista_basic_black/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleVista/vista_basic_black/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleVista/vista_basic_black/skn_build.bat b/skins/StyleVista/vista_basic_black/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleVista/vista_basic_black/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/StyleVista/vista_dark/base.bmp b/skins/StyleVista/vista_dark/base.bmp new file mode 100644 index 0000000000..6afccc32aa Binary files /dev/null and b/skins/StyleVista/vista_dark/base.bmp differ diff --git a/skins/StyleVista/vista_dark/base_1.bmp b/skins/StyleVista/vista_dark/base_1.bmp new file mode 100644 index 0000000000..6afccc32aa Binary files /dev/null and b/skins/StyleVista/vista_dark/base_1.bmp differ diff --git a/skins/StyleVista/vista_dark/default.asm b/skins/StyleVista/vista_dark/default.asm new file mode 100644 index 0000000000..64c1a5929d --- /dev/null +++ b/skins/StyleVista/vista_dark/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:78:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-47:1][43:17],\ ; buttons coordinates + minimize = [-72:1][26:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleVista/vista_dark/default.dtp b/skins/StyleVista/vista_dark/default.dtp new file mode 100644 index 0000000000..ef5bb24718 Binary files /dev/null and b/skins/StyleVista/vista_dark/default.dtp differ diff --git a/skins/StyleVista/vista_dark/default.dtp.asm b/skins/StyleVista/vista_dark/default.dtp.asm new file mode 100644 index 0000000000..27a36bacc3 --- /dev/null +++ b/skins/StyleVista/vista_dark/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x525252 +grab_button dd 0xAA2711 +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xd8d8d8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/StyleVista/vista_dark/default.skn b/skins/StyleVista/vista_dark/default.skn new file mode 100644 index 0000000000..48a1d34ec0 Binary files /dev/null and b/skins/StyleVista/vista_dark/default.skn differ diff --git a/skins/StyleVista/vista_dark/dtp_build.bat b/skins/StyleVista/vista_dark/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleVista/vista_dark/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleVista/vista_dark/left.bmp b/skins/StyleVista/vista_dark/left.bmp new file mode 100644 index 0000000000..b43282c433 Binary files /dev/null and b/skins/StyleVista/vista_dark/left.bmp differ diff --git a/skins/StyleVista/vista_dark/left_1.bmp b/skins/StyleVista/vista_dark/left_1.bmp new file mode 100644 index 0000000000..b43282c433 Binary files /dev/null and b/skins/StyleVista/vista_dark/left_1.bmp differ diff --git a/skins/StyleVista/vista_dark/me_skin.inc b/skins/StyleVista/vista_dark/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleVista/vista_dark/me_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/StyleVista/vista_dark/oper.bmp b/skins/StyleVista/vista_dark/oper.bmp new file mode 100644 index 0000000000..0dbc7e093c Binary files /dev/null and b/skins/StyleVista/vista_dark/oper.bmp differ diff --git a/skins/StyleVista/vista_dark/oper_1.bmp b/skins/StyleVista/vista_dark/oper_1.bmp new file mode 100644 index 0000000000..84d1adc1b9 Binary files /dev/null and b/skins/StyleVista/vista_dark/oper_1.bmp differ diff --git a/skins/StyleVista/vista_dark/pack_build.bat b/skins/StyleVista/vista_dark/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleVista/vista_dark/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleVista/vista_dark/skn_build.bat b/skins/StyleVista/vista_dark/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleVista/vista_dark/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/StyleXP/orqua/base.bmp b/skins/StyleXP/orqua/base.bmp new file mode 100644 index 0000000000..447dbfa371 Binary files /dev/null and b/skins/StyleXP/orqua/base.bmp differ diff --git a/skins/StyleXP/orqua/base_1.bmp b/skins/StyleXP/orqua/base_1.bmp new file mode 100644 index 0000000000..447dbfa371 Binary files /dev/null and b/skins/StyleXP/orqua/base_1.bmp differ diff --git a/skins/StyleXP/orqua/default.asm b/skins/StyleXP/orqua/default.asm new file mode 100644 index 0000000000..f01dbf5212 --- /dev/null +++ b/skins/StyleXP/orqua/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:55:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x868686],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x868686],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:5][13:13],\ ; buttons coordinates + minimize = [-43:5][13:13] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleXP/orqua/default.dtp b/skins/StyleXP/orqua/default.dtp new file mode 100644 index 0000000000..e0f917e953 Binary files /dev/null and b/skins/StyleXP/orqua/default.dtp differ diff --git a/skins/StyleXP/orqua/default.dtp.asm b/skins/StyleXP/orqua/default.dtp.asm new file mode 100644 index 0000000000..452eba6bcf --- /dev/null +++ b/skins/StyleXP/orqua/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x868686 +grab dd 0xdedede +grab_button dd 0x8c0000 +grab_button_text dd 0xffffff +grab_text dd 0x000000 +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 diff --git a/skins/StyleXP/orqua/default.skn b/skins/StyleXP/orqua/default.skn new file mode 100644 index 0000000000..0f877d292f Binary files /dev/null and b/skins/StyleXP/orqua/default.skn differ diff --git a/skins/StyleXP/orqua/dtp_build.bat b/skins/StyleXP/orqua/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleXP/orqua/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleXP/orqua/left.bmp b/skins/StyleXP/orqua/left.bmp new file mode 100644 index 0000000000..a320135091 Binary files /dev/null and b/skins/StyleXP/orqua/left.bmp differ diff --git a/skins/StyleXP/orqua/left_1.bmp b/skins/StyleXP/orqua/left_1.bmp new file mode 100644 index 0000000000..a320135091 Binary files /dev/null and b/skins/StyleXP/orqua/left_1.bmp differ diff --git a/skins/StyleXP/orqua/me_skin.inc b/skins/StyleXP/orqua/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleXP/orqua/me_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/StyleXP/orqua/oper.bmp b/skins/StyleXP/orqua/oper.bmp new file mode 100644 index 0000000000..36a897d480 Binary files /dev/null and b/skins/StyleXP/orqua/oper.bmp differ diff --git a/skins/StyleXP/orqua/oper_1.bmp b/skins/StyleXP/orqua/oper_1.bmp new file mode 100644 index 0000000000..cc542f7784 Binary files /dev/null and b/skins/StyleXP/orqua/oper_1.bmp differ diff --git a/skins/StyleXP/orqua/pack_build.bat b/skins/StyleXP/orqua/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleXP/orqua/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleXP/orqua/skn_build.bat b/skins/StyleXP/orqua/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleXP/orqua/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/StyleXP/pack_build.bat b/skins/StyleXP/pack_build.bat new file mode 100644 index 0000000000..4eee9bd3d0 --- /dev/null +++ b/skins/StyleXP/pack_build.bat @@ -0,0 +1,4 @@ +kpack orqua.skn orqua.skn +kpack panther.skn panther.skn +kpack wmpx.skn wmpx.skn +pause \ No newline at end of file diff --git a/skins/StyleXP/panther/base.bmp b/skins/StyleXP/panther/base.bmp new file mode 100644 index 0000000000..93df895225 Binary files /dev/null and b/skins/StyleXP/panther/base.bmp differ diff --git a/skins/StyleXP/panther/base_1.bmp b/skins/StyleXP/panther/base_1.bmp new file mode 100644 index 0000000000..93df895225 Binary files /dev/null and b/skins/StyleXP/panther/base_1.bmp differ diff --git a/skins/StyleXP/panther/default.asm b/skins/StyleXP/panther/default.asm new file mode 100644 index 0000000000..fd9532330f --- /dev/null +++ b/skins/StyleXP/panther/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:44:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xAAAAAA:\ ; border inner color + bouter=0xAAAAAA:\ ; border outer color + bframe=0xCACACA],\ ; border frame color + colors inactive = [binner=0xAAAAAA:\ ; border inner color + bouter=0xAAAAAA:\ ; border outer color + bframe=0xCACACA],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleXP/panther/default.dtp b/skins/StyleXP/panther/default.dtp new file mode 100644 index 0000000000..c98066e798 Binary files /dev/null and b/skins/StyleXP/panther/default.dtp differ diff --git a/skins/StyleXP/panther/default.dtp.asm b/skins/StyleXP/panther/default.dtp.asm new file mode 100644 index 0000000000..1783f1dd3e --- /dev/null +++ b/skins/StyleXP/panther/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xCACACA +grab dd 0xE8E8E8 +grab_button dd 0xCCCCCC +grab_button_text dd 0x000000 +grab_text dd 0x000000 +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/StyleXP/panther/default.skn b/skins/StyleXP/panther/default.skn new file mode 100644 index 0000000000..ecf02dbaaf Binary files /dev/null and b/skins/StyleXP/panther/default.skn differ diff --git a/skins/StyleXP/panther/dtp_build.bat b/skins/StyleXP/panther/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleXP/panther/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleXP/panther/left.bmp b/skins/StyleXP/panther/left.bmp new file mode 100644 index 0000000000..c63d76d184 Binary files /dev/null and b/skins/StyleXP/panther/left.bmp differ diff --git a/skins/StyleXP/panther/left_1.bmp b/skins/StyleXP/panther/left_1.bmp new file mode 100644 index 0000000000..c63d76d184 Binary files /dev/null and b/skins/StyleXP/panther/left_1.bmp differ diff --git a/skins/StyleXP/panther/me_skin.inc b/skins/StyleXP/panther/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleXP/panther/me_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/StyleXP/panther/oper.bmp b/skins/StyleXP/panther/oper.bmp new file mode 100644 index 0000000000..b2b8406276 Binary files /dev/null and b/skins/StyleXP/panther/oper.bmp differ diff --git a/skins/StyleXP/panther/oper_1.bmp b/skins/StyleXP/panther/oper_1.bmp new file mode 100644 index 0000000000..6e332fba2a Binary files /dev/null and b/skins/StyleXP/panther/oper_1.bmp differ diff --git a/skins/StyleXP/panther/pack_build.bat b/skins/StyleXP/panther/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleXP/panther/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleXP/panther/skn_build.bat b/skins/StyleXP/panther/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleXP/panther/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/StyleXP/wmpx/base.bmp b/skins/StyleXP/wmpx/base.bmp new file mode 100644 index 0000000000..1a1b88f489 Binary files /dev/null and b/skins/StyleXP/wmpx/base.bmp differ diff --git a/skins/StyleXP/wmpx/base_1.bmp b/skins/StyleXP/wmpx/base_1.bmp new file mode 100644 index 0000000000..9dac367a71 Binary files /dev/null and b/skins/StyleXP/wmpx/base_1.bmp differ diff --git a/skins/StyleXP/wmpx/default.asm b/skins/StyleXP/wmpx/default.asm new file mode 100644 index 0000000000..59c0648d30 --- /dev/null +++ b/skins/StyleXP/wmpx/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:44:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x6B7DA6:\ ; border inner color + bouter=0x6B7DA6:\ ; border outer color + bframe=0x7D95C1],\ ; border frame color + colors inactive = [binner=0x97A4C1:\ ; border inner color + bouter=0x97A4C1:\ ; border outer color + bframe=0xA4B5D3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/StyleXP/wmpx/default.dtp b/skins/StyleXP/wmpx/default.dtp new file mode 100644 index 0000000000..55f260bb85 Binary files /dev/null and b/skins/StyleXP/wmpx/default.dtp differ diff --git a/skins/StyleXP/wmpx/default.dtp.asm b/skins/StyleXP/wmpx/default.dtp.asm new file mode 100644 index 0000000000..efad63436f --- /dev/null +++ b/skins/StyleXP/wmpx/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x7D95C1 +grab dd 0xb2d1f1 +grab_button dd 0x9dbee2 +grab_button_text dd 0x5f7aa2 +grab_text dd 0x5f7aa2 +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/StyleXP/wmpx/default.skn b/skins/StyleXP/wmpx/default.skn new file mode 100644 index 0000000000..77ec8b3e7c Binary files /dev/null and b/skins/StyleXP/wmpx/default.skn differ diff --git a/skins/StyleXP/wmpx/dtp_build.bat b/skins/StyleXP/wmpx/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/StyleXP/wmpx/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/StyleXP/wmpx/left.bmp b/skins/StyleXP/wmpx/left.bmp new file mode 100644 index 0000000000..6d3a3bfd53 Binary files /dev/null and b/skins/StyleXP/wmpx/left.bmp differ diff --git a/skins/StyleXP/wmpx/left_1.bmp b/skins/StyleXP/wmpx/left_1.bmp new file mode 100644 index 0000000000..314fa85881 Binary files /dev/null and b/skins/StyleXP/wmpx/left_1.bmp differ diff --git a/skins/StyleXP/wmpx/me_skin.inc b/skins/StyleXP/wmpx/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/StyleXP/wmpx/me_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/StyleXP/wmpx/oper.bmp b/skins/StyleXP/wmpx/oper.bmp new file mode 100644 index 0000000000..b11ae0638c Binary files /dev/null and b/skins/StyleXP/wmpx/oper.bmp differ diff --git a/skins/StyleXP/wmpx/oper_1.bmp b/skins/StyleXP/wmpx/oper_1.bmp new file mode 100644 index 0000000000..b424e98a02 Binary files /dev/null and b/skins/StyleXP/wmpx/oper_1.bmp differ diff --git a/skins/StyleXP/wmpx/pack_build.bat b/skins/StyleXP/wmpx/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/StyleXP/wmpx/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/StyleXP/wmpx/skn_build.bat b/skins/StyleXP/wmpx/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/StyleXP/wmpx/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/Syllable/Syllable.skn b/skins/Syllable/Syllable.skn new file mode 100644 index 0000000000..58564aa771 Binary files /dev/null and b/skins/Syllable/Syllable.skn differ diff --git a/skins/USSR/Active/base.bmp b/skins/USSR/Active/base.bmp new file mode 100644 index 0000000000..82a4b09c7d Binary files /dev/null and b/skins/USSR/Active/base.bmp differ diff --git a/skins/USSR/Active/left.bmp b/skins/USSR/Active/left.bmp new file mode 100644 index 0000000000..ee904a95a1 Binary files /dev/null and b/skins/USSR/Active/left.bmp differ diff --git a/skins/USSR/Active/oper.bmp b/skins/USSR/Active/oper.bmp new file mode 100644 index 0000000000..7559c1957c Binary files /dev/null and b/skins/USSR/Active/oper.bmp differ diff --git a/skins/USSR/Inactive/base.bmp b/skins/USSR/Inactive/base.bmp new file mode 100644 index 0000000000..aebe0b0a8d Binary files /dev/null and b/skins/USSR/Inactive/base.bmp differ diff --git a/skins/USSR/Inactive/left.bmp b/skins/USSR/Inactive/left.bmp new file mode 100644 index 0000000000..dbf9fb5246 Binary files /dev/null and b/skins/USSR/Inactive/left.bmp differ diff --git a/skins/USSR/Inactive/oper.bmp b/skins/USSR/Inactive/oper.bmp new file mode 100644 index 0000000000..b576242cb3 Binary files /dev/null and b/skins/USSR/Inactive/oper.bmp differ diff --git a/skins/USSR/Screenshot.png b/skins/USSR/Screenshot.png new file mode 100644 index 0000000000..b48cf05d9f Binary files /dev/null and b/skins/USSR/Screenshot.png differ diff --git a/skins/USSR/USSR.asm b/skins/USSR/USSR.asm new file mode 100644 index 0000000000..1d82b53540 --- /dev/null +++ b/skins/USSR/USSR.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x6E0000:\ ; border inner color + bouter=0x6E0000:\ ; border outer color + bframe=0xFF0000],\ ; border frame color + colors inactive = [binner=0x730000:\ ; border inner color + bouter=0x730000:\ ; border outer color + bframe=0xAF5050],\ ; border frame color + dtp = 'USSR.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-28:4][22:16],\ ; buttons coordinates + minimize = [-51:4][21:16] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/USSR/USSR.dtp b/skins/USSR/USSR.dtp new file mode 100644 index 0000000000..758b699519 Binary files /dev/null and b/skins/USSR/USSR.dtp differ diff --git a/skins/USSR/me_skin.inc b/skins/USSR/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/USSR/me_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/USSR_2/1.USSR_2/1.USSR_2.asm b/skins/USSR_2/1.USSR_2/1.USSR_2.asm new file mode 100644 index 0000000000..766a0da66f --- /dev/null +++ b/skins/USSR_2/1.USSR_2/1.USSR_2.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x6F0000:\ ; border inner color + bouter=0x6F0000:\ ; border outer color + bframe=0x880000],\ ; border frame color + colors inactive = [binner=0x6F0000:\ ; border inner color + bouter=0x6F0000:\ ; border outer color + bframe=0x885050],\ ; border frame color + dtp = 'RED.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-26:3][17:17],\ ; buttons coordinates + minimize = [-46:3][17:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/USSR_2/1.USSR_2/Active/base.bmp b/skins/USSR_2/1.USSR_2/Active/base.bmp new file mode 100644 index 0000000000..e367cd5c95 Binary files /dev/null and b/skins/USSR_2/1.USSR_2/Active/base.bmp differ diff --git a/skins/USSR_2/1.USSR_2/Active/left.bmp b/skins/USSR_2/1.USSR_2/Active/left.bmp new file mode 100644 index 0000000000..9e3b09fa98 Binary files /dev/null and b/skins/USSR_2/1.USSR_2/Active/left.bmp differ diff --git a/skins/USSR_2/1.USSR_2/Active/oper.bmp b/skins/USSR_2/1.USSR_2/Active/oper.bmp new file mode 100644 index 0000000000..a1ae933a5f Binary files /dev/null and b/skins/USSR_2/1.USSR_2/Active/oper.bmp differ diff --git a/skins/USSR_2/1.USSR_2/Inactive/base.bmp b/skins/USSR_2/1.USSR_2/Inactive/base.bmp new file mode 100644 index 0000000000..28684d373d Binary files /dev/null and b/skins/USSR_2/1.USSR_2/Inactive/base.bmp differ diff --git a/skins/USSR_2/1.USSR_2/Inactive/left.bmp b/skins/USSR_2/1.USSR_2/Inactive/left.bmp new file mode 100644 index 0000000000..7545a45d76 Binary files /dev/null and b/skins/USSR_2/1.USSR_2/Inactive/left.bmp differ diff --git a/skins/USSR_2/1.USSR_2/Inactive/oper.bmp b/skins/USSR_2/1.USSR_2/Inactive/oper.bmp new file mode 100644 index 0000000000..21e8a75349 Binary files /dev/null and b/skins/USSR_2/1.USSR_2/Inactive/oper.bmp differ diff --git a/skins/USSR_2/1.USSR_2/RED.DTP b/skins/USSR_2/1.USSR_2/RED.DTP new file mode 100644 index 0000000000..09d81075d7 Binary files /dev/null and b/skins/USSR_2/1.USSR_2/RED.DTP differ diff --git a/skins/USSR_2/1.USSR_2/me_skin.inc b/skins/USSR_2/1.USSR_2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/USSR_2/1.USSR_2/me_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/USSR_2/2.USSR_2/2.USSR_2.asm b/skins/USSR_2/2.USSR_2/2.USSR_2.asm new file mode 100644 index 0000000000..766a0da66f --- /dev/null +++ b/skins/USSR_2/2.USSR_2/2.USSR_2.asm @@ -0,0 +1,35 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x6F0000:\ ; border inner color + bouter=0x6F0000:\ ; border outer color + bframe=0x880000],\ ; border frame color + colors inactive = [binner=0x6F0000:\ ; border inner color + bouter=0x6F0000:\ ; border outer color + bframe=0x885050],\ ; border frame color + dtp = 'RED.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-26:3][17:17],\ ; buttons coordinates + minimize = [-46:3][17:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; \ No newline at end of file diff --git a/skins/USSR_2/2.USSR_2/Active/base.bmp b/skins/USSR_2/2.USSR_2/Active/base.bmp new file mode 100644 index 0000000000..e367cd5c95 Binary files /dev/null and b/skins/USSR_2/2.USSR_2/Active/base.bmp differ diff --git a/skins/USSR_2/2.USSR_2/Active/left.bmp b/skins/USSR_2/2.USSR_2/Active/left.bmp new file mode 100644 index 0000000000..9e3b09fa98 Binary files /dev/null and b/skins/USSR_2/2.USSR_2/Active/left.bmp differ diff --git a/skins/USSR_2/2.USSR_2/Active/oper.bmp b/skins/USSR_2/2.USSR_2/Active/oper.bmp new file mode 100644 index 0000000000..fbbec20629 Binary files /dev/null and b/skins/USSR_2/2.USSR_2/Active/oper.bmp differ diff --git a/skins/USSR_2/2.USSR_2/Inactive/base.bmp b/skins/USSR_2/2.USSR_2/Inactive/base.bmp new file mode 100644 index 0000000000..28684d373d Binary files /dev/null and b/skins/USSR_2/2.USSR_2/Inactive/base.bmp differ diff --git a/skins/USSR_2/2.USSR_2/Inactive/left.bmp b/skins/USSR_2/2.USSR_2/Inactive/left.bmp new file mode 100644 index 0000000000..7545a45d76 Binary files /dev/null and b/skins/USSR_2/2.USSR_2/Inactive/left.bmp differ diff --git a/skins/USSR_2/2.USSR_2/Inactive/oper.bmp b/skins/USSR_2/2.USSR_2/Inactive/oper.bmp new file mode 100644 index 0000000000..6e6b09b984 Binary files /dev/null and b/skins/USSR_2/2.USSR_2/Inactive/oper.bmp differ diff --git a/skins/USSR_2/2.USSR_2/RED.DTP b/skins/USSR_2/2.USSR_2/RED.DTP new file mode 100644 index 0000000000..09d81075d7 Binary files /dev/null and b/skins/USSR_2/2.USSR_2/RED.DTP differ diff --git a/skins/USSR_2/2.USSR_2/me_skin.inc b/skins/USSR_2/2.USSR_2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/USSR_2/2.USSR_2/me_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/USSR_2/background.jpg b/skins/USSR_2/background.jpg new file mode 100644 index 0000000000..215774348a Binary files /dev/null and b/skins/USSR_2/background.jpg differ diff --git a/skins/USSR_2/screenshot.png b/skins/USSR_2/screenshot.png new file mode 100644 index 0000000000..e32184148d Binary files /dev/null and b/skins/USSR_2/screenshot.png differ diff --git a/skins/Victory_1945/Active/base.bmp b/skins/Victory_1945/Active/base.bmp new file mode 100644 index 0000000000..b8fb54edc6 Binary files /dev/null and b/skins/Victory_1945/Active/base.bmp differ diff --git a/skins/Victory_1945/Active/left.bmp b/skins/Victory_1945/Active/left.bmp new file mode 100644 index 0000000000..58bf13e25d Binary files /dev/null and b/skins/Victory_1945/Active/left.bmp differ diff --git a/skins/Victory_1945/Active/oper.bmp b/skins/Victory_1945/Active/oper.bmp new file mode 100644 index 0000000000..2f568ae40c Binary files /dev/null and b/skins/Victory_1945/Active/oper.bmp differ diff --git a/skins/Victory_1945/Inactive/base.bmp b/skins/Victory_1945/Inactive/base.bmp new file mode 100644 index 0000000000..b8fb54edc6 Binary files /dev/null and b/skins/Victory_1945/Inactive/base.bmp differ diff --git a/skins/Victory_1945/Inactive/left.bmp b/skins/Victory_1945/Inactive/left.bmp new file mode 100644 index 0000000000..58bf13e25d Binary files /dev/null and b/skins/Victory_1945/Inactive/left.bmp differ diff --git a/skins/Victory_1945/Inactive/oper.bmp b/skins/Victory_1945/Inactive/oper.bmp new file mode 100644 index 0000000000..efb63abf92 Binary files /dev/null and b/skins/Victory_1945/Inactive/oper.bmp differ diff --git a/skins/Victory_1945/Victory_1945.DTP b/skins/Victory_1945/Victory_1945.DTP new file mode 100644 index 0000000000..94b5d6bd36 Binary files /dev/null and b/skins/Victory_1945/Victory_1945.DTP differ diff --git a/skins/Victory_1945/Victory_1945.asm b/skins/Victory_1945/Victory_1945.asm new file mode 100644 index 0000000000..63af254238 --- /dev/null +++ b/skins/Victory_1945/Victory_1945.asm @@ -0,0 +1,38 @@ +; Çäåëàíî êî äíþ ïîáåäû 9_ìàÿ, â ïàìÿòü î âñåõ òåõ, êòî îñâîáàæäàë Ðîññèþ îò ôàøèñòîâ. +; (Äàòà ñîçäàíèÿ - 3_ìàÿ_2009ã) + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xEA5E00],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xEA5E00],\ ; border frame color + dtp = 'Victory_1945.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-32:0][24:18],\ ; buttons coordinates + minimize = [-54:0][23:18] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/Victory_1945/me_skin.inc b/skins/Victory_1945/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Victory_1945/me_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/Victory_1945/screenshot.png b/skins/Victory_1945/screenshot.png new file mode 100644 index 0000000000..e4425467dd Binary files /dev/null and b/skins/Victory_1945/screenshot.png differ diff --git a/skins/WIN311/Win311.DTP b/skins/WIN311/Win311.DTP new file mode 100644 index 0000000000..d5cc52c6fd Binary files /dev/null and b/skins/WIN311/Win311.DTP differ diff --git a/skins/WIN311/Win311.skn b/skins/WIN311/Win311.skn new file mode 100644 index 0000000000..1972ca576f Binary files /dev/null and b/skins/WIN311/Win311.skn differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/base.bmp new file mode 100644 index 0000000000..b440274a7f Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/left.bmp new file mode 100644 index 0000000000..146f68adf8 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/oper.bmp new file mode 100644 index 0000000000..3ea1957742 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_black)/GRAY.DTP new file mode 100644 index 0000000000..0c8da72a45 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/base.bmp new file mode 100644 index 0000000000..b3dea0c0c5 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/left.bmp new file mode 100644 index 0000000000..d85a56e7e4 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/oper.bmp new file mode 100644 index 0000000000..53f0274d33 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_black)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_black)/WinXP_(Classic_black).asm b/skins/WindowsXP/Classic/WinXP (Classic_black)/WinXP_(Classic_black).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_black)/WinXP_(Classic_black).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_black)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_black)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_black)/me_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/WindowsXP/Classic/WinXP (Classic_blue)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/base.bmp new file mode 100644 index 0000000000..57a9f96058 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/left.bmp new file mode 100644 index 0000000000..afe081c0bb Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/oper.bmp new file mode 100644 index 0000000000..086624c59a Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_blue)/GRAY.DTP new file mode 100644 index 0000000000..0c8da72a45 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/base.bmp new file mode 100644 index 0000000000..a84ae5a501 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/left.bmp new file mode 100644 index 0000000000..aa763ea92a Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/oper.bmp new file mode 100644 index 0000000000..a41262cc39 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_blue)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_blue)/WinXP_(Classic_blue).asm b/skins/WindowsXP/Classic/WinXP (Classic_blue)/WinXP_(Classic_blue).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_blue)/WinXP_(Classic_blue).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_blue)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_blue)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_blue)/me_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/WindowsXP/Classic/WinXP (Classic_green)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/base.bmp new file mode 100644 index 0000000000..6eacbc4182 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/left.bmp new file mode 100644 index 0000000000..e37e8ed916 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/oper.bmp new file mode 100644 index 0000000000..238c78fa91 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_green)/GRAY.DTP new file mode 100644 index 0000000000..3668c24016 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/base.bmp new file mode 100644 index 0000000000..2700d5982a Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/left.bmp new file mode 100644 index 0000000000..49b7542ce0 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/oper.bmp new file mode 100644 index 0000000000..5a67523e31 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_green)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_green)/WinXP_(Classic_green).asm b/skins/WindowsXP/Classic/WinXP (Classic_green)/WinXP_(Classic_green).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_green)/WinXP_(Classic_green).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_green)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_green)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_green)/me_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/WindowsXP/Classic/WinXP (Classic_orange)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/base.bmp new file mode 100644 index 0000000000..e5808371c5 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/left.bmp new file mode 100644 index 0000000000..3e60d4dbf6 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/oper.bmp new file mode 100644 index 0000000000..9563de29d0 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_orange)/GRAY.DTP new file mode 100644 index 0000000000..0c8da72a45 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/base.bmp new file mode 100644 index 0000000000..61164bb6ef Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/left.bmp new file mode 100644 index 0000000000..7cc7474ec8 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/oper.bmp new file mode 100644 index 0000000000..2b0fc0db81 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_orange)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_orange)/WinXP_(Classic_orange).asm b/skins/WindowsXP/Classic/WinXP (Classic_orange)/WinXP_(Classic_orange).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_orange)/WinXP_(Classic_orange).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_orange)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_orange)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_orange)/me_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/WindowsXP/Classic/WinXP (Classic_pink)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/base.bmp new file mode 100644 index 0000000000..f7c85b30d4 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/left.bmp new file mode 100644 index 0000000000..417a84074f Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/oper.bmp new file mode 100644 index 0000000000..54fe652ef7 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_pink)/GRAY.DTP new file mode 100644 index 0000000000..0c8da72a45 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/base.bmp new file mode 100644 index 0000000000..b5a7278d26 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/left.bmp new file mode 100644 index 0000000000..3f060c1d34 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/oper.bmp new file mode 100644 index 0000000000..3d8d1152a7 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_pink)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_pink)/WinXP_(Classic_pink).asm b/skins/WindowsXP/Classic/WinXP (Classic_pink)/WinXP_(Classic_pink).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_pink)/WinXP_(Classic_pink).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_pink)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_pink)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_pink)/me_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/WindowsXP/Classic/WinXP (Classic_red)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/base.bmp new file mode 100644 index 0000000000..205407ecbf Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/left.bmp new file mode 100644 index 0000000000..e087f65d49 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/oper.bmp new file mode 100644 index 0000000000..1620da1cda Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_red)/GRAY.DTP new file mode 100644 index 0000000000..0c8da72a45 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/base.bmp new file mode 100644 index 0000000000..7630466ee9 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/left.bmp new file mode 100644 index 0000000000..cd86d1a6e0 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/oper.bmp new file mode 100644 index 0000000000..30d0a277d4 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_red)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_red)/WinXP_(Classic_red).asm b/skins/WindowsXP/Classic/WinXP (Classic_red)/WinXP_(Classic_red).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_red)/WinXP_(Classic_red).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_red)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_red)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_red)/me_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/WindowsXP/Classic/WinXP (Classic_violet)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/base.bmp new file mode 100644 index 0000000000..f2e38de986 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/left.bmp new file mode 100644 index 0000000000..a445c02327 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/oper.bmp new file mode 100644 index 0000000000..da021fbb6e Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_violet)/GRAY.DTP new file mode 100644 index 0000000000..0c8da72a45 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/base.bmp new file mode 100644 index 0000000000..399a2b5910 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/left.bmp new file mode 100644 index 0000000000..9b37c8ce70 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/oper.bmp new file mode 100644 index 0000000000..08661bc173 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_violet)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_violet)/WinXP_(Classic_violet).asm b/skins/WindowsXP/Classic/WinXP (Classic_violet)/WinXP_(Classic_violet).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_violet)/WinXP_(Classic_violet).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_violet)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_violet)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_violet)/me_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/WindowsXP/Classic/WinXP (Classic_yellow)/Active/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/base.bmp new file mode 100644 index 0000000000..8bb180ccd3 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/left.bmp new file mode 100644 index 0000000000..94e6164d21 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/oper.bmp new file mode 100644 index 0000000000..2116615624 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/GRAY.DTP b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/GRAY.DTP new file mode 100644 index 0000000000..3668c24016 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/GRAY.DTP differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/base.bmp b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/base.bmp new file mode 100644 index 0000000000..41ab52e4f3 Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/left.bmp b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/left.bmp new file mode 100644 index 0000000000..7dbe2c1e9e Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/oper.bmp b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/oper.bmp new file mode 100644 index 0000000000..e74dc452eb Binary files /dev/null and b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Classic/WinXP (Classic_yellow)/WinXP_(Classic_yellow).asm b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/WinXP_(Classic_yellow).asm new file mode 100644 index 0000000000..a0ea23ab27 --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/WinXP_(Classic_yellow).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + colors inactive = [binner=0x808080:\ ; border inner color + bouter=0x808080:\ ; border outer color + bframe=0x999999],\ ; border frame color + dtp = 'GRAY.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:6][15:13],\ ; buttons coordinates + minimize = [-39:6][15:13] ; [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/WindowsXP/Classic/WinXP (Classic_yellow)/me_skin.inc b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Classic/WinXP (Classic_yellow)/me_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/WindowsXP/Classic/WnXP Classic.png b/skins/WindowsXP/Classic/WnXP Classic.png new file mode 100644 index 0000000000..3668fdfd52 Binary files /dev/null and b/skins/WindowsXP/Classic/WnXP Classic.png differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/Active/base.bmp b/skins/WindowsXP/Standard/WinXP (blue)/Active/base.bmp new file mode 100644 index 0000000000..871169b1c6 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/Active/base.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/Active/left.bmp b/skins/WindowsXP/Standard/WinXP (blue)/Active/left.bmp new file mode 100644 index 0000000000..38f41ecc94 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/Active/left.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/Active/oper.bmp b/skins/WindowsXP/Standard/WinXP (blue)/Active/oper.bmp new file mode 100644 index 0000000000..49ec93df63 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/Inactive/base.bmp b/skins/WindowsXP/Standard/WinXP (blue)/Inactive/base.bmp new file mode 100644 index 0000000000..608a6b137d Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/Inactive/left.bmp b/skins/WindowsXP/Standard/WinXP (blue)/Inactive/left.bmp new file mode 100644 index 0000000000..4a59675748 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/Inactive/oper.bmp b/skins/WindowsXP/Standard/WinXP (blue)/Inactive/oper.bmp new file mode 100644 index 0000000000..7de78e9632 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/WinXP (blue).png b/skins/WindowsXP/Standard/WinXP (blue)/WinXP (blue).png new file mode 100644 index 0000000000..561b575cd4 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/WinXP (blue).png differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/WinXP_(blue).asm b/skins/WindowsXP/Standard/WinXP (blue)/WinXP_(blue).asm new file mode 100644 index 0000000000..23523824a3 --- /dev/null +++ b/skins/WindowsXP/Standard/WinXP (blue)/WinXP_(blue).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x0041CE:\ ; border inner color + bouter=0x001389:\ ; border outer color + bframe=0x0064FD],\ ; border frame color + colors inactive = [binner=0x50679E:\ ; border inner color + bouter=0x505789:\ ; border outer color + bframe=0x5073AE],\ ; border frame color + dtp = 'WinXP_(blue).dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:5][17:17],\ ; buttons coordinates + minimize = [-41:5][17:17] ; [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/WindowsXP/Standard/WinXP (blue)/WinXP_(blue).dtp b/skins/WindowsXP/Standard/WinXP (blue)/WinXP_(blue).dtp new file mode 100644 index 0000000000..5e9991bf31 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (blue)/WinXP_(blue).dtp differ diff --git a/skins/WindowsXP/Standard/WinXP (blue)/me_skin.inc b/skins/WindowsXP/Standard/WinXP (blue)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Standard/WinXP (blue)/me_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/WindowsXP/Standard/WinXP (olive_green)/Active/base.bmp b/skins/WindowsXP/Standard/WinXP (olive_green)/Active/base.bmp new file mode 100644 index 0000000000..4dcbaf5b1e Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/Active/base.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/Active/left.bmp b/skins/WindowsXP/Standard/WinXP (olive_green)/Active/left.bmp new file mode 100644 index 0000000000..570f036836 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/Active/left.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/Active/oper.bmp b/skins/WindowsXP/Standard/WinXP (olive_green)/Active/oper.bmp new file mode 100644 index 0000000000..b63d56834f Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/base.bmp b/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/base.bmp new file mode 100644 index 0000000000..1784aa0588 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/left.bmp b/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/left.bmp new file mode 100644 index 0000000000..7f531a46ca Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/oper.bmp b/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/oper.bmp new file mode 100644 index 0000000000..ee111db9fd Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP (olive_green).png b/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP (olive_green).png new file mode 100644 index 0000000000..3a94bcb86c Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP (olive_green).png differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP_(olive_green).asm b/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP_(olive_green).asm new file mode 100644 index 0000000000..19dead65a7 --- /dev/null +++ b/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP_(olive_green).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x95A767:\ ; border inner color + bouter=0x9DB17C:\ ; border outer color + bframe=0xBBCA8F],\ ; border frame color + colors inactive = [binner=0x8A9174:\ ; border inner color + bouter=0x8E947C:\ ; border outer color + bframe=0x989C89],\ ; border frame color + dtp = 'WinXP_(olive_green).dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:5][17:17],\ ; buttons coordinates + minimize = [-40:5][17:17] ; [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/WindowsXP/Standard/WinXP (olive_green)/WinXP_(olive_green).dtp b/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP_(olive_green).dtp new file mode 100644 index 0000000000..48136ebd57 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (olive_green)/WinXP_(olive_green).dtp differ diff --git a/skins/WindowsXP/Standard/WinXP (olive_green)/me_skin.inc b/skins/WindowsXP/Standard/WinXP (olive_green)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Standard/WinXP (olive_green)/me_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/WindowsXP/Standard/WinXP (silver)/Active/base.bmp b/skins/WindowsXP/Standard/WinXP (silver)/Active/base.bmp new file mode 100644 index 0000000000..0468f9061c Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/Active/base.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/Active/left.bmp b/skins/WindowsXP/Standard/WinXP (silver)/Active/left.bmp new file mode 100644 index 0000000000..81007e1220 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/Active/left.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/Active/oper.bmp b/skins/WindowsXP/Standard/WinXP (silver)/Active/oper.bmp new file mode 100644 index 0000000000..ba8aed0376 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/Active/oper.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/Inactive/base.bmp b/skins/WindowsXP/Standard/WinXP (silver)/Inactive/base.bmp new file mode 100644 index 0000000000..ebf0cb05aa Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/Inactive/base.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/Inactive/left.bmp b/skins/WindowsXP/Standard/WinXP (silver)/Inactive/left.bmp new file mode 100644 index 0000000000..b1db9354eb Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/Inactive/left.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/Inactive/oper.bmp b/skins/WindowsXP/Standard/WinXP (silver)/Inactive/oper.bmp new file mode 100644 index 0000000000..d1362fe9ca Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/Inactive/oper.bmp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/WinXP (silver).png b/skins/WindowsXP/Standard/WinXP (silver)/WinXP (silver).png new file mode 100644 index 0000000000..714bb530af Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/WinXP (silver).png differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/WinXP_(silver).asm b/skins/WindowsXP/Standard/WinXP (silver)/WinXP_(silver).asm new file mode 100644 index 0000000000..e25c3e4f73 --- /dev/null +++ b/skins/WindowsXP/Standard/WinXP (silver)/WinXP_(silver).asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x777893:\ ; border inner color + bouter=0x777893:\ ; border outer color + bframe=0xF5F4F3],\ ; border frame color + colors inactive = [binner=0x777889:\ ; border inner color + bouter=0x777889:\ ; border outer color + bframe=0xADACAB],\ ; border frame color + dtp = 'WinXP_(silver).dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:5][17:16],\ ; buttons coordinates + minimize = [-41:5][17:16] ; [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/WindowsXP/Standard/WinXP (silver)/WinXP_(silver).dtp b/skins/WindowsXP/Standard/WinXP (silver)/WinXP_(silver).dtp new file mode 100644 index 0000000000..ab7d247760 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP (silver)/WinXP_(silver).dtp differ diff --git a/skins/WindowsXP/Standard/WinXP (silver)/me_skin.inc b/skins/WindowsXP/Standard/WinXP (silver)/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/WindowsXP/Standard/WinXP (silver)/me_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/WindowsXP/Standard/WinXP Standard.png b/skins/WindowsXP/Standard/WinXP Standard.png new file mode 100644 index 0000000000..df71535396 Binary files /dev/null and b/skins/WindowsXP/Standard/WinXP Standard.png differ diff --git a/skins/Yeah skin/build.bat b/skins/Yeah skin/build.bat new file mode 100644 index 0000000000..2131bf7f71 --- /dev/null +++ b/skins/Yeah skin/build.bat @@ -0,0 +1,3 @@ +fasm default.asm default.skn +kpack default.skn +pause \ No newline at end of file diff --git a/skins/Yeah skin/center1.bmp b/skins/Yeah skin/center1.bmp new file mode 100644 index 0000000000..6011868ee0 Binary files /dev/null and b/skins/Yeah skin/center1.bmp differ diff --git a/skins/Yeah skin/center2.bmp b/skins/Yeah skin/center2.bmp new file mode 100644 index 0000000000..97a572a8ee Binary files /dev/null and b/skins/Yeah skin/center2.bmp differ diff --git a/skins/Yeah skin/default.asm b/skins/Yeah skin/default.asm new file mode 100644 index 0000000000..20a312c610 --- /dev/null +++ b/skins/Yeah skin/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_center1.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xE1E1E1:\ ; border inner color + bouter=0x646464:\ ; border outer color + bframe=0xE1E1E1],\ ; border frame color + colors inactive = [binner=0xE1E1E1:\ ; border inner color + bouter=0xD4D4D4:\ ; border outer color + bframe=0xE1E1E1],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:0][26:16],\ ; buttons coordinates + minimize = [-55:0][26:16] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left1,\ ; skin bitmaps pointers + left inactive = bmp_left2,\ + oper active = bmp_right1,\ + oper inactive = bmp_right2,\ + base active = bmp_center1,\ + base inactive = bmp_center2 + +BITMAP bmp_left1, 'left1.bmp' ; skin bitmaps +BITMAP bmp_left2, 'left2.bmp' +BITMAP bmp_right1, 'right1.bmp' +BITMAP bmp_right2, 'right2.bmp' +BITMAP bmp_center1,'center1.bmp' +BITMAP bmp_center2,'center2.bmp' diff --git a/skins/Yeah skin/default.dtp b/skins/Yeah skin/default.dtp new file mode 100644 index 0000000000..5d4c2d36bc Binary files /dev/null and b/skins/Yeah skin/default.dtp differ diff --git a/skins/Yeah skin/default.dtp.asm b/skins/Yeah skin/default.dtp.asm new file mode 100644 index 0000000000..a182bb44b3 --- /dev/null +++ b/skins/Yeah skin/default.dtp.asm @@ -0,0 +1,14 @@ +struc system_colors + { + .frame dd 0x000000 + .grab dd 0x006393 + .grab_button dd 0xB1B1B1 + .grab_button_text dd 0x000000 + .grab_text dd 0xFFFFFF + .work dd 0xE8E8E8 + .work_button dd 0xB1B1B1 + .work_button_text dd 0x000000 + .work_text dd 0x000000 + .work_graph dd 0x000000 + } +struct system_colors \ No newline at end of file diff --git a/skins/Yeah skin/default2.dtp b/skins/Yeah skin/default2.dtp new file mode 100644 index 0000000000..41fc9c1f1e Binary files /dev/null and b/skins/Yeah skin/default2.dtp differ diff --git a/skins/Yeah skin/left1.bmp b/skins/Yeah skin/left1.bmp new file mode 100644 index 0000000000..c1c6813ab0 Binary files /dev/null and b/skins/Yeah skin/left1.bmp differ diff --git a/skins/Yeah skin/left2.bmp b/skins/Yeah skin/left2.bmp new file mode 100644 index 0000000000..2794f2003a Binary files /dev/null and b/skins/Yeah skin/left2.bmp differ diff --git a/skins/Yeah skin/me_skin.inc b/skins/Yeah skin/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/Yeah skin/me_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/Yeah skin/right1.bmp b/skins/Yeah skin/right1.bmp new file mode 100644 index 0000000000..cb9f403d8c Binary files /dev/null and b/skins/Yeah skin/right1.bmp differ diff --git a/skins/Yeah skin/right2.bmp b/skins/Yeah skin/right2.bmp new file mode 100644 index 0000000000..a2f6523ac4 Binary files /dev/null and b/skins/Yeah skin/right2.bmp differ diff --git a/skins/bat/Active/base.bmp b/skins/bat/Active/base.bmp new file mode 100644 index 0000000000..b6f93b7d89 Binary files /dev/null and b/skins/bat/Active/base.bmp differ diff --git a/skins/bat/Active/left.bmp b/skins/bat/Active/left.bmp new file mode 100644 index 0000000000..d254571da9 Binary files /dev/null and b/skins/bat/Active/left.bmp differ diff --git a/skins/bat/Active/oper.bmp b/skins/bat/Active/oper.bmp new file mode 100644 index 0000000000..716018a85e Binary files /dev/null and b/skins/bat/Active/oper.bmp differ diff --git a/skins/bat/Inactive/base.bmp b/skins/bat/Inactive/base.bmp new file mode 100644 index 0000000000..a9123cf2b6 Binary files /dev/null and b/skins/bat/Inactive/base.bmp differ diff --git a/skins/bat/Inactive/left.bmp b/skins/bat/Inactive/left.bmp new file mode 100644 index 0000000000..0fbce0308a Binary files /dev/null and b/skins/bat/Inactive/left.bmp differ diff --git a/skins/bat/Inactive/oper.bmp b/skins/bat/Inactive/oper.bmp new file mode 100644 index 0000000000..9677e79e8d Binary files /dev/null and b/skins/bat/Inactive/oper.bmp differ diff --git a/skins/bat/build.bat b/skins/bat/build.bat new file mode 100644 index 0000000000..ac54f13566 --- /dev/null +++ b/skins/bat/build.bat @@ -0,0 +1,2 @@ +@fasm default.asm default.skn +@pause \ No newline at end of file diff --git a/skins/bat/colors.dtp b/skins/bat/colors.dtp new file mode 100644 index 0000000000..f5a3e9b08c Binary files /dev/null and b/skins/bat/colors.dtp differ diff --git a/skins/bat/default.asm b/skins/bat/default.asm new file mode 100644 index 0000000000..2a7646cfb9 --- /dev/null +++ b/skins/bat/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x7a047a:\ ; border inner color + bouter=0x7a047a:\ ; border outer color + bframe=0x7a047a],\ ; border frame color + colors inactive = [binner=0x3d043d:\ ; border inner color + bouter=0x3d043d:\ ; border outer color + bframe=0x3d043d],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][18:18],\ ; buttons coordinates + minimize = [-40:3][18:18] ; [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/bat/default.skn b/skins/bat/default.skn new file mode 100644 index 0000000000..3e25d8476c Binary files /dev/null and b/skins/bat/default.skn differ diff --git a/skins/bat/me_skin.inc b/skins/bat/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/bat/me_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/black-glass/black-glass/base.bmp b/skins/black-glass/black-glass/base.bmp new file mode 100644 index 0000000000..bae16f9b93 Binary files /dev/null and b/skins/black-glass/black-glass/base.bmp differ diff --git a/skins/black-glass/black-glass/base_1.bmp b/skins/black-glass/black-glass/base_1.bmp new file mode 100644 index 0000000000..08c5ba6162 Binary files /dev/null and b/skins/black-glass/black-glass/base_1.bmp differ diff --git a/skins/black-glass/black-glass/black-glass.ASM b/skins/black-glass/black-glass/black-glass.ASM new file mode 100644 index 0000000000..2a91fa5d0d --- /dev/null +++ b/skins/black-glass/black-glass/black-glass.ASM @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'black-glass.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x606060:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x000000],\ ; border frame color + colors inactive = [binner=0x606060:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x000000],\ ; border frame color + dtp = 'black-glass.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:4][18:18],\ ; buttons coordinates + minimize = [-40:4][18:18] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/black-glass/black-glass/black-glass.dtp b/skins/black-glass/black-glass/black-glass.dtp new file mode 100644 index 0000000000..28c66d06b2 Binary files /dev/null and b/skins/black-glass/black-glass/black-glass.dtp differ diff --git a/skins/black-glass/black-glass/black-glass.inc b/skins/black-glass/black-glass/black-glass.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/black-glass/black-glass/black-glass.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/black-glass/black-glass/left.bmp b/skins/black-glass/black-glass/left.bmp new file mode 100644 index 0000000000..5278a89387 Binary files /dev/null and b/skins/black-glass/black-glass/left.bmp differ diff --git a/skins/black-glass/black-glass/left_1.bmp b/skins/black-glass/black-glass/left_1.bmp new file mode 100644 index 0000000000..9fad16cc6a Binary files /dev/null and b/skins/black-glass/black-glass/left_1.bmp differ diff --git a/skins/black-glass/black-glass/oper.bmp b/skins/black-glass/black-glass/oper.bmp new file mode 100644 index 0000000000..0297bfad36 Binary files /dev/null and b/skins/black-glass/black-glass/oper.bmp differ diff --git a/skins/black-glass/black-glass/oper_1.bmp b/skins/black-glass/black-glass/oper_1.bmp new file mode 100644 index 0000000000..a505dd9d70 Binary files /dev/null and b/skins/black-glass/black-glass/oper_1.bmp differ diff --git a/skins/black-glass/black-glass_light/base.bmp b/skins/black-glass/black-glass_light/base.bmp new file mode 100644 index 0000000000..bae16f9b93 Binary files /dev/null and b/skins/black-glass/black-glass_light/base.bmp differ diff --git a/skins/black-glass/black-glass_light/base_1.bmp b/skins/black-glass/black-glass_light/base_1.bmp new file mode 100644 index 0000000000..08c5ba6162 Binary files /dev/null and b/skins/black-glass/black-glass_light/base_1.bmp differ diff --git a/skins/black-glass/black-glass_light/black-glass.inc b/skins/black-glass/black-glass_light/black-glass.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/black-glass/black-glass_light/black-glass.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/black-glass/black-glass_light/black-glass_light.ASM b/skins/black-glass/black-glass_light/black-glass_light.ASM new file mode 100644 index 0000000000..793088e790 --- /dev/null +++ b/skins/black-glass/black-glass_light/black-glass_light.ASM @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'black-glass.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x606060:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x000000],\ ; border frame color + colors inactive = [binner=0x606060:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x000000],\ ; border frame color + dtp = 'black-glass_light.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:4][18:18],\ ; buttons coordinates + minimize = [-40:4][18:18] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/black-glass/black-glass_light/black-glass_light.dtp b/skins/black-glass/black-glass_light/black-glass_light.dtp new file mode 100644 index 0000000000..53ae6896c8 Binary files /dev/null and b/skins/black-glass/black-glass_light/black-glass_light.dtp differ diff --git a/skins/black-glass/black-glass_light/left.bmp b/skins/black-glass/black-glass_light/left.bmp new file mode 100644 index 0000000000..5278a89387 Binary files /dev/null and b/skins/black-glass/black-glass_light/left.bmp differ diff --git a/skins/black-glass/black-glass_light/left_1.bmp b/skins/black-glass/black-glass_light/left_1.bmp new file mode 100644 index 0000000000..9fad16cc6a Binary files /dev/null and b/skins/black-glass/black-glass_light/left_1.bmp differ diff --git a/skins/black-glass/black-glass_light/oper.bmp b/skins/black-glass/black-glass_light/oper.bmp new file mode 100644 index 0000000000..0297bfad36 Binary files /dev/null and b/skins/black-glass/black-glass_light/oper.bmp differ diff --git a/skins/black-glass/black-glass_light/oper_1.bmp b/skins/black-glass/black-glass_light/oper_1.bmp new file mode 100644 index 0000000000..a505dd9d70 Binary files /dev/null and b/skins/black-glass/black-glass_light/oper_1.bmp differ diff --git a/skins/blackskin/base.bmp b/skins/blackskin/base.bmp new file mode 100644 index 0000000000..fbc6c4d031 Binary files /dev/null and b/skins/blackskin/base.bmp differ diff --git a/skins/blackskin/base_1.bmp b/skins/blackskin/base_1.bmp new file mode 100644 index 0000000000..d0ad2cded4 Binary files /dev/null and b/skins/blackskin/base_1.bmp differ diff --git a/skins/blackskin/build.bat b/skins/blackskin/build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/blackskin/build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/blackskin/default.asm b/skins/blackskin/default.asm new file mode 100644 index 0000000000..0db250e535 --- /dev/null +++ b/skins/blackskin/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x363636:\ ; border inner color + bouter=0x363636:\ ; border outer color + bframe=0x000000],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x7D7D7D],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/blackskin/default.dtp b/skins/blackskin/default.dtp new file mode 100644 index 0000000000..b247fde937 Binary files /dev/null and b/skins/blackskin/default.dtp differ diff --git a/skins/blackskin/default.skn b/skins/blackskin/default.skn new file mode 100644 index 0000000000..c21146e661 Binary files /dev/null and b/skins/blackskin/default.skn differ diff --git a/skins/blackskin/left.bmp b/skins/blackskin/left.bmp new file mode 100644 index 0000000000..792e31d819 Binary files /dev/null and b/skins/blackskin/left.bmp differ diff --git a/skins/blackskin/left_1.bmp b/skins/blackskin/left_1.bmp new file mode 100644 index 0000000000..892f09c197 Binary files /dev/null and b/skins/blackskin/left_1.bmp differ diff --git a/skins/blackskin/me_skin.inc b/skins/blackskin/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/blackskin/me_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/blackskin/oper.bmp b/skins/blackskin/oper.bmp new file mode 100644 index 0000000000..9bd793d6bf Binary files /dev/null and b/skins/blackskin/oper.bmp differ diff --git a/skins/blackskin/oper_1.bmp b/skins/blackskin/oper_1.bmp new file mode 100644 index 0000000000..d7ddbc0ecf Binary files /dev/null and b/skins/blackskin/oper_1.bmp differ diff --git a/skins/cherry/base.bmp b/skins/cherry/base.bmp new file mode 100644 index 0000000000..d3da3f2123 Binary files /dev/null and b/skins/cherry/base.bmp differ diff --git a/skins/cherry/base_1.bmp b/skins/cherry/base_1.bmp new file mode 100644 index 0000000000..d3da3f2123 Binary files /dev/null and b/skins/cherry/base_1.bmp differ diff --git a/skins/cherry/default.asm b/skins/cherry/default.asm new file mode 100644 index 0000000000..df95cf9b57 --- /dev/null +++ b/skins/cherry/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:53:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:6][12:11],\ ; buttons coordinates + minimize = [-41:6][12:11] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/cherry/default.dtp b/skins/cherry/default.dtp new file mode 100644 index 0000000000..b8048f8d44 Binary files /dev/null and b/skins/cherry/default.dtp differ diff --git a/skins/cherry/default.dtp.asm b/skins/cherry/default.dtp.asm new file mode 100644 index 0000000000..05d5323f15 --- /dev/null +++ b/skins/cherry/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x525252 +grab_button dd 0x701919 +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xf3f3f3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/cherry/default.skn b/skins/cherry/default.skn new file mode 100644 index 0000000000..01d9fcbc02 Binary files /dev/null and b/skins/cherry/default.skn differ diff --git a/skins/cherry/dtp_build.bat b/skins/cherry/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/cherry/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/cherry/left.bmp b/skins/cherry/left.bmp new file mode 100644 index 0000000000..c0c581148a Binary files /dev/null and b/skins/cherry/left.bmp differ diff --git a/skins/cherry/left_1.bmp b/skins/cherry/left_1.bmp new file mode 100644 index 0000000000..c0c581148a Binary files /dev/null and b/skins/cherry/left_1.bmp differ diff --git a/skins/cherry/me_skin.inc b/skins/cherry/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/cherry/me_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/cherry/oper.bmp b/skins/cherry/oper.bmp new file mode 100644 index 0000000000..d58de63e9b Binary files /dev/null and b/skins/cherry/oper.bmp differ diff --git a/skins/cherry/oper_1.bmp b/skins/cherry/oper_1.bmp new file mode 100644 index 0000000000..5b3f8174ec Binary files /dev/null and b/skins/cherry/oper_1.bmp differ diff --git a/skins/cherry/pack_build.bat b/skins/cherry/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/cherry/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/cherry/skn_build.bat b/skins/cherry/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/cherry/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/dark_night/base.bmp b/skins/dark_night/base.bmp new file mode 100644 index 0000000000..2936a5b369 Binary files /dev/null and b/skins/dark_night/base.bmp differ diff --git a/skins/dark_night/base_1.bmp b/skins/dark_night/base_1.bmp new file mode 100644 index 0000000000..2936a5b369 Binary files /dev/null and b/skins/dark_night/base_1.bmp differ diff --git a/skins/dark_night/default.asm b/skins/dark_night/default.asm new file mode 100644 index 0000000000..6b418f61ac --- /dev/null +++ b/skins/dark_night/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:37:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x2d2d2d],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x2d2d2d],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-16:5][10:10],\ ; buttons coordinates + minimize = [-33:5][10:10] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/dark_night/default.dtp b/skins/dark_night/default.dtp new file mode 100644 index 0000000000..027b727809 Binary files /dev/null and b/skins/dark_night/default.dtp differ diff --git a/skins/dark_night/default.dtp.asm b/skins/dark_night/default.dtp.asm new file mode 100644 index 0000000000..caf299c5df --- /dev/null +++ b/skins/dark_night/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x2d2d2d +grab dd 0x2d2d2d +grab_button dd 0x2d2d2d +grab_button_text dd 0x2dbdf8 +grab_text dd 0x808080 +work dd 0x2d2d2d +work_button dd 0x2d2d2d +work_button_text dd 0x808080 +work_text dd 0x808080 +work_graph dd 0x000000 \ No newline at end of file diff --git a/skins/dark_night/dtp_build.bat b/skins/dark_night/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/dark_night/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/dark_night/left.bmp b/skins/dark_night/left.bmp new file mode 100644 index 0000000000..9424ff144d Binary files /dev/null and b/skins/dark_night/left.bmp differ diff --git a/skins/dark_night/left_1.bmp b/skins/dark_night/left_1.bmp new file mode 100644 index 0000000000..9424ff144d Binary files /dev/null and b/skins/dark_night/left_1.bmp differ diff --git a/skins/dark_night/me_skin.inc b/skins/dark_night/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/dark_night/me_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/dark_night/oper.bmp b/skins/dark_night/oper.bmp new file mode 100644 index 0000000000..63971c108f Binary files /dev/null and b/skins/dark_night/oper.bmp differ diff --git a/skins/dark_night/oper_1.bmp b/skins/dark_night/oper_1.bmp new file mode 100644 index 0000000000..84b4dc15de Binary files /dev/null and b/skins/dark_night/oper_1.bmp differ diff --git a/skins/dark_night/pack_build.bat b/skins/dark_night/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/dark_night/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/dark_night/skn_build.bat b/skins/dark_night/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/dark_night/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/falloutskn/default.asm b/skins/falloutskn/default.asm new file mode 100644 index 0000000000..c276dca871 --- /dev/null +++ b/skins/falloutskn/default.asm @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x595246:\ ; border inner color + bouter=0x595246:\ ; border outer color + bframe=0x343a3e],\ ; border frame color + colors inactive = [binner=0x595246:\ ; border inner color + bouter=0x595246:\ ; border outer color + bframe=0x343a3e],\ ; border frame color + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:16],\ ; buttons coordinates + minimize = [-40:3][17:16] ; [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 ,'fall_left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'fall_oper.bmp' +BITMAP bmp_base ,'fall_base.bmp' +BITMAP bmp_left1,'fall_left.bmp' +BITMAP bmp_oper1,'fall_oper1.bmp' +BITMAP bmp_base1,'fall_base.bmp' diff --git a/skins/falloutskn/default.skn b/skins/falloutskn/default.skn new file mode 100644 index 0000000000..2d822ca541 Binary files /dev/null and b/skins/falloutskn/default.skn differ diff --git a/skins/falloutskn/fall_base.bmp b/skins/falloutskn/fall_base.bmp new file mode 100644 index 0000000000..fdc1e9e534 Binary files /dev/null and b/skins/falloutskn/fall_base.bmp differ diff --git a/skins/falloutskn/fall_left.bmp b/skins/falloutskn/fall_left.bmp new file mode 100644 index 0000000000..d872fe4ef7 Binary files /dev/null and b/skins/falloutskn/fall_left.bmp differ diff --git a/skins/falloutskn/fall_oper.bmp b/skins/falloutskn/fall_oper.bmp new file mode 100644 index 0000000000..e5f64e78e0 Binary files /dev/null and b/skins/falloutskn/fall_oper.bmp differ diff --git a/skins/falloutskn/fall_oper1.bmp b/skins/falloutskn/fall_oper1.bmp new file mode 100644 index 0000000000..22b4a65c5d Binary files /dev/null and b/skins/falloutskn/fall_oper1.bmp differ diff --git a/skins/falloutskn/falloutskn.JPG b/skins/falloutskn/falloutskn.JPG new file mode 100644 index 0000000000..f6d4bbc03e Binary files /dev/null and b/skins/falloutskn/falloutskn.JPG differ diff --git a/skins/falloutskn/falloutskn.txt b/skins/falloutskn/falloutskn.txt new file mode 100644 index 0000000000..cbc8fea04f --- /dev/null +++ b/skins/falloutskn/falloutskn.txt @@ -0,0 +1,5 @@ +falloutskn + + theme for KolibriOS + +Author: G@K \ No newline at end of file diff --git a/skins/falloutskn/me_skin.inc b/skins/falloutskn/me_skin.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/falloutskn/me_skin.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/falloutskn/myblue.dtp b/skins/falloutskn/myblue.dtp new file mode 100644 index 0000000000..9e268cc7a7 Binary files /dev/null and b/skins/falloutskn/myblue.dtp differ diff --git a/skins/gliteskin/gliteskin_deepsky/base.bmp b/skins/gliteskin/gliteskin_deepsky/base.bmp new file mode 100644 index 0000000000..39a9834943 Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/base.bmp differ diff --git a/skins/gliteskin/gliteskin_deepsky/base_1.bmp b/skins/gliteskin/gliteskin_deepsky/base_1.bmp new file mode 100644 index 0000000000..6cccc49e5d Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/base_1.bmp differ diff --git a/skins/gliteskin/gliteskin_deepsky/default.asm b/skins/gliteskin/gliteskin_deepsky/default.asm new file mode 100644 index 0000000000..d3efb5183a --- /dev/null +++ b/skins/gliteskin/gliteskin_deepsky/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:46:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x487cad],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xeae8e3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:17],\ ; buttons coordinates + minimize = [-41:3][17:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gliteskin/gliteskin_deepsky/default.dtp b/skins/gliteskin/gliteskin_deepsky/default.dtp new file mode 100644 index 0000000000..8f6f4e8f5a Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/default.dtp differ diff --git a/skins/gliteskin/gliteskin_deepsky/default.dtp.asm b/skins/gliteskin/gliteskin_deepsky/default.dtp.asm new file mode 100644 index 0000000000..dedf41e6ea --- /dev/null +++ b/skins/gliteskin/gliteskin_deepsky/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x487cad +grab dd 0x83BAEE +grab_button dd 0xf2f0ee +grab_button_text dd 0x3a3a38 +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCCC6BB \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_deepsky/default.skn b/skins/gliteskin/gliteskin_deepsky/default.skn new file mode 100644 index 0000000000..c36d366b63 Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/default.skn differ diff --git a/skins/gliteskin/gliteskin_deepsky/dtp_build.bat b/skins/gliteskin/gliteskin_deepsky/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gliteskin/gliteskin_deepsky/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_deepsky/left.bmp b/skins/gliteskin/gliteskin_deepsky/left.bmp new file mode 100644 index 0000000000..23b81cd735 Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/left.bmp differ diff --git a/skins/gliteskin/gliteskin_deepsky/left_1.bmp b/skins/gliteskin/gliteskin_deepsky/left_1.bmp new file mode 100644 index 0000000000..eb532ed4cf Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/left_1.bmp differ diff --git a/skins/gliteskin/gliteskin_deepsky/me_skin.inc b/skins/gliteskin/gliteskin_deepsky/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gliteskin/gliteskin_deepsky/me_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/gliteskin/gliteskin_deepsky/oper.bmp b/skins/gliteskin/gliteskin_deepsky/oper.bmp new file mode 100644 index 0000000000..e2f47515ac Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/oper.bmp differ diff --git a/skins/gliteskin/gliteskin_deepsky/oper_1.bmp b/skins/gliteskin/gliteskin_deepsky/oper_1.bmp new file mode 100644 index 0000000000..23ff27668e Binary files /dev/null and b/skins/gliteskin/gliteskin_deepsky/oper_1.bmp differ diff --git a/skins/gliteskin/gliteskin_deepsky/pack_build.bat b/skins/gliteskin/gliteskin_deepsky/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gliteskin/gliteskin_deepsky/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gliteskin/gliteskin_deepsky/skn_build.bat b/skins/gliteskin/gliteskin_deepsky/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gliteskin/gliteskin_deepsky/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_glider/base.bmp b/skins/gliteskin/gliteskin_glider/base.bmp new file mode 100644 index 0000000000..8e7d7e30b9 Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/base.bmp differ diff --git a/skins/gliteskin/gliteskin_glider/base_1.bmp b/skins/gliteskin/gliteskin_glider/base_1.bmp new file mode 100644 index 0000000000..6cccc49e5d Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/base_1.bmp differ diff --git a/skins/gliteskin/gliteskin_glider/default.asm b/skins/gliteskin/gliteskin_glider/default.asm new file mode 100644 index 0000000000..58bae48436 --- /dev/null +++ b/skins/gliteskin/gliteskin_glider/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:46:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x5e7186],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xeae8e3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:17],\ ; buttons coordinates + minimize = [-41:3][17:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gliteskin/gliteskin_glider/default.dtp b/skins/gliteskin/gliteskin_glider/default.dtp new file mode 100644 index 0000000000..2d963add42 Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/default.dtp differ diff --git a/skins/gliteskin/gliteskin_glider/default.dtp.asm b/skins/gliteskin/gliteskin_glider/default.dtp.asm new file mode 100644 index 0000000000..59b534e6ce --- /dev/null +++ b/skins/gliteskin/gliteskin_glider/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x5e7186 +grab dd 0x859fbb +grab_button dd 0xf0eeeb +grab_button_text dd 0x3a3a38 +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x9E9A91 \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_glider/default.skn b/skins/gliteskin/gliteskin_glider/default.skn new file mode 100644 index 0000000000..f87f8968cd Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/default.skn differ diff --git a/skins/gliteskin/gliteskin_glider/dtp_build.bat b/skins/gliteskin/gliteskin_glider/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gliteskin/gliteskin_glider/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_glider/left.bmp b/skins/gliteskin/gliteskin_glider/left.bmp new file mode 100644 index 0000000000..28db2fb3c0 Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/left.bmp differ diff --git a/skins/gliteskin/gliteskin_glider/left_1.bmp b/skins/gliteskin/gliteskin_glider/left_1.bmp new file mode 100644 index 0000000000..eb532ed4cf Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/left_1.bmp differ diff --git a/skins/gliteskin/gliteskin_glider/me_skin.inc b/skins/gliteskin/gliteskin_glider/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gliteskin/gliteskin_glider/me_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/gliteskin/gliteskin_glider/oper.bmp b/skins/gliteskin/gliteskin_glider/oper.bmp new file mode 100644 index 0000000000..f5564c8f24 Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/oper.bmp differ diff --git a/skins/gliteskin/gliteskin_glider/oper_1.bmp b/skins/gliteskin/gliteskin_glider/oper_1.bmp new file mode 100644 index 0000000000..23ff27668e Binary files /dev/null and b/skins/gliteskin/gliteskin_glider/oper_1.bmp differ diff --git a/skins/gliteskin/gliteskin_glider/pack_build.bat b/skins/gliteskin/gliteskin_glider/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gliteskin/gliteskin_glider/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gliteskin/gliteskin_glider/skn_build.bat b/skins/gliteskin/gliteskin_glider/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gliteskin/gliteskin_glider/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_red/base.bmp b/skins/gliteskin/gliteskin_red/base.bmp new file mode 100644 index 0000000000..c6a8ddd52a Binary files /dev/null and b/skins/gliteskin/gliteskin_red/base.bmp differ diff --git a/skins/gliteskin/gliteskin_red/base_1.bmp b/skins/gliteskin/gliteskin_red/base_1.bmp new file mode 100644 index 0000000000..e76d939269 Binary files /dev/null and b/skins/gliteskin/gliteskin_red/base_1.bmp differ diff --git a/skins/gliteskin/gliteskin_red/default.asm b/skins/gliteskin/gliteskin_red/default.asm new file mode 100644 index 0000000000..e7b503f308 --- /dev/null +++ b/skins/gliteskin/gliteskin_red/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:46:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x8a3131],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xe6e1e1],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:17],\ ; buttons coordinates + minimize = [-41:3][17:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gliteskin/gliteskin_red/default.dtp b/skins/gliteskin/gliteskin_red/default.dtp new file mode 100644 index 0000000000..b60ed51aab Binary files /dev/null and b/skins/gliteskin/gliteskin_red/default.dtp differ diff --git a/skins/gliteskin/gliteskin_red/default.dtp.asm b/skins/gliteskin/gliteskin_red/default.dtp.asm new file mode 100644 index 0000000000..9b77ed4ce7 --- /dev/null +++ b/skins/gliteskin/gliteskin_red/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x8a3131 +grab dd 0xD94040 +grab_button dd 0xe6e1e1 +grab_button_text dd 0x393838 +grab_text dd 0xFFFFFF +work dd 0xE6E1E1 +work_button dd 0xE6E1E1 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xA59999 \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_red/default.skn b/skins/gliteskin/gliteskin_red/default.skn new file mode 100644 index 0000000000..f1e22845f8 Binary files /dev/null and b/skins/gliteskin/gliteskin_red/default.skn differ diff --git a/skins/gliteskin/gliteskin_red/dtp_build.bat b/skins/gliteskin/gliteskin_red/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gliteskin/gliteskin_red/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gliteskin/gliteskin_red/left.bmp b/skins/gliteskin/gliteskin_red/left.bmp new file mode 100644 index 0000000000..17620c6fee Binary files /dev/null and b/skins/gliteskin/gliteskin_red/left.bmp differ diff --git a/skins/gliteskin/gliteskin_red/left_1.bmp b/skins/gliteskin/gliteskin_red/left_1.bmp new file mode 100644 index 0000000000..2d8b9470d1 Binary files /dev/null and b/skins/gliteskin/gliteskin_red/left_1.bmp differ diff --git a/skins/gliteskin/gliteskin_red/me_skin.inc b/skins/gliteskin/gliteskin_red/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gliteskin/gliteskin_red/me_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/gliteskin/gliteskin_red/oper.bmp b/skins/gliteskin/gliteskin_red/oper.bmp new file mode 100644 index 0000000000..858dacb26e Binary files /dev/null and b/skins/gliteskin/gliteskin_red/oper.bmp differ diff --git a/skins/gliteskin/gliteskin_red/oper_1.bmp b/skins/gliteskin/gliteskin_red/oper_1.bmp new file mode 100644 index 0000000000..6e8bc6a2c4 Binary files /dev/null and b/skins/gliteskin/gliteskin_red/oper_1.bmp differ diff --git a/skins/gliteskin/gliteskin_red/pack_build.bat b/skins/gliteskin/gliteskin_red/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gliteskin/gliteskin_red/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gliteskin/gliteskin_red/skn_build.bat b/skins/gliteskin/gliteskin_red/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gliteskin/gliteskin_red/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_deepsky/base.bmp b/skins/gnome_style/gliteskin_deepsky/base.bmp new file mode 100644 index 0000000000..39a9834943 Binary files /dev/null and b/skins/gnome_style/gliteskin_deepsky/base.bmp differ diff --git a/skins/gnome_style/gliteskin_deepsky/base_1.bmp b/skins/gnome_style/gliteskin_deepsky/base_1.bmp new file mode 100644 index 0000000000..6cccc49e5d Binary files /dev/null and b/skins/gnome_style/gliteskin_deepsky/base_1.bmp differ diff --git a/skins/gnome_style/gliteskin_deepsky/default.asm b/skins/gnome_style/gliteskin_deepsky/default.asm new file mode 100644 index 0000000000..d3efb5183a --- /dev/null +++ b/skins/gnome_style/gliteskin_deepsky/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:46:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x487cad],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xeae8e3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:17],\ ; buttons coordinates + minimize = [-41:3][17:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gliteskin_deepsky/default.dtp.asm b/skins/gnome_style/gliteskin_deepsky/default.dtp.asm new file mode 100644 index 0000000000..dedf41e6ea --- /dev/null +++ b/skins/gnome_style/gliteskin_deepsky/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x487cad +grab dd 0x83BAEE +grab_button dd 0xf2f0ee +grab_button_text dd 0x3a3a38 +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCCC6BB \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_deepsky/dtp_build.bat b/skins/gnome_style/gliteskin_deepsky/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gliteskin_deepsky/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_deepsky/left.bmp b/skins/gnome_style/gliteskin_deepsky/left.bmp new file mode 100644 index 0000000000..23b81cd735 Binary files /dev/null and b/skins/gnome_style/gliteskin_deepsky/left.bmp differ diff --git a/skins/gnome_style/gliteskin_deepsky/left_1.bmp b/skins/gnome_style/gliteskin_deepsky/left_1.bmp new file mode 100644 index 0000000000..eb532ed4cf Binary files /dev/null and b/skins/gnome_style/gliteskin_deepsky/left_1.bmp differ diff --git a/skins/gnome_style/gliteskin_deepsky/me_skin.inc b/skins/gnome_style/gliteskin_deepsky/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gliteskin_deepsky/me_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/gnome_style/gliteskin_deepsky/oper.bmp b/skins/gnome_style/gliteskin_deepsky/oper.bmp new file mode 100644 index 0000000000..e2f47515ac Binary files /dev/null and b/skins/gnome_style/gliteskin_deepsky/oper.bmp differ diff --git a/skins/gnome_style/gliteskin_deepsky/oper_1.bmp b/skins/gnome_style/gliteskin_deepsky/oper_1.bmp new file mode 100644 index 0000000000..23ff27668e Binary files /dev/null and b/skins/gnome_style/gliteskin_deepsky/oper_1.bmp differ diff --git a/skins/gnome_style/gliteskin_deepsky/pack_build.bat b/skins/gnome_style/gliteskin_deepsky/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gliteskin_deepsky/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gliteskin_deepsky/skn_build.bat b/skins/gnome_style/gliteskin_deepsky/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gliteskin_deepsky/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_glider/base.bmp b/skins/gnome_style/gliteskin_glider/base.bmp new file mode 100644 index 0000000000..8e7d7e30b9 Binary files /dev/null and b/skins/gnome_style/gliteskin_glider/base.bmp differ diff --git a/skins/gnome_style/gliteskin_glider/base_1.bmp b/skins/gnome_style/gliteskin_glider/base_1.bmp new file mode 100644 index 0000000000..6cccc49e5d Binary files /dev/null and b/skins/gnome_style/gliteskin_glider/base_1.bmp differ diff --git a/skins/gnome_style/gliteskin_glider/default.asm b/skins/gnome_style/gliteskin_glider/default.asm new file mode 100644 index 0000000000..58bae48436 --- /dev/null +++ b/skins/gnome_style/gliteskin_glider/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:46:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x5e7186],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xeae8e3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:17],\ ; buttons coordinates + minimize = [-41:3][17:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gliteskin_glider/default.dtp.asm b/skins/gnome_style/gliteskin_glider/default.dtp.asm new file mode 100644 index 0000000000..59b534e6ce --- /dev/null +++ b/skins/gnome_style/gliteskin_glider/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x5e7186 +grab dd 0x859fbb +grab_button dd 0xf0eeeb +grab_button_text dd 0x3a3a38 +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x9E9A91 \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_glider/dtp_build.bat b/skins/gnome_style/gliteskin_glider/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gliteskin_glider/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_glider/left.bmp b/skins/gnome_style/gliteskin_glider/left.bmp new file mode 100644 index 0000000000..28db2fb3c0 Binary files /dev/null and b/skins/gnome_style/gliteskin_glider/left.bmp differ diff --git a/skins/gnome_style/gliteskin_glider/left_1.bmp b/skins/gnome_style/gliteskin_glider/left_1.bmp new file mode 100644 index 0000000000..eb532ed4cf Binary files /dev/null and b/skins/gnome_style/gliteskin_glider/left_1.bmp differ diff --git a/skins/gnome_style/gliteskin_glider/me_skin.inc b/skins/gnome_style/gliteskin_glider/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gliteskin_glider/me_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/gnome_style/gliteskin_glider/oper.bmp b/skins/gnome_style/gliteskin_glider/oper.bmp new file mode 100644 index 0000000000..f5564c8f24 Binary files /dev/null and b/skins/gnome_style/gliteskin_glider/oper.bmp differ diff --git a/skins/gnome_style/gliteskin_glider/oper_1.bmp b/skins/gnome_style/gliteskin_glider/oper_1.bmp new file mode 100644 index 0000000000..23ff27668e Binary files /dev/null and b/skins/gnome_style/gliteskin_glider/oper_1.bmp differ diff --git a/skins/gnome_style/gliteskin_glider/pack_build.bat b/skins/gnome_style/gliteskin_glider/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gliteskin_glider/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gliteskin_glider/skn_build.bat b/skins/gnome_style/gliteskin_glider/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gliteskin_glider/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_red/base.bmp b/skins/gnome_style/gliteskin_red/base.bmp new file mode 100644 index 0000000000..c6a8ddd52a Binary files /dev/null and b/skins/gnome_style/gliteskin_red/base.bmp differ diff --git a/skins/gnome_style/gliteskin_red/base_1.bmp b/skins/gnome_style/gliteskin_red/base_1.bmp new file mode 100644 index 0000000000..e76d939269 Binary files /dev/null and b/skins/gnome_style/gliteskin_red/base_1.bmp differ diff --git a/skins/gnome_style/gliteskin_red/default.asm b/skins/gnome_style/gliteskin_red/default.asm new file mode 100644 index 0000000000..e7b503f308 --- /dev/null +++ b/skins/gnome_style/gliteskin_red/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:46:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x8a3131],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xe6e1e1],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-22:3][17:17],\ ; buttons coordinates + minimize = [-41:3][17:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gliteskin_red/default.dtp.asm b/skins/gnome_style/gliteskin_red/default.dtp.asm new file mode 100644 index 0000000000..9b77ed4ce7 --- /dev/null +++ b/skins/gnome_style/gliteskin_red/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x8a3131 +grab dd 0xD94040 +grab_button dd 0xe6e1e1 +grab_button_text dd 0x393838 +grab_text dd 0xFFFFFF +work dd 0xE6E1E1 +work_button dd 0xE6E1E1 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xA59999 \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_red/dtp_build.bat b/skins/gnome_style/gliteskin_red/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gliteskin_red/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gliteskin_red/left.bmp b/skins/gnome_style/gliteskin_red/left.bmp new file mode 100644 index 0000000000..17620c6fee Binary files /dev/null and b/skins/gnome_style/gliteskin_red/left.bmp differ diff --git a/skins/gnome_style/gliteskin_red/left_1.bmp b/skins/gnome_style/gliteskin_red/left_1.bmp new file mode 100644 index 0000000000..2d8b9470d1 Binary files /dev/null and b/skins/gnome_style/gliteskin_red/left_1.bmp differ diff --git a/skins/gnome_style/gliteskin_red/me_skin.inc b/skins/gnome_style/gliteskin_red/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gliteskin_red/me_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/gnome_style/gliteskin_red/oper.bmp b/skins/gnome_style/gliteskin_red/oper.bmp new file mode 100644 index 0000000000..e9fec77432 Binary files /dev/null and b/skins/gnome_style/gliteskin_red/oper.bmp differ diff --git a/skins/gnome_style/gliteskin_red/oper_1.bmp b/skins/gnome_style/gliteskin_red/oper_1.bmp new file mode 100644 index 0000000000..ae1d0af7a0 Binary files /dev/null and b/skins/gnome_style/gliteskin_red/oper_1.bmp differ diff --git a/skins/gnome_style/gliteskin_red/pack_build.bat b/skins/gnome_style/gliteskin_red/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gliteskin_red/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gliteskin_red/skn_build.bat b/skins/gnome_style/gliteskin_red/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gliteskin_red/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_blue/base.bmp b/skins/gnome_style/gnome_blue/base.bmp new file mode 100644 index 0000000000..6ed18444f1 Binary files /dev/null and b/skins/gnome_style/gnome_blue/base.bmp differ diff --git a/skins/gnome_style/gnome_blue/base_1.bmp b/skins/gnome_style/gnome_blue/base_1.bmp new file mode 100644 index 0000000000..d13f616dd3 Binary files /dev/null and b/skins/gnome_style/gnome_blue/base_1.bmp differ diff --git a/skins/gnome_style/gnome_blue/default.asm b/skins/gnome_style/gnome_blue/default.asm new file mode 100644 index 0000000000..5e92ccdbaf --- /dev/null +++ b/skins/gnome_style/gnome_blue/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x334C62:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0x4489CA],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE3E0D8],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gnome_blue/default.dtp.asm b/skins/gnome_style/gnome_blue/default.dtp.asm new file mode 100644 index 0000000000..88f9f9fc93 --- /dev/null +++ b/skins/gnome_style/gnome_blue/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x4489CA +grab dd 0x83BAEE +grab_button dd 0x3B6A97 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCCC6BB \ No newline at end of file diff --git a/skins/gnome_style/gnome_blue/dtp_build.bat b/skins/gnome_style/gnome_blue/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gnome_blue/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_blue/left.bmp b/skins/gnome_style/gnome_blue/left.bmp new file mode 100644 index 0000000000..d68146b71e Binary files /dev/null and b/skins/gnome_style/gnome_blue/left.bmp differ diff --git a/skins/gnome_style/gnome_blue/left_1.bmp b/skins/gnome_style/gnome_blue/left_1.bmp new file mode 100644 index 0000000000..355827c388 Binary files /dev/null and b/skins/gnome_style/gnome_blue/left_1.bmp differ diff --git a/skins/gnome_style/gnome_blue/me_skin.inc b/skins/gnome_style/gnome_blue/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gnome_blue/me_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/gnome_style/gnome_blue/oper.bmp b/skins/gnome_style/gnome_blue/oper.bmp new file mode 100644 index 0000000000..a8a4429e41 Binary files /dev/null and b/skins/gnome_style/gnome_blue/oper.bmp differ diff --git a/skins/gnome_style/gnome_blue/oper_1.bmp b/skins/gnome_style/gnome_blue/oper_1.bmp new file mode 100644 index 0000000000..8c76ed998f Binary files /dev/null and b/skins/gnome_style/gnome_blue/oper_1.bmp differ diff --git a/skins/gnome_style/gnome_blue/pack_build.bat b/skins/gnome_style/gnome_blue/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gnome_blue/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gnome_blue/skn_build.bat b/skins/gnome_style/gnome_blue/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gnome_blue/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_green/base.bmp b/skins/gnome_style/gnome_green/base.bmp new file mode 100644 index 0000000000..bebe1440b8 Binary files /dev/null and b/skins/gnome_style/gnome_green/base.bmp differ diff --git a/skins/gnome_style/gnome_green/base_1.bmp b/skins/gnome_style/gnome_green/base_1.bmp new file mode 100644 index 0000000000..af8640e6db Binary files /dev/null and b/skins/gnome_style/gnome_green/base_1.bmp differ diff --git a/skins/gnome_style/gnome_green/default.asm b/skins/gnome_style/gnome_green/default.asm new file mode 100644 index 0000000000..c451e56f33 --- /dev/null +++ b/skins/gnome_style/gnome_green/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x384237:\ ; border inner color + bouter=0x384237:\ ; border outer color + bframe=0x607F5C],\ ; border frame color + colors inactive = [binner=0x353634:\ ; border inner color + bouter=0x353634:\ ; border outer color + bframe=0xC5CBC2],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gnome_green/default.dtp.asm b/skins/gnome_style/gnome_green/default.dtp.asm new file mode 100644 index 0000000000..016b190869 --- /dev/null +++ b/skins/gnome_style/gnome_green/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x607F5C +grab dd 0x83AC7E +grab_button dd 0x4D5F4A +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xD4D9D2 +work_button dd 0xD4D9D2 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x939C8F \ No newline at end of file diff --git a/skins/gnome_style/gnome_green/dtp_build.bat b/skins/gnome_style/gnome_green/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gnome_green/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_green/left.bmp b/skins/gnome_style/gnome_green/left.bmp new file mode 100644 index 0000000000..9385f5195c Binary files /dev/null and b/skins/gnome_style/gnome_green/left.bmp differ diff --git a/skins/gnome_style/gnome_green/left_1.bmp b/skins/gnome_style/gnome_green/left_1.bmp new file mode 100644 index 0000000000..593008f2f6 Binary files /dev/null and b/skins/gnome_style/gnome_green/left_1.bmp differ diff --git a/skins/gnome_style/gnome_green/me_skin.inc b/skins/gnome_style/gnome_green/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gnome_green/me_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/gnome_style/gnome_green/oper.bmp b/skins/gnome_style/gnome_green/oper.bmp new file mode 100644 index 0000000000..d7a3a737b8 Binary files /dev/null and b/skins/gnome_style/gnome_green/oper.bmp differ diff --git a/skins/gnome_style/gnome_green/oper_1.bmp b/skins/gnome_style/gnome_green/oper_1.bmp new file mode 100644 index 0000000000..09944b08e5 Binary files /dev/null and b/skins/gnome_style/gnome_green/oper_1.bmp differ diff --git a/skins/gnome_style/gnome_green/pack_build.bat b/skins/gnome_style/gnome_green/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gnome_green/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gnome_green/skn_build.bat b/skins/gnome_style/gnome_green/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gnome_green/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_ocean/base.bmp b/skins/gnome_style/gnome_ocean/base.bmp new file mode 100644 index 0000000000..742b5c7856 Binary files /dev/null and b/skins/gnome_style/gnome_ocean/base.bmp differ diff --git a/skins/gnome_style/gnome_ocean/base_1.bmp b/skins/gnome_style/gnome_ocean/base_1.bmp new file mode 100644 index 0000000000..de901bf388 Binary files /dev/null and b/skins/gnome_style/gnome_ocean/base_1.bmp differ diff --git a/skins/gnome_style/gnome_ocean/default.asm b/skins/gnome_style/gnome_ocean/default.asm new file mode 100644 index 0000000000..67bcf7a923 --- /dev/null +++ b/skins/gnome_style/gnome_ocean/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x18191B:\ ; border inner color + bouter=0x18191B:\ ; border outer color + bframe=0x465E73],\ ; border frame color + colors inactive = [binner=0x3E3C39:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE3E0D8],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gnome_ocean/default.dtp.asm b/skins/gnome_style/gnome_ocean/default.dtp.asm new file mode 100644 index 0000000000..4c462c7213 --- /dev/null +++ b/skins/gnome_style/gnome_ocean/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x465E73 +grab dd 0x527B9E +grab_button dd 0x3A4956 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x9E9A91 \ No newline at end of file diff --git a/skins/gnome_style/gnome_ocean/dtp_build.bat b/skins/gnome_style/gnome_ocean/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gnome_ocean/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_ocean/left.bmp b/skins/gnome_style/gnome_ocean/left.bmp new file mode 100644 index 0000000000..a49f83c6ce Binary files /dev/null and b/skins/gnome_style/gnome_ocean/left.bmp differ diff --git a/skins/gnome_style/gnome_ocean/left_1.bmp b/skins/gnome_style/gnome_ocean/left_1.bmp new file mode 100644 index 0000000000..40f553dd12 Binary files /dev/null and b/skins/gnome_style/gnome_ocean/left_1.bmp differ diff --git a/skins/gnome_style/gnome_ocean/me_skin.inc b/skins/gnome_style/gnome_ocean/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gnome_ocean/me_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/gnome_style/gnome_ocean/oper.bmp b/skins/gnome_style/gnome_ocean/oper.bmp new file mode 100644 index 0000000000..77359d59c6 Binary files /dev/null and b/skins/gnome_style/gnome_ocean/oper.bmp differ diff --git a/skins/gnome_style/gnome_ocean/oper_1.bmp b/skins/gnome_style/gnome_ocean/oper_1.bmp new file mode 100644 index 0000000000..26d976460f Binary files /dev/null and b/skins/gnome_style/gnome_ocean/oper_1.bmp differ diff --git a/skins/gnome_style/gnome_ocean/pack_build.bat b/skins/gnome_style/gnome_ocean/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gnome_ocean/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gnome_ocean/skn_build.bat b/skins/gnome_style/gnome_ocean/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gnome_ocean/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_olive/base.bmp b/skins/gnome_style/gnome_olive/base.bmp new file mode 100644 index 0000000000..aee1c13979 Binary files /dev/null and b/skins/gnome_style/gnome_olive/base.bmp differ diff --git a/skins/gnome_style/gnome_olive/base_1.bmp b/skins/gnome_style/gnome_olive/base_1.bmp new file mode 100644 index 0000000000..19f3566421 Binary files /dev/null and b/skins/gnome_style/gnome_olive/base_1.bmp differ diff --git a/skins/gnome_style/gnome_olive/default.asm b/skins/gnome_style/gnome_olive/default.asm new file mode 100644 index 0000000000..40719c834b --- /dev/null +++ b/skins/gnome_style/gnome_olive/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x5A6649:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xA3BA80],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE1DDC4],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gnome_olive/default.dtp.asm b/skins/gnome_style/gnome_olive/default.dtp.asm new file mode 100644 index 0000000000..98fbc1182b --- /dev/null +++ b/skins/gnome_style/gnome_olive/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xA3BA80 +grab dd 0xD0DFB9 +grab_button dd 0x80965E +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xECE9D8 +work_button dd 0xECE9D8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCDC7A6 diff --git a/skins/gnome_style/gnome_olive/dtp_build.bat b/skins/gnome_style/gnome_olive/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gnome_olive/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_olive/left.bmp b/skins/gnome_style/gnome_olive/left.bmp new file mode 100644 index 0000000000..e5e1b924c5 Binary files /dev/null and b/skins/gnome_style/gnome_olive/left.bmp differ diff --git a/skins/gnome_style/gnome_olive/left_1.bmp b/skins/gnome_style/gnome_olive/left_1.bmp new file mode 100644 index 0000000000..672702ef1e Binary files /dev/null and b/skins/gnome_style/gnome_olive/left_1.bmp differ diff --git a/skins/gnome_style/gnome_olive/me_skin.inc b/skins/gnome_style/gnome_olive/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gnome_olive/me_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/gnome_style/gnome_olive/oper.bmp b/skins/gnome_style/gnome_olive/oper.bmp new file mode 100644 index 0000000000..fefb34b955 Binary files /dev/null and b/skins/gnome_style/gnome_olive/oper.bmp differ diff --git a/skins/gnome_style/gnome_olive/oper_1.bmp b/skins/gnome_style/gnome_olive/oper_1.bmp new file mode 100644 index 0000000000..4e0da91940 Binary files /dev/null and b/skins/gnome_style/gnome_olive/oper_1.bmp differ diff --git a/skins/gnome_style/gnome_olive/pack_build.bat b/skins/gnome_style/gnome_olive/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gnome_olive/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gnome_olive/skn_build.bat b/skins/gnome_style/gnome_olive/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gnome_olive/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_orange/base.bmp b/skins/gnome_style/gnome_orange/base.bmp new file mode 100644 index 0000000000..65be45a490 Binary files /dev/null and b/skins/gnome_style/gnome_orange/base.bmp differ diff --git a/skins/gnome_style/gnome_orange/base_1.bmp b/skins/gnome_style/gnome_orange/base_1.bmp new file mode 100644 index 0000000000..d13f616dd3 Binary files /dev/null and b/skins/gnome_style/gnome_orange/base_1.bmp differ diff --git a/skins/gnome_style/gnome_orange/default.asm b/skins/gnome_style/gnome_orange/default.asm new file mode 100644 index 0000000000..4f3312377b --- /dev/null +++ b/skins/gnome_style/gnome_orange/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x644931:\ ; border inner color + bouter=0x393b3e:\ ; border outer color + bframe=0xd0843d],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE3E0D8],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gnome_orange/default.dtp.asm b/skins/gnome_style/gnome_orange/default.dtp.asm new file mode 100644 index 0000000000..b195c0519d --- /dev/null +++ b/skins/gnome_style/gnome_orange/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xd0843d +grab dd 0xf3b77e +grab_button dd 0x976332 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCCC6BB \ No newline at end of file diff --git a/skins/gnome_style/gnome_orange/dtp_build.bat b/skins/gnome_style/gnome_orange/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gnome_orange/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_orange/left.bmp b/skins/gnome_style/gnome_orange/left.bmp new file mode 100644 index 0000000000..8e84d358e0 Binary files /dev/null and b/skins/gnome_style/gnome_orange/left.bmp differ diff --git a/skins/gnome_style/gnome_orange/left_1.bmp b/skins/gnome_style/gnome_orange/left_1.bmp new file mode 100644 index 0000000000..355827c388 Binary files /dev/null and b/skins/gnome_style/gnome_orange/left_1.bmp differ diff --git a/skins/gnome_style/gnome_orange/me_skin.inc b/skins/gnome_style/gnome_orange/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gnome_orange/me_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/gnome_style/gnome_orange/oper.bmp b/skins/gnome_style/gnome_orange/oper.bmp new file mode 100644 index 0000000000..161841099c Binary files /dev/null and b/skins/gnome_style/gnome_orange/oper.bmp differ diff --git a/skins/gnome_style/gnome_orange/oper_1.bmp b/skins/gnome_style/gnome_orange/oper_1.bmp new file mode 100644 index 0000000000..8c76ed998f Binary files /dev/null and b/skins/gnome_style/gnome_orange/oper_1.bmp differ diff --git a/skins/gnome_style/gnome_orange/pack_build.bat b/skins/gnome_style/gnome_orange/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gnome_orange/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gnome_orange/skn_build.bat b/skins/gnome_style/gnome_orange/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gnome_orange/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_red/base.bmp b/skins/gnome_style/gnome_red/base.bmp new file mode 100644 index 0000000000..c9d3c0c038 Binary files /dev/null and b/skins/gnome_style/gnome_red/base.bmp differ diff --git a/skins/gnome_style/gnome_red/base_1.bmp b/skins/gnome_style/gnome_red/base_1.bmp new file mode 100644 index 0000000000..d959c5a7dd Binary files /dev/null and b/skins/gnome_style/gnome_red/base_1.bmp differ diff --git a/skins/gnome_style/gnome_red/default.asm b/skins/gnome_style/gnome_red/default.asm new file mode 100644 index 0000000000..c52dee82d2 --- /dev/null +++ b/skins/gnome_style/gnome_red/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x492929:\ ; border inner color + bouter=0x201818:\ ; border outer color + bframe=0x9B3333],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xD7D0D0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gnome_style/gnome_red/default.dtp.asm b/skins/gnome_style/gnome_red/default.dtp.asm new file mode 100644 index 0000000000..c8e1a53506 --- /dev/null +++ b/skins/gnome_style/gnome_red/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x9B3333 +grab dd 0xD94040 +grab_button dd 0x723131 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xE6E1E1 +work_button dd 0xE6E1E1 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xA59999 \ No newline at end of file diff --git a/skins/gnome_style/gnome_red/dtp_build.bat b/skins/gnome_style/gnome_red/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gnome_style/gnome_red/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gnome_style/gnome_red/left.bmp b/skins/gnome_style/gnome_red/left.bmp new file mode 100644 index 0000000000..3416c83b68 Binary files /dev/null and b/skins/gnome_style/gnome_red/left.bmp differ diff --git a/skins/gnome_style/gnome_red/left_1.bmp b/skins/gnome_style/gnome_red/left_1.bmp new file mode 100644 index 0000000000..e3829c49b3 Binary files /dev/null and b/skins/gnome_style/gnome_red/left_1.bmp differ diff --git a/skins/gnome_style/gnome_red/me_skin.inc b/skins/gnome_style/gnome_red/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gnome_style/gnome_red/me_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/gnome_style/gnome_red/oper.bmp b/skins/gnome_style/gnome_red/oper.bmp new file mode 100644 index 0000000000..b4aae67a2a Binary files /dev/null and b/skins/gnome_style/gnome_red/oper.bmp differ diff --git a/skins/gnome_style/gnome_red/oper_1.bmp b/skins/gnome_style/gnome_red/oper_1.bmp new file mode 100644 index 0000000000..1926089c3f Binary files /dev/null and b/skins/gnome_style/gnome_red/oper_1.bmp differ diff --git a/skins/gnome_style/gnome_red/pack_build.bat b/skins/gnome_style/gnome_red/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gnome_style/gnome_red/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gnome_style/gnome_red/skn_build.bat b/skins/gnome_style/gnome_red/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gnome_style/gnome_red/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gnome_style/pack_build.bat b/skins/gnome_style/pack_build.bat new file mode 100644 index 0000000000..87ad08c535 --- /dev/null +++ b/skins/gnome_style/pack_build.bat @@ -0,0 +1,10 @@ +kpack gliteskin_deepsky.skn gliteskin_deepsky.skn +kpack gliteskin_glider.skn gliteskin_glider.skn +kpack gliteskin_red.skn gliteskin_red.skn +kpack gnome_blue.skn gnome_blue.skn +kpack gnome_green.skn gnome_green.skn +kpack gnome_ocean.skn gnome_ocean.skn +kpack gnome_olive.skn gnome_olive.skn +kpack gnome_red.skn gnome_red.skn +kpack gnome_orange.skn gnome_orange.skn +pause \ No newline at end of file diff --git a/skins/gskin/gnome_blue/base.bmp b/skins/gskin/gnome_blue/base.bmp new file mode 100644 index 0000000000..6ed18444f1 Binary files /dev/null and b/skins/gskin/gnome_blue/base.bmp differ diff --git a/skins/gskin/gnome_blue/base_1.bmp b/skins/gskin/gnome_blue/base_1.bmp new file mode 100644 index 0000000000..d13f616dd3 Binary files /dev/null and b/skins/gskin/gnome_blue/base_1.bmp differ diff --git a/skins/gskin/gnome_blue/default.asm b/skins/gskin/gnome_blue/default.asm new file mode 100644 index 0000000000..5e92ccdbaf --- /dev/null +++ b/skins/gskin/gnome_blue/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x334C62:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0x4489CA],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE3E0D8],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gskin/gnome_blue/default.dtp b/skins/gskin/gnome_blue/default.dtp new file mode 100644 index 0000000000..ab27f060d3 Binary files /dev/null and b/skins/gskin/gnome_blue/default.dtp differ diff --git a/skins/gskin/gnome_blue/default.dtp.asm b/skins/gskin/gnome_blue/default.dtp.asm new file mode 100644 index 0000000000..88f9f9fc93 --- /dev/null +++ b/skins/gskin/gnome_blue/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x4489CA +grab dd 0x83BAEE +grab_button dd 0x3B6A97 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCCC6BB \ No newline at end of file diff --git a/skins/gskin/gnome_blue/default.skn b/skins/gskin/gnome_blue/default.skn new file mode 100644 index 0000000000..1674f59376 Binary files /dev/null and b/skins/gskin/gnome_blue/default.skn differ diff --git a/skins/gskin/gnome_blue/dtp_build.bat b/skins/gskin/gnome_blue/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gskin/gnome_blue/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gskin/gnome_blue/left.bmp b/skins/gskin/gnome_blue/left.bmp new file mode 100644 index 0000000000..d1aebf9789 Binary files /dev/null and b/skins/gskin/gnome_blue/left.bmp differ diff --git a/skins/gskin/gnome_blue/left_1.bmp b/skins/gskin/gnome_blue/left_1.bmp new file mode 100644 index 0000000000..d534a05f99 Binary files /dev/null and b/skins/gskin/gnome_blue/left_1.bmp differ diff --git a/skins/gskin/gnome_blue/me_skin.inc b/skins/gskin/gnome_blue/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gskin/gnome_blue/me_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/gskin/gnome_blue/oper.bmp b/skins/gskin/gnome_blue/oper.bmp new file mode 100644 index 0000000000..a8a4429e41 Binary files /dev/null and b/skins/gskin/gnome_blue/oper.bmp differ diff --git a/skins/gskin/gnome_blue/oper_1.bmp b/skins/gskin/gnome_blue/oper_1.bmp new file mode 100644 index 0000000000..8c76ed998f Binary files /dev/null and b/skins/gskin/gnome_blue/oper_1.bmp differ diff --git a/skins/gskin/gnome_blue/pack_build.bat b/skins/gskin/gnome_blue/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gskin/gnome_blue/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gskin/gnome_blue/skn_build.bat b/skins/gskin/gnome_blue/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gskin/gnome_blue/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gskin/gnome_green/base.bmp b/skins/gskin/gnome_green/base.bmp new file mode 100644 index 0000000000..bebe1440b8 Binary files /dev/null and b/skins/gskin/gnome_green/base.bmp differ diff --git a/skins/gskin/gnome_green/base_1.bmp b/skins/gskin/gnome_green/base_1.bmp new file mode 100644 index 0000000000..af8640e6db Binary files /dev/null and b/skins/gskin/gnome_green/base_1.bmp differ diff --git a/skins/gskin/gnome_green/default.asm b/skins/gskin/gnome_green/default.asm new file mode 100644 index 0000000000..c451e56f33 --- /dev/null +++ b/skins/gskin/gnome_green/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x384237:\ ; border inner color + bouter=0x384237:\ ; border outer color + bframe=0x607F5C],\ ; border frame color + colors inactive = [binner=0x353634:\ ; border inner color + bouter=0x353634:\ ; border outer color + bframe=0xC5CBC2],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gskin/gnome_green/default.dtp b/skins/gskin/gnome_green/default.dtp new file mode 100644 index 0000000000..d30e715646 Binary files /dev/null and b/skins/gskin/gnome_green/default.dtp differ diff --git a/skins/gskin/gnome_green/default.dtp.asm b/skins/gskin/gnome_green/default.dtp.asm new file mode 100644 index 0000000000..016b190869 --- /dev/null +++ b/skins/gskin/gnome_green/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x607F5C +grab dd 0x83AC7E +grab_button dd 0x4D5F4A +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xD4D9D2 +work_button dd 0xD4D9D2 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x939C8F \ No newline at end of file diff --git a/skins/gskin/gnome_green/default.skn b/skins/gskin/gnome_green/default.skn new file mode 100644 index 0000000000..ad4205b9a1 Binary files /dev/null and b/skins/gskin/gnome_green/default.skn differ diff --git a/skins/gskin/gnome_green/dtp_build.bat b/skins/gskin/gnome_green/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gskin/gnome_green/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gskin/gnome_green/left.bmp b/skins/gskin/gnome_green/left.bmp new file mode 100644 index 0000000000..9385f5195c Binary files /dev/null and b/skins/gskin/gnome_green/left.bmp differ diff --git a/skins/gskin/gnome_green/left_1.bmp b/skins/gskin/gnome_green/left_1.bmp new file mode 100644 index 0000000000..593008f2f6 Binary files /dev/null and b/skins/gskin/gnome_green/left_1.bmp differ diff --git a/skins/gskin/gnome_green/me_skin.inc b/skins/gskin/gnome_green/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gskin/gnome_green/me_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/gskin/gnome_green/oper.bmp b/skins/gskin/gnome_green/oper.bmp new file mode 100644 index 0000000000..d7a3a737b8 Binary files /dev/null and b/skins/gskin/gnome_green/oper.bmp differ diff --git a/skins/gskin/gnome_green/oper_1.bmp b/skins/gskin/gnome_green/oper_1.bmp new file mode 100644 index 0000000000..09944b08e5 Binary files /dev/null and b/skins/gskin/gnome_green/oper_1.bmp differ diff --git a/skins/gskin/gnome_green/pack_build.bat b/skins/gskin/gnome_green/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gskin/gnome_green/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gskin/gnome_green/skn_build.bat b/skins/gskin/gnome_green/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gskin/gnome_green/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gskin/gnome_ocean/base.bmp b/skins/gskin/gnome_ocean/base.bmp new file mode 100644 index 0000000000..742b5c7856 Binary files /dev/null and b/skins/gskin/gnome_ocean/base.bmp differ diff --git a/skins/gskin/gnome_ocean/base_1.bmp b/skins/gskin/gnome_ocean/base_1.bmp new file mode 100644 index 0000000000..de901bf388 Binary files /dev/null and b/skins/gskin/gnome_ocean/base_1.bmp differ diff --git a/skins/gskin/gnome_ocean/default.asm b/skins/gskin/gnome_ocean/default.asm new file mode 100644 index 0000000000..67bcf7a923 --- /dev/null +++ b/skins/gskin/gnome_ocean/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x18191B:\ ; border inner color + bouter=0x18191B:\ ; border outer color + bframe=0x465E73],\ ; border frame color + colors inactive = [binner=0x3E3C39:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE3E0D8],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gskin/gnome_ocean/default.dtp b/skins/gskin/gnome_ocean/default.dtp new file mode 100644 index 0000000000..3205c5fcb8 Binary files /dev/null and b/skins/gskin/gnome_ocean/default.dtp differ diff --git a/skins/gskin/gnome_ocean/default.dtp.asm b/skins/gskin/gnome_ocean/default.dtp.asm new file mode 100644 index 0000000000..4c462c7213 --- /dev/null +++ b/skins/gskin/gnome_ocean/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x465E73 +grab dd 0x527B9E +grab_button dd 0x3A4956 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xEBE9E3 +work_button dd 0xEBE9E3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x9E9A91 \ No newline at end of file diff --git a/skins/gskin/gnome_ocean/default.skn b/skins/gskin/gnome_ocean/default.skn new file mode 100644 index 0000000000..91c7a4e427 Binary files /dev/null and b/skins/gskin/gnome_ocean/default.skn differ diff --git a/skins/gskin/gnome_ocean/dtp_build.bat b/skins/gskin/gnome_ocean/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gskin/gnome_ocean/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gskin/gnome_ocean/left.bmp b/skins/gskin/gnome_ocean/left.bmp new file mode 100644 index 0000000000..a49f83c6ce Binary files /dev/null and b/skins/gskin/gnome_ocean/left.bmp differ diff --git a/skins/gskin/gnome_ocean/left_1.bmp b/skins/gskin/gnome_ocean/left_1.bmp new file mode 100644 index 0000000000..40f553dd12 Binary files /dev/null and b/skins/gskin/gnome_ocean/left_1.bmp differ diff --git a/skins/gskin/gnome_ocean/me_skin.inc b/skins/gskin/gnome_ocean/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gskin/gnome_ocean/me_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/gskin/gnome_ocean/oper.bmp b/skins/gskin/gnome_ocean/oper.bmp new file mode 100644 index 0000000000..77359d59c6 Binary files /dev/null and b/skins/gskin/gnome_ocean/oper.bmp differ diff --git a/skins/gskin/gnome_ocean/oper_1.bmp b/skins/gskin/gnome_ocean/oper_1.bmp new file mode 100644 index 0000000000..26d976460f Binary files /dev/null and b/skins/gskin/gnome_ocean/oper_1.bmp differ diff --git a/skins/gskin/gnome_ocean/pack_build.bat b/skins/gskin/gnome_ocean/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gskin/gnome_ocean/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gskin/gnome_ocean/skn_build.bat b/skins/gskin/gnome_ocean/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gskin/gnome_ocean/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gskin/gnome_olive/base.bmp b/skins/gskin/gnome_olive/base.bmp new file mode 100644 index 0000000000..aee1c13979 Binary files /dev/null and b/skins/gskin/gnome_olive/base.bmp differ diff --git a/skins/gskin/gnome_olive/base_1.bmp b/skins/gskin/gnome_olive/base_1.bmp new file mode 100644 index 0000000000..19f3566421 Binary files /dev/null and b/skins/gskin/gnome_olive/base_1.bmp differ diff --git a/skins/gskin/gnome_olive/default.asm b/skins/gskin/gnome_olive/default.asm new file mode 100644 index 0000000000..40719c834b --- /dev/null +++ b/skins/gskin/gnome_olive/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x5A6649:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xA3BA80],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xE1DDC4],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gskin/gnome_olive/default.dtp b/skins/gskin/gnome_olive/default.dtp new file mode 100644 index 0000000000..896bb1a178 Binary files /dev/null and b/skins/gskin/gnome_olive/default.dtp differ diff --git a/skins/gskin/gnome_olive/default.dtp.asm b/skins/gskin/gnome_olive/default.dtp.asm new file mode 100644 index 0000000000..98fbc1182b --- /dev/null +++ b/skins/gskin/gnome_olive/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xA3BA80 +grab dd 0xD0DFB9 +grab_button dd 0x80965E +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xECE9D8 +work_button dd 0xECE9D8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xCDC7A6 diff --git a/skins/gskin/gnome_olive/default.skn b/skins/gskin/gnome_olive/default.skn new file mode 100644 index 0000000000..1d53be866a Binary files /dev/null and b/skins/gskin/gnome_olive/default.skn differ diff --git a/skins/gskin/gnome_olive/dtp_build.bat b/skins/gskin/gnome_olive/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gskin/gnome_olive/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gskin/gnome_olive/left.bmp b/skins/gskin/gnome_olive/left.bmp new file mode 100644 index 0000000000..e5e1b924c5 Binary files /dev/null and b/skins/gskin/gnome_olive/left.bmp differ diff --git a/skins/gskin/gnome_olive/left_1.bmp b/skins/gskin/gnome_olive/left_1.bmp new file mode 100644 index 0000000000..672702ef1e Binary files /dev/null and b/skins/gskin/gnome_olive/left_1.bmp differ diff --git a/skins/gskin/gnome_olive/me_skin.inc b/skins/gskin/gnome_olive/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gskin/gnome_olive/me_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/gskin/gnome_olive/oper.bmp b/skins/gskin/gnome_olive/oper.bmp new file mode 100644 index 0000000000..fefb34b955 Binary files /dev/null and b/skins/gskin/gnome_olive/oper.bmp differ diff --git a/skins/gskin/gnome_olive/oper_1.bmp b/skins/gskin/gnome_olive/oper_1.bmp new file mode 100644 index 0000000000..4e0da91940 Binary files /dev/null and b/skins/gskin/gnome_olive/oper_1.bmp differ diff --git a/skins/gskin/gnome_olive/pack_build.bat b/skins/gskin/gnome_olive/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gskin/gnome_olive/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gskin/gnome_olive/skn_build.bat b/skins/gskin/gnome_olive/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gskin/gnome_olive/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/gskin/gnome_red/base.bmp b/skins/gskin/gnome_red/base.bmp new file mode 100644 index 0000000000..c9d3c0c038 Binary files /dev/null and b/skins/gskin/gnome_red/base.bmp differ diff --git a/skins/gskin/gnome_red/base_1.bmp b/skins/gskin/gnome_red/base_1.bmp new file mode 100644 index 0000000000..d959c5a7dd Binary files /dev/null and b/skins/gskin/gnome_red/base_1.bmp differ diff --git a/skins/gskin/gnome_red/default.asm b/skins/gskin/gnome_red/default.asm new file mode 100644 index 0000000000..c52dee82d2 --- /dev/null +++ b/skins/gskin/gnome_red/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x492929:\ ; border inner color + bouter=0x201818:\ ; border outer color + bframe=0x9B3333],\ ; border frame color + colors inactive = [binner=0x827A6C:\ ; border inner color + bouter=0x3E3C39:\ ; border outer color + bframe=0xD7D0D0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][24:16],\ ; buttons coordinates + minimize = [-55:3][24:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/gskin/gnome_red/default.dtp b/skins/gskin/gnome_red/default.dtp new file mode 100644 index 0000000000..b29c6ea502 Binary files /dev/null and b/skins/gskin/gnome_red/default.dtp differ diff --git a/skins/gskin/gnome_red/default.dtp.asm b/skins/gskin/gnome_red/default.dtp.asm new file mode 100644 index 0000000000..c8e1a53506 --- /dev/null +++ b/skins/gskin/gnome_red/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x9B3333 +grab dd 0xD94040 +grab_button dd 0x723131 +grab_button_text dd 0xFFFFFF +grab_text dd 0xFFFFFF +work dd 0xE6E1E1 +work_button dd 0xE6E1E1 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xA59999 \ No newline at end of file diff --git a/skins/gskin/gnome_red/default.skn b/skins/gskin/gnome_red/default.skn new file mode 100644 index 0000000000..58110e8d96 Binary files /dev/null and b/skins/gskin/gnome_red/default.skn differ diff --git a/skins/gskin/gnome_red/dtp_build.bat b/skins/gskin/gnome_red/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/gskin/gnome_red/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/gskin/gnome_red/left.bmp b/skins/gskin/gnome_red/left.bmp new file mode 100644 index 0000000000..3416c83b68 Binary files /dev/null and b/skins/gskin/gnome_red/left.bmp differ diff --git a/skins/gskin/gnome_red/left_1.bmp b/skins/gskin/gnome_red/left_1.bmp new file mode 100644 index 0000000000..e3829c49b3 Binary files /dev/null and b/skins/gskin/gnome_red/left_1.bmp differ diff --git a/skins/gskin/gnome_red/me_skin.inc b/skins/gskin/gnome_red/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/gskin/gnome_red/me_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/gskin/gnome_red/oper.bmp b/skins/gskin/gnome_red/oper.bmp new file mode 100644 index 0000000000..b4aae67a2a Binary files /dev/null and b/skins/gskin/gnome_red/oper.bmp differ diff --git a/skins/gskin/gnome_red/oper_1.bmp b/skins/gskin/gnome_red/oper_1.bmp new file mode 100644 index 0000000000..1926089c3f Binary files /dev/null and b/skins/gskin/gnome_red/oper_1.bmp differ diff --git a/skins/gskin/gnome_red/pack_build.bat b/skins/gskin/gnome_red/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/gskin/gnome_red/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/gskin/gnome_red/skn_build.bat b/skins/gskin/gnome_red/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/gskin/gnome_red/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/base.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/base.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/base_1.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/base_1.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/default.asm b/skins/humanoid_OSX/Humanoid_OSX_dark/default.asm new file mode 100644 index 0000000000..7ec86ec773 --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:72:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/default.dtp b/skins/humanoid_OSX/Humanoid_OSX_dark/default.dtp new file mode 100644 index 0000000000..4bd9626ebf Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/default.dtp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/default.dtp.asm b/skins/humanoid_OSX/Humanoid_OSX_dark/default.dtp.asm new file mode 100644 index 0000000000..1a6249a604 --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x3E3E3E +grab_button dd 0x366F8D +grab_button_text dd 0x112432 +grab_text dd 0x3881A2 +work dd 0xf3f3f3 +work_button dd 0xf3f3f3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/default.skn b/skins/humanoid_OSX/Humanoid_OSX_dark/default.skn new file mode 100644 index 0000000000..88b1e683bb Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/default.skn differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/dtp_build.bat b/skins/humanoid_OSX/Humanoid_OSX_dark/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/left.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/left.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/left_1.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/left_1.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/me_skin.inc b/skins/humanoid_OSX/Humanoid_OSX_dark/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark/me_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/humanoid_OSX/Humanoid_OSX_dark/oper.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark/oper.bmp new file mode 100644 index 0000000000..824be5e230 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/oper.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/oper_1.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark/oper_1.bmp new file mode 100644 index 0000000000..c87bb54515 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark/oper_1.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/pack_build.bat b/skins/humanoid_OSX/Humanoid_OSX_dark/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark/skn_build.bat b/skins/humanoid_OSX/Humanoid_OSX_dark/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/base.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/base.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/base_1.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/base_1.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.asm b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.asm new file mode 100644 index 0000000000..b770b0954b --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:72:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x3E3E3E],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x3E3E3E],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.dtp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.dtp new file mode 100644 index 0000000000..bca6684e6b Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.dtp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.dtp.asm b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.dtp.asm new file mode 100644 index 0000000000..bb1c91854b --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x3E3E3E +grab dd 0x3E3E3E +grab_button dd 0x366F8D +grab_button_text dd 0x112432 +grab_text dd 0x3881A2 +work dd 0x3E3E3E +work_button dd 0x3E3E3E +work_button_text dd 0x3881A2 +work_text dd 0x3881A2 +work_graph dd 0x101010 \ No newline at end of file diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.skn b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.skn new file mode 100644 index 0000000000..db0dd53b60 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/default.skn differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/dtp_build.bat b/skins/humanoid_OSX/Humanoid_OSX_dark_night/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark_night/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/left.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/left.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/left_1.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/left_1.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/me_skin.inc b/skins/humanoid_OSX/Humanoid_OSX_dark_night/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark_night/me_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/humanoid_OSX/Humanoid_OSX_dark_night/oper.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/oper.bmp new file mode 100644 index 0000000000..824be5e230 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/oper.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/oper_1.bmp b/skins/humanoid_OSX/Humanoid_OSX_dark_night/oper_1.bmp new file mode 100644 index 0000000000..c87bb54515 Binary files /dev/null and b/skins/humanoid_OSX/Humanoid_OSX_dark_night/oper_1.bmp differ diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/pack_build.bat b/skins/humanoid_OSX/Humanoid_OSX_dark_night/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark_night/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/Humanoid_OSX_dark_night/skn_build.bat b/skins/humanoid_OSX/Humanoid_OSX_dark_night/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/Humanoid_OSX_dark_night/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/base.bmp b/skins/humanoid_OSX/humanoid_OSX_blue/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_blue/base.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/base_1.bmp b/skins/humanoid_OSX/humanoid_OSX_blue/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_blue/base_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/default.asm b/skins/humanoid_OSX/humanoid_OSX_blue/default.asm new file mode 100644 index 0000000000..981e2a8beb --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_blue/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:45:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/default.dtp.asm b/skins/humanoid_OSX/humanoid_OSX_blue/default.dtp.asm new file mode 100644 index 0000000000..d294526d67 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_blue/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x131313 +grab dd 0x3E3E3E +grab_button dd 0x366F8D +grab_button_text dd 0x112432 +grab_text dd 0x3881A2 +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/dtp_build.bat b/skins/humanoid_OSX/humanoid_OSX_blue/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_blue/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/left.bmp b/skins/humanoid_OSX/humanoid_OSX_blue/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_blue/left.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/left_1.bmp b/skins/humanoid_OSX/humanoid_OSX_blue/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_blue/left_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/me_skin.inc b/skins/humanoid_OSX/humanoid_OSX_blue/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_blue/me_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/humanoid_OSX/humanoid_OSX_blue/oper.bmp b/skins/humanoid_OSX/humanoid_OSX_blue/oper.bmp new file mode 100644 index 0000000000..824be5e230 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_blue/oper.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/oper_1.bmp b/skins/humanoid_OSX/humanoid_OSX_blue/oper_1.bmp new file mode 100644 index 0000000000..c87bb54515 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_blue/oper_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/pack_build.bat b/skins/humanoid_OSX/humanoid_OSX_blue/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_blue/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/humanoid_OSX_blue/skn_build.bat b/skins/humanoid_OSX/humanoid_OSX_blue/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_blue/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_green/base.bmp b/skins/humanoid_OSX/humanoid_OSX_green/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_green/base.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_green/base_1.bmp b/skins/humanoid_OSX/humanoid_OSX_green/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_green/base_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_green/default.asm b/skins/humanoid_OSX/humanoid_OSX_green/default.asm new file mode 100644 index 0000000000..981e2a8beb --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_green/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:45:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/humanoid_OSX_green/default.dtp.asm b/skins/humanoid_OSX/humanoid_OSX_green/default.dtp.asm new file mode 100644 index 0000000000..a06c4e6cb7 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_green/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x131313 +grab dd 0x3E3E3E +grab_button dd 0x5e8833 +grab_button_text dd 0x1f3111 +grab_text dd 0x70a039 +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_green/dtp_build.bat b/skins/humanoid_OSX/humanoid_OSX_green/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_green/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_green/left.bmp b/skins/humanoid_OSX/humanoid_OSX_green/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_green/left.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_green/left_1.bmp b/skins/humanoid_OSX/humanoid_OSX_green/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_green/left_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_green/me_skin.inc b/skins/humanoid_OSX/humanoid_OSX_green/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_green/me_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/humanoid_OSX/humanoid_OSX_green/oper.bmp b/skins/humanoid_OSX/humanoid_OSX_green/oper.bmp new file mode 100644 index 0000000000..94995c66e2 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_green/oper.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_green/oper_1.bmp b/skins/humanoid_OSX/humanoid_OSX_green/oper_1.bmp new file mode 100644 index 0000000000..e6ec240d3a Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_green/oper_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_green/pack_build.bat b/skins/humanoid_OSX/humanoid_OSX_green/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_green/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/humanoid_OSX_green/skn_build.bat b/skins/humanoid_OSX/humanoid_OSX_green/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_green/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/base.bmp b/skins/humanoid_OSX/humanoid_OSX_orange/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_orange/base.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/base_1.bmp b/skins/humanoid_OSX/humanoid_OSX_orange/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_orange/base_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/default.asm b/skins/humanoid_OSX/humanoid_OSX_orange/default.asm new file mode 100644 index 0000000000..981e2a8beb --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_orange/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:45:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/default.dtp.asm b/skins/humanoid_OSX/humanoid_OSX_orange/default.dtp.asm new file mode 100644 index 0000000000..8f8f85c4bb --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_orange/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x131313 +grab dd 0x3E3E3E +grab_button dd 0x904e2b +grab_button_text dd 0x341e0e +grab_text dd 0xaa552f +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/dtp_build.bat b/skins/humanoid_OSX/humanoid_OSX_orange/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_orange/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/left.bmp b/skins/humanoid_OSX/humanoid_OSX_orange/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_orange/left.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/left_1.bmp b/skins/humanoid_OSX/humanoid_OSX_orange/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_orange/left_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/me_skin.inc b/skins/humanoid_OSX/humanoid_OSX_orange/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_orange/me_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/humanoid_OSX/humanoid_OSX_orange/oper.bmp b/skins/humanoid_OSX/humanoid_OSX_orange/oper.bmp new file mode 100644 index 0000000000..c3ed83f730 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_orange/oper.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/oper_1.bmp b/skins/humanoid_OSX/humanoid_OSX_orange/oper_1.bmp new file mode 100644 index 0000000000..86e5970a9d Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_orange/oper_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/pack_build.bat b/skins/humanoid_OSX/humanoid_OSX_orange/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_orange/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/humanoid_OSX_orange/skn_build.bat b/skins/humanoid_OSX/humanoid_OSX_orange/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_orange/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_red/base.bmp b/skins/humanoid_OSX/humanoid_OSX_red/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_red/base.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_red/base_1.bmp b/skins/humanoid_OSX/humanoid_OSX_red/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_red/base_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_red/default.asm b/skins/humanoid_OSX/humanoid_OSX_red/default.asm new file mode 100644 index 0000000000..981e2a8beb --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_red/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:45:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/humanoid_OSX_red/default.dtp.asm b/skins/humanoid_OSX/humanoid_OSX_red/default.dtp.asm new file mode 100644 index 0000000000..40e1eb3d80 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_red/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x131313 +grab dd 0x3E3E3E +grab_button dd 0x982423 +grab_button_text dd 0x370f0b +grab_text dd 0xb42528 +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_red/dtp_build.bat b/skins/humanoid_OSX/humanoid_OSX_red/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_red/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_red/left.bmp b/skins/humanoid_OSX/humanoid_OSX_red/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_red/left.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_red/left_1.bmp b/skins/humanoid_OSX/humanoid_OSX_red/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_red/left_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_red/me_skin.inc b/skins/humanoid_OSX/humanoid_OSX_red/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_red/me_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/humanoid_OSX/humanoid_OSX_red/oper.bmp b/skins/humanoid_OSX/humanoid_OSX_red/oper.bmp new file mode 100644 index 0000000000..a7e8dba9ec Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_red/oper.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_red/oper_1.bmp b/skins/humanoid_OSX/humanoid_OSX_red/oper_1.bmp new file mode 100644 index 0000000000..19ac87f2bf Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_red/oper_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_red/pack_build.bat b/skins/humanoid_OSX/humanoid_OSX_red/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_red/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/humanoid_OSX_red/skn_build.bat b/skins/humanoid_OSX/humanoid_OSX_red/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_red/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/base.bmp b/skins/humanoid_OSX/humanoid_OSX_yellow/base.bmp new file mode 100644 index 0000000000..114534674f Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_yellow/base.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/base_1.bmp b/skins/humanoid_OSX/humanoid_OSX_yellow/base_1.bmp new file mode 100644 index 0000000000..212ef276a9 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_yellow/base_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/default.asm b/skins/humanoid_OSX/humanoid_OSX_yellow/default.asm new file mode 100644 index 0000000000..981e2a8beb --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_yellow/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:45:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + colors inactive = [binner=0x101010:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0x131313],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:3][16:16],\ ; buttons coordinates + minimize = [-40:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/default.dtp.asm b/skins/humanoid_OSX/humanoid_OSX_yellow/default.dtp.asm new file mode 100644 index 0000000000..e7dca9046e --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_yellow/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x131313 +grab dd 0x3E3E3E +grab_button dd 0x8e822c +grab_button_text dd 0x33310e +grab_text dd 0xa89631 +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/dtp_build.bat b/skins/humanoid_OSX/humanoid_OSX_yellow/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_yellow/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/left.bmp b/skins/humanoid_OSX/humanoid_OSX_yellow/left.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_yellow/left.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/left_1.bmp b/skins/humanoid_OSX/humanoid_OSX_yellow/left_1.bmp new file mode 100644 index 0000000000..0e3357dfb5 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_yellow/left_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/me_skin.inc b/skins/humanoid_OSX/humanoid_OSX_yellow/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_yellow/me_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/humanoid_OSX/humanoid_OSX_yellow/oper.bmp b/skins/humanoid_OSX/humanoid_OSX_yellow/oper.bmp new file mode 100644 index 0000000000..7bfbe14b2d Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_yellow/oper.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/oper_1.bmp b/skins/humanoid_OSX/humanoid_OSX_yellow/oper_1.bmp new file mode 100644 index 0000000000..81abe3db30 Binary files /dev/null and b/skins/humanoid_OSX/humanoid_OSX_yellow/oper_1.bmp differ diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/pack_build.bat b/skins/humanoid_OSX/humanoid_OSX_yellow/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_yellow/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/humanoid_OSX/humanoid_OSX_yellow/skn_build.bat b/skins/humanoid_OSX/humanoid_OSX_yellow/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/humanoid_OSX/humanoid_OSX_yellow/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/humanoid_OSX/pack_build.bat b/skins/humanoid_OSX/pack_build.bat new file mode 100644 index 0000000000..4253a4499a --- /dev/null +++ b/skins/humanoid_OSX/pack_build.bat @@ -0,0 +1,6 @@ +kpack humanoid_OSX_blue.skn humanoid_OSX_blue.skn +kpack humanoid_OSX_green.skn humanoid_OSX_green.skn +kpack humanoid_OSX_orange.skn humanoid_OSX_orange.skn +kpack humanoid_OSX_red.skn humanoid_OSX_red.skn +kpack humanoid_OSX_yellow.skn humanoid_OSX_yellow.skn +pause \ No newline at end of file diff --git a/skins/khrome2/base.bmp b/skins/khrome2/base.bmp new file mode 100644 index 0000000000..f4ac0dd77b Binary files /dev/null and b/skins/khrome2/base.bmp differ diff --git a/skins/khrome2/base_1.bmp b/skins/khrome2/base_1.bmp new file mode 100644 index 0000000000..e5bbfb1140 Binary files /dev/null and b/skins/khrome2/base_1.bmp differ diff --git a/skins/khrome2/default.asm b/skins/khrome2/default.asm new file mode 100644 index 0000000000..d63594cca1 --- /dev/null +++ b/skins/khrome2/default.asm @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x1e6db6],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x1e6db6],\ ; border frame color + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/khrome2/left.bmp b/skins/khrome2/left.bmp new file mode 100644 index 0000000000..7b8c4cee4e Binary files /dev/null and b/skins/khrome2/left.bmp differ diff --git a/skins/khrome2/left_1.bmp b/skins/khrome2/left_1.bmp new file mode 100644 index 0000000000..0918a05019 Binary files /dev/null and b/skins/khrome2/left_1.bmp differ diff --git a/skins/khrome2/me_skin.inc b/skins/khrome2/me_skin.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/khrome2/me_skin.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/khrome2/myblue.dtp b/skins/khrome2/myblue.dtp new file mode 100644 index 0000000000..835f700d80 Binary files /dev/null and b/skins/khrome2/myblue.dtp differ diff --git a/skins/khrome2/oper.bmp b/skins/khrome2/oper.bmp new file mode 100644 index 0000000000..80f45ccb4a Binary files /dev/null and b/skins/khrome2/oper.bmp differ diff --git a/skins/khrome2/oper_1.bmp b/skins/khrome2/oper_1.bmp new file mode 100644 index 0000000000..6c02ea632d Binary files /dev/null and b/skins/khrome2/oper_1.bmp differ diff --git a/skins/lightskin/base.bmp b/skins/lightskin/base.bmp new file mode 100644 index 0000000000..415cf898f0 Binary files /dev/null and b/skins/lightskin/base.bmp differ diff --git a/skins/lightskin/base_1.bmp b/skins/lightskin/base_1.bmp new file mode 100644 index 0000000000..b21b2c8cfe Binary files /dev/null and b/skins/lightskin/base_1.bmp differ diff --git a/skins/lightskin/default.asm b/skins/lightskin/default.asm new file mode 100644 index 0000000000..0fa32676eb --- /dev/null +++ b/skins/lightskin/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:44:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x006393],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xC0C0C0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/lightskin/default.dtp b/skins/lightskin/default.dtp new file mode 100644 index 0000000000..664fb45d78 Binary files /dev/null and b/skins/lightskin/default.dtp differ diff --git a/skins/lightskin/default.dtp.asm b/skins/lightskin/default.dtp.asm new file mode 100644 index 0000000000..64d1fb7e53 --- /dev/null +++ b/skins/lightskin/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x006393 +grab dd 0x0077b0 +grab_button dd 0xc0c0c0 +grab_button_text dd 0x000000 +grab_text dd 0xFFFFFF +work dd 0xCACACA +work_button dd 0xCACACA +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/lightskin/default.skn b/skins/lightskin/default.skn new file mode 100644 index 0000000000..eb84e88085 Binary files /dev/null and b/skins/lightskin/default.skn differ diff --git a/skins/lightskin/dtp_build.bat b/skins/lightskin/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/lightskin/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/lightskin/left.bmp b/skins/lightskin/left.bmp new file mode 100644 index 0000000000..b2809b5046 Binary files /dev/null and b/skins/lightskin/left.bmp differ diff --git a/skins/lightskin/left_1.bmp b/skins/lightskin/left_1.bmp new file mode 100644 index 0000000000..910ed25a98 Binary files /dev/null and b/skins/lightskin/left_1.bmp differ diff --git a/skins/lightskin/me_skin.inc b/skins/lightskin/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/lightskin/me_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/lightskin/oper.bmp b/skins/lightskin/oper.bmp new file mode 100644 index 0000000000..d327bcb912 Binary files /dev/null and b/skins/lightskin/oper.bmp differ diff --git a/skins/lightskin/oper_1.bmp b/skins/lightskin/oper_1.bmp new file mode 100644 index 0000000000..c7317e63cf Binary files /dev/null and b/skins/lightskin/oper_1.bmp differ diff --git a/skins/lightskin/pack_build.bat b/skins/lightskin/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/lightskin/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/lightskin/skn_build.bat b/skins/lightskin/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/lightskin/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/macos_l/base.bmp b/skins/macos_l/base.bmp new file mode 100644 index 0000000000..98f4a48a7e Binary files /dev/null and b/skins/macos_l/base.bmp differ diff --git a/skins/macos_l/base_1.bmp b/skins/macos_l/base_1.bmp new file mode 100644 index 0000000000..9168ced12e Binary files /dev/null and b/skins/macos_l/base_1.bmp differ diff --git a/skins/macos_l/default.asm b/skins/macos_l/default.asm new file mode 100644 index 0000000000..4bf345e3ed --- /dev/null +++ b/skins/macos_l/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [70:1:5:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xE8E8E8:\ ; border inner color + bouter=0xE8E8E8:\ ; border outer color + bframe=0xE8E8E8],\ ; border frame color + colors inactive = [binner=0xE8E8E8:\ ; border inner color + bouter=0xE8E8E8:\ ; border outer color + bframe=0xE8E8E8],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [5:3][16:16],\ ; buttons coordinates + minimize = [47:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/macos_l/default.dtp b/skins/macos_l/default.dtp new file mode 100644 index 0000000000..c98066e798 Binary files /dev/null and b/skins/macos_l/default.dtp differ diff --git a/skins/macos_l/default.dtp.asm b/skins/macos_l/default.dtp.asm new file mode 100644 index 0000000000..1783f1dd3e --- /dev/null +++ b/skins/macos_l/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xCACACA +grab dd 0xE8E8E8 +grab_button dd 0xCCCCCC +grab_button_text dd 0x000000 +grab_text dd 0x000000 +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/macos_l/default.skn b/skins/macos_l/default.skn new file mode 100644 index 0000000000..7ef652cb11 Binary files /dev/null and b/skins/macos_l/default.skn differ diff --git a/skins/macos_l/dtp_build.bat b/skins/macos_l/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/macos_l/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/macos_l/left.bmp b/skins/macos_l/left.bmp new file mode 100644 index 0000000000..f73d17554e Binary files /dev/null and b/skins/macos_l/left.bmp differ diff --git a/skins/macos_l/left_1.bmp b/skins/macos_l/left_1.bmp new file mode 100644 index 0000000000..b8520a3d95 Binary files /dev/null and b/skins/macos_l/left_1.bmp differ diff --git a/skins/macos_l/me_skin.inc b/skins/macos_l/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/macos_l/me_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/macos_l/oper.bmp b/skins/macos_l/oper.bmp new file mode 100644 index 0000000000..da17d258da Binary files /dev/null and b/skins/macos_l/oper.bmp differ diff --git a/skins/macos_l/oper_1.bmp b/skins/macos_l/oper_1.bmp new file mode 100644 index 0000000000..4b6eeba87f Binary files /dev/null and b/skins/macos_l/oper_1.bmp differ diff --git a/skins/macos_l/pack_build.bat b/skins/macos_l/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/macos_l/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/macos_l/skn_build.bat b/skins/macos_l/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/macos_l/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/mage-scroll/ReadMe.txt b/skins/mage-scroll/ReadMe.txt new file mode 100644 index 0000000000..05ba1af7e8 --- /dev/null +++ b/skins/mage-scroll/ReadMe.txt @@ -0,0 +1,7 @@ +Used standart skin codes at KolibriOS +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; \ No newline at end of file diff --git a/skins/mage-scroll/base.bmp b/skins/mage-scroll/base.bmp new file mode 100644 index 0000000000..1fef18f235 Binary files /dev/null and b/skins/mage-scroll/base.bmp differ diff --git a/skins/mage-scroll/base_1.bmp b/skins/mage-scroll/base_1.bmp new file mode 100644 index 0000000000..5154489a17 Binary files /dev/null and b/skins/mage-scroll/base_1.bmp differ diff --git a/skins/mage-scroll/colour.asm b/skins/mage-scroll/colour.asm new file mode 100644 index 0000000000..d3a97ea5ba --- /dev/null +++ b/skins/mage-scroll/colour.asm @@ -0,0 +1,15 @@ +;used: 'fasm colour.asm colour.dtp' +;to created file colour.dtp +;for sets this system_colors in skin +;-------------------------------------- +dd 0x8795A5 ;; .frame +dd 0xACBFD4 ;; .grab +dd 0x8EB1D2 ;; .grab_button +dd 0x9E0404 ;; .grab_button_text +dd 0x040404 ;; .grab_text +dd 0xD2D8E0 ;; .work +dd 0x3D6D94 ;; .work_button +dd 0xD3FD11 ;; .work_button_text +dd 0x080808 ;; .work_text +dd 0x4D7DA4 ;; .work_graph +;------------------------------------- \ No newline at end of file diff --git a/skins/mage-scroll/colour.dtp b/skins/mage-scroll/colour.dtp new file mode 100644 index 0000000000..dd7b5db8b9 Binary files /dev/null and b/skins/mage-scroll/colour.dtp differ diff --git a/skins/mage-scroll/default.asm b/skins/mage-scroll/default.asm new file mode 100644 index 0000000000..c429b51353 --- /dev/null +++ b/skins/mage-scroll/default.asm @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [12:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x4269A4],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x5C7394],\ ; border frame color + dtp = 'colour.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-18:4][12:12],\ ; buttons coordinates + minimize = [-34:6][12:12] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/mage-scroll/left.bmp b/skins/mage-scroll/left.bmp new file mode 100644 index 0000000000..8d5f079ac7 Binary files /dev/null and b/skins/mage-scroll/left.bmp differ diff --git a/skins/mage-scroll/left_1.bmp b/skins/mage-scroll/left_1.bmp new file mode 100644 index 0000000000..b46cd55fd8 Binary files /dev/null and b/skins/mage-scroll/left_1.bmp differ diff --git a/skins/mage-scroll/me_skin.inc b/skins/mage-scroll/me_skin.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/mage-scroll/me_skin.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/mage-scroll/oper.bmp b/skins/mage-scroll/oper.bmp new file mode 100644 index 0000000000..6a1443c98a Binary files /dev/null and b/skins/mage-scroll/oper.bmp differ diff --git a/skins/mage-scroll/oper_1.bmp b/skins/mage-scroll/oper_1.bmp new file mode 100644 index 0000000000..4710e9ff65 Binary files /dev/null and b/skins/mage-scroll/oper_1.bmp differ diff --git a/skins/mage-slot/ReadMe.txt b/skins/mage-slot/ReadMe.txt new file mode 100644 index 0000000000..05ba1af7e8 --- /dev/null +++ b/skins/mage-slot/ReadMe.txt @@ -0,0 +1,7 @@ +Used standart skin codes at KolibriOS +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; \ No newline at end of file diff --git a/skins/mage-slot/base.bmp b/skins/mage-slot/base.bmp new file mode 100644 index 0000000000..0513b4f091 Binary files /dev/null and b/skins/mage-slot/base.bmp differ diff --git a/skins/mage-slot/base_1.bmp b/skins/mage-slot/base_1.bmp new file mode 100644 index 0000000000..1da97cea08 Binary files /dev/null and b/skins/mage-slot/base_1.bmp differ diff --git a/skins/mage-slot/colour.asm b/skins/mage-slot/colour.asm new file mode 100644 index 0000000000..d3a97ea5ba --- /dev/null +++ b/skins/mage-slot/colour.asm @@ -0,0 +1,15 @@ +;used: 'fasm colour.asm colour.dtp' +;to created file colour.dtp +;for sets this system_colors in skin +;-------------------------------------- +dd 0x8795A5 ;; .frame +dd 0xACBFD4 ;; .grab +dd 0x8EB1D2 ;; .grab_button +dd 0x9E0404 ;; .grab_button_text +dd 0x040404 ;; .grab_text +dd 0xD2D8E0 ;; .work +dd 0x3D6D94 ;; .work_button +dd 0xD3FD11 ;; .work_button_text +dd 0x080808 ;; .work_text +dd 0x4D7DA4 ;; .work_graph +;------------------------------------- \ No newline at end of file diff --git a/skins/mage-slot/colour.dtp b/skins/mage-slot/colour.dtp new file mode 100644 index 0000000000..dd7b5db8b9 Binary files /dev/null and b/skins/mage-slot/colour.dtp differ diff --git a/skins/mage-slot/default.asm b/skins/mage-slot/default.asm new file mode 100644 index 0000000000..3b82e39aef --- /dev/null +++ b/skins/mage-slot/default.asm @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [12:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x4269A4],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x607492],\ ; border frame color + dtp = 'colour.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-18:4][12:12],\ ; buttons coordinates + minimize = [-34:6][12:12] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/mage-slot/left.bmp b/skins/mage-slot/left.bmp new file mode 100644 index 0000000000..a56fec2b71 Binary files /dev/null and b/skins/mage-slot/left.bmp differ diff --git a/skins/mage-slot/left_1.bmp b/skins/mage-slot/left_1.bmp new file mode 100644 index 0000000000..612a3a5647 Binary files /dev/null and b/skins/mage-slot/left_1.bmp differ diff --git a/skins/mage-slot/me_skin.inc b/skins/mage-slot/me_skin.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/mage-slot/me_skin.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/mage-slot/oper.bmp b/skins/mage-slot/oper.bmp new file mode 100644 index 0000000000..24a44ca748 Binary files /dev/null and b/skins/mage-slot/oper.bmp differ diff --git a/skins/mage-slot/oper_1.bmp b/skins/mage-slot/oper_1.bmp new file mode 100644 index 0000000000..c81ad10dee Binary files /dev/null and b/skins/mage-slot/oper_1.bmp differ diff --git a/skins/mage-teckno/base.bmp b/skins/mage-teckno/base.bmp new file mode 100644 index 0000000000..6931b0b5c8 Binary files /dev/null and b/skins/mage-teckno/base.bmp differ diff --git a/skins/mage-teckno/base_1.bmp b/skins/mage-teckno/base_1.bmp new file mode 100644 index 0000000000..6ee9e6b310 Binary files /dev/null and b/skins/mage-teckno/base_1.bmp differ diff --git a/skins/mage-teckno/colour.asm b/skins/mage-teckno/colour.asm new file mode 100644 index 0000000000..886419ce54 --- /dev/null +++ b/skins/mage-teckno/colour.asm @@ -0,0 +1,15 @@ +;used: 'fasm colour.asm colour.dtp' +;to created file colour.dtp +;for sets this system_colors in skin +;-------------------------------------- +dd 0x49768E ;; .frame +dd 0x8DBAC4 ;; .grab +dd 0x6AA4B3 ;; .grab_button +dd 0xE00404 ;; .grab_button_text +dd 0x040404 ;; .grab_text +dd 0xB0C0CC ;; .work +dd 0x84A8BE ;; .work_button +dd 0x000800 ;; .work_button_text +dd 0x080808 ;; .work_text +dd 0x2F5BA0 ;; .work_graph +;------------------------------------- \ No newline at end of file diff --git a/skins/mage-teckno/colour.dtp b/skins/mage-teckno/colour.dtp new file mode 100644 index 0000000000..f84df57c24 Binary files /dev/null and b/skins/mage-teckno/colour.dtp differ diff --git a/skins/mage-teckno/default.asm b/skins/mage-teckno/default.asm new file mode 100644 index 0000000000..3569204520 --- /dev/null +++ b/skins/mage-teckno/default.asm @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [27:1:69:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x204059:\ ; border inner color + bouter=0x103049:\ ; border outer color + bframe=0x39667e],\ ; border frame color + colors inactive = [binner=0x7b8f9e:\ ; border inner color + bouter=0x6b7f8e:\ ; border outer color + bframe=0x7994a6],\ ; border frame color + dtp = 'colour.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-29:3][22:14],\ ; buttons coordinates + minimize = [-55:5][22:14] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/mage-teckno/left.bmp b/skins/mage-teckno/left.bmp new file mode 100644 index 0000000000..b2b9706102 Binary files /dev/null and b/skins/mage-teckno/left.bmp differ diff --git a/skins/mage-teckno/left_1.bmp b/skins/mage-teckno/left_1.bmp new file mode 100644 index 0000000000..e7e515fbbb Binary files /dev/null and b/skins/mage-teckno/left_1.bmp differ diff --git a/skins/mage-teckno/me_skin.inc b/skins/mage-teckno/me_skin.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/mage-teckno/me_skin.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/mage-teckno/oper.bmp b/skins/mage-teckno/oper.bmp new file mode 100644 index 0000000000..a112fe64ee Binary files /dev/null and b/skins/mage-teckno/oper.bmp differ diff --git a/skins/mage-teckno/oper_1.bmp b/skins/mage-teckno/oper_1.bmp new file mode 100644 index 0000000000..2ce2c7cc31 Binary files /dev/null and b/skins/mage-teckno/oper_1.bmp differ diff --git a/skins/mage-teckno/readme.txt b/skins/mage-teckno/readme.txt new file mode 100644 index 0000000000..05ba1af7e8 --- /dev/null +++ b/skins/mage-teckno/readme.txt @@ -0,0 +1,7 @@ +Used standart skin codes at KolibriOS +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; \ No newline at end of file diff --git a/skins/mist/base.bmp b/skins/mist/base.bmp new file mode 100644 index 0000000000..187c10033f Binary files /dev/null and b/skins/mist/base.bmp differ diff --git a/skins/mist/base_1.bmp b/skins/mist/base_1.bmp new file mode 100644 index 0000000000..187c10033f Binary files /dev/null and b/skins/mist/base_1.bmp differ diff --git a/skins/mist/default.asm b/skins/mist/default.asm new file mode 100644 index 0000000000..8ec0967fee --- /dev/null +++ b/skins/mist/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:41:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xb1b1b1:\ ; border inner color + bouter=0xb1b1b1:\ ; border outer color + bframe=0xf4f4f4],\ ; border frame color + colors inactive = [binner=0xb1b1b1:\ ; border inner color + bouter=0xb1b1b1:\ ; border outer color + bframe=0xf4f4f4],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:4][12:12],\ ; buttons coordinates + minimize = [-39:4][12:12] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/mist/default.dtp b/skins/mist/default.dtp new file mode 100644 index 0000000000..3a0275341d Binary files /dev/null and b/skins/mist/default.dtp differ diff --git a/skins/mist/default.dtp.asm b/skins/mist/default.dtp.asm new file mode 100644 index 0000000000..6e7e334170 --- /dev/null +++ b/skins/mist/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf4f4f4 +grab dd 0xf4f4f4 +grab_button dd 0xebebeb +grab_button_text dd 0x606060 +grab_text dd 0x606060 +work dd 0xf4f4f4 +work_button dd 0xebebeb +work_button_text dd 0x606060 +work_text dd 0x606060 +work_graph dd 0xb1b1b1 \ No newline at end of file diff --git a/skins/mist/default.skn b/skins/mist/default.skn new file mode 100644 index 0000000000..0a549e7f11 Binary files /dev/null and b/skins/mist/default.skn differ diff --git a/skins/mist/dtp_build.bat b/skins/mist/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/mist/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/mist/left.bmp b/skins/mist/left.bmp new file mode 100644 index 0000000000..08580c4aec Binary files /dev/null and b/skins/mist/left.bmp differ diff --git a/skins/mist/left_1.bmp b/skins/mist/left_1.bmp new file mode 100644 index 0000000000..08580c4aec Binary files /dev/null and b/skins/mist/left_1.bmp differ diff --git a/skins/mist/me_skin.inc b/skins/mist/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/mist/me_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/mist/oper.bmp b/skins/mist/oper.bmp new file mode 100644 index 0000000000..a74dab039a Binary files /dev/null and b/skins/mist/oper.bmp differ diff --git a/skins/mist/oper_1.bmp b/skins/mist/oper_1.bmp new file mode 100644 index 0000000000..c563e7ddc0 Binary files /dev/null and b/skins/mist/oper_1.bmp differ diff --git a/skins/mist/pack_build.bat b/skins/mist/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/mist/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/mist/skn_build.bat b/skins/mist/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/mist/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/mist_color/base.bmp b/skins/mist_color/base.bmp new file mode 100644 index 0000000000..187c10033f Binary files /dev/null and b/skins/mist_color/base.bmp differ diff --git a/skins/mist_color/base_1.bmp b/skins/mist_color/base_1.bmp new file mode 100644 index 0000000000..187c10033f Binary files /dev/null and b/skins/mist_color/base_1.bmp differ diff --git a/skins/mist_color/default.asm b/skins/mist_color/default.asm new file mode 100644 index 0000000000..c0da98f1e4 --- /dev/null +++ b/skins/mist_color/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:66:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xb1b1b1:\ ; border inner color + bouter=0xb1b1b1:\ ; border outer color + bframe=0xf4f4f4],\ ; border frame color + colors inactive = [binner=0xb1b1b1:\ ; border inner color + bouter=0xb1b1b1:\ ; border outer color + bframe=0xf4f4f4],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:6][12:12],\ ; buttons coordinates + minimize = [-38:6][12:12] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/mist_color/default.dtp b/skins/mist_color/default.dtp new file mode 100644 index 0000000000..3a0275341d Binary files /dev/null and b/skins/mist_color/default.dtp differ diff --git a/skins/mist_color/default.dtp.asm b/skins/mist_color/default.dtp.asm new file mode 100644 index 0000000000..6e7e334170 --- /dev/null +++ b/skins/mist_color/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf4f4f4 +grab dd 0xf4f4f4 +grab_button dd 0xebebeb +grab_button_text dd 0x606060 +grab_text dd 0x606060 +work dd 0xf4f4f4 +work_button dd 0xebebeb +work_button_text dd 0x606060 +work_text dd 0x606060 +work_graph dd 0xb1b1b1 \ No newline at end of file diff --git a/skins/mist_color/default.skn b/skins/mist_color/default.skn new file mode 100644 index 0000000000..e2355d4829 Binary files /dev/null and b/skins/mist_color/default.skn differ diff --git a/skins/mist_color/dtp_build.bat b/skins/mist_color/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/mist_color/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/mist_color/left.bmp b/skins/mist_color/left.bmp new file mode 100644 index 0000000000..08580c4aec Binary files /dev/null and b/skins/mist_color/left.bmp differ diff --git a/skins/mist_color/left_1.bmp b/skins/mist_color/left_1.bmp new file mode 100644 index 0000000000..08580c4aec Binary files /dev/null and b/skins/mist_color/left_1.bmp differ diff --git a/skins/mist_color/me_skin.inc b/skins/mist_color/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/mist_color/me_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/mist_color/oper.bmp b/skins/mist_color/oper.bmp new file mode 100644 index 0000000000..f77ff3b7e5 Binary files /dev/null and b/skins/mist_color/oper.bmp differ diff --git a/skins/mist_color/oper_1.bmp b/skins/mist_color/oper_1.bmp new file mode 100644 index 0000000000..06fddfacbb Binary files /dev/null and b/skins/mist_color/oper_1.bmp differ diff --git a/skins/mist_color/pack_build.bat b/skins/mist_color/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/mist_color/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/mist_color/skn_build.bat b/skins/mist_color/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/mist_color/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/mygrey/base.bmp b/skins/mygrey/base.bmp new file mode 100644 index 0000000000..ad9674f24e Binary files /dev/null and b/skins/mygrey/base.bmp differ diff --git a/skins/mygrey/build.bat b/skins/mygrey/build.bat new file mode 100644 index 0000000000..c3a93565d4 --- /dev/null +++ b/skins/mygrey/build.bat @@ -0,0 +1,9 @@ +@echo off +set fasm=c:\kolibri\usr\dos\fasm.exe +set file=default +set srcext=asm +set binext=skn + +%fasm% %file%.%srcext% %file%.%binext% +pause +echo. \ No newline at end of file diff --git a/skins/mygrey/default.asm b/skins/mygrey/default.asm new file mode 100644 index 0000000000..d976c3385e --- /dev/null +++ b/skins/mygrey/default.asm @@ -0,0 +1,28 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xffffff:\ ; border inner color + bouter=0x6e6e6e:\ ; border outer color + bframe=0x7d7d7d],\ ; border frame color + colors inactive = [binner=0xffffff:\ ; border inner color + bouter=0x6e6e6e:\ ; border outer color + bframe=0x7d7d7d],\ ; border frame color + dtp = 'gray.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left,\ ; skin bitmaps pointers + left inactive = bmp_left,\ + oper active = bmp_oper,\ + oper inactive = bmp_oper,\ + base active = bmp_base,\ + base inactive = bmp_base + +BITMAP bmp_left ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' \ No newline at end of file diff --git a/skins/mygrey/default.skn b/skins/mygrey/default.skn new file mode 100644 index 0000000000..afae142477 Binary files /dev/null and b/skins/mygrey/default.skn differ diff --git a/skins/mygrey/gray.dtp b/skins/mygrey/gray.dtp new file mode 100644 index 0000000000..15b66db988 Binary files /dev/null and b/skins/mygrey/gray.dtp differ diff --git a/skins/mygrey/left.bmp b/skins/mygrey/left.bmp new file mode 100644 index 0000000000..f2bf274df6 Binary files /dev/null and b/skins/mygrey/left.bmp differ diff --git a/skins/mygrey/me_skin.inc b/skins/mygrey/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/mygrey/me_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/mygrey/oper.bmp b/skins/mygrey/oper.bmp new file mode 100644 index 0000000000..cd5cacefe3 Binary files /dev/null and b/skins/mygrey/oper.bmp differ diff --git a/skins/myskin1/base.bmp b/skins/myskin1/base.bmp new file mode 100644 index 0000000000..2183439ff2 Binary files /dev/null and b/skins/myskin1/base.bmp differ diff --git a/skins/myskin1/default.asm b/skins/myskin1/default.asm new file mode 100644 index 0000000000..83a3916446 --- /dev/null +++ b/skins/myskin1/default.asm @@ -0,0 +1,28 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x4488ff],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x4488ff],\ ; border frame color + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left,\ ; skin bitmaps pointers + left inactive = bmp_left,\ + oper active = bmp_oper,\ + oper inactive = bmp_oper,\ + base active = bmp_base,\ + base inactive = bmp_base + +BITMAP bmp_left ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' \ No newline at end of file diff --git a/skins/myskin1/left.bmp b/skins/myskin1/left.bmp new file mode 100644 index 0000000000..263f4cecb3 Binary files /dev/null and b/skins/myskin1/left.bmp differ diff --git a/skins/myskin1/me_skin.inc b/skins/myskin1/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/myskin1/me_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/myskin1/myblue.dtp b/skins/myskin1/myblue.dtp new file mode 100644 index 0000000000..9e268cc7a7 Binary files /dev/null and b/skins/myskin1/myblue.dtp differ diff --git a/skins/myskin1/oper.bmp b/skins/myskin1/oper.bmp new file mode 100644 index 0000000000..2e77ff3585 Binary files /dev/null and b/skins/myskin1/oper.bmp differ diff --git a/skins/myskin2/base.bmp b/skins/myskin2/base.bmp new file mode 100644 index 0000000000..3195f51da0 Binary files /dev/null and b/skins/myskin2/base.bmp differ diff --git a/skins/myskin2/default.asm b/skins/myskin2/default.asm new file mode 100644 index 0000000000..6bbd60e550 --- /dev/null +++ b/skins/myskin2/default.asm @@ -0,0 +1,28 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x0000ff],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x0000ff],\ ; border frame color + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left,\ ; skin bitmaps pointers + left inactive = bmp_left,\ + oper active = bmp_oper,\ + oper inactive = bmp_oper,\ + base active = bmp_base,\ + base inactive = bmp_base + +BITMAP bmp_left ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' \ No newline at end of file diff --git a/skins/myskin2/left.bmp b/skins/myskin2/left.bmp new file mode 100644 index 0000000000..bf4039e479 Binary files /dev/null and b/skins/myskin2/left.bmp differ diff --git a/skins/myskin2/me_skin.inc b/skins/myskin2/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/myskin2/me_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/myskin2/myblue.dtp b/skins/myskin2/myblue.dtp new file mode 100644 index 0000000000..9e268cc7a7 Binary files /dev/null and b/skins/myskin2/myblue.dtp differ diff --git a/skins/myskin2/oper.bmp b/skins/myskin2/oper.bmp new file mode 100644 index 0000000000..e70270823b Binary files /dev/null and b/skins/myskin2/oper.bmp differ diff --git a/skins/myskin3/base.bmp b/skins/myskin3/base.bmp new file mode 100644 index 0000000000..38fc96e93c Binary files /dev/null and b/skins/myskin3/base.bmp differ diff --git a/skins/myskin3/default.asm b/skins/myskin3/default.asm new file mode 100644 index 0000000000..e4213e418f --- /dev/null +++ b/skins/myskin3/default.asm @@ -0,0 +1,28 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x3355dd:\ ; border inner color + bouter=0x1133dd:\ ; border outer color + bframe=0x6688dd],\ ; border frame color + colors inactive = [binner=0x3355dd:\ ; border inner color + bouter=0x1133dd:\ ; border outer color + bframe=0x6688dd],\ ; border frame color + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left,\ ; skin bitmaps pointers + left inactive = bmp_left,\ + oper active = bmp_oper,\ + oper inactive = bmp_oper,\ + base active = bmp_base,\ + base inactive = bmp_base + +BITMAP bmp_left ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' \ No newline at end of file diff --git a/skins/myskin3/default.skn b/skins/myskin3/default.skn new file mode 100644 index 0000000000..847595ec85 Binary files /dev/null and b/skins/myskin3/default.skn differ diff --git a/skins/myskin3/left.bmp b/skins/myskin3/left.bmp new file mode 100644 index 0000000000..fb97cfc05c Binary files /dev/null and b/skins/myskin3/left.bmp differ diff --git a/skins/myskin3/me_skin.inc b/skins/myskin3/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/myskin3/me_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/myskin3/myblue.dtp b/skins/myskin3/myblue.dtp new file mode 100644 index 0000000000..9e268cc7a7 Binary files /dev/null and b/skins/myskin3/myblue.dtp differ diff --git a/skins/myskin3/oper.bmp b/skins/myskin3/oper.bmp new file mode 100644 index 0000000000..2563659891 Binary files /dev/null and b/skins/myskin3/oper.bmp differ diff --git a/skins/myskin4/DEFAULT.DTP b/skins/myskin4/DEFAULT.DTP new file mode 100644 index 0000000000..d87c183321 Binary files /dev/null and b/skins/myskin4/DEFAULT.DTP differ diff --git a/skins/myskin4/DEFAULT.SKN b/skins/myskin4/DEFAULT.SKN new file mode 100644 index 0000000000..d9020860c5 Binary files /dev/null and b/skins/myskin4/DEFAULT.SKN differ diff --git a/skins/myskin4/base.bmp b/skins/myskin4/base.bmp new file mode 100644 index 0000000000..cf52d233fe Binary files /dev/null and b/skins/myskin4/base.bmp differ diff --git a/skins/myskin4/build.bat b/skins/myskin4/build.bat new file mode 100644 index 0000000000..c3a93565d4 --- /dev/null +++ b/skins/myskin4/build.bat @@ -0,0 +1,9 @@ +@echo off +set fasm=c:\kolibri\usr\dos\fasm.exe +set file=default +set srcext=asm +set binext=skn + +%fasm% %file%.%srcext% %file%.%binext% +pause +echo. \ No newline at end of file diff --git a/skins/myskin4/default.asm b/skins/myskin4/default.asm new file mode 100644 index 0000000000..6a78ef4a16 --- /dev/null +++ b/skins/myskin4/default.asm @@ -0,0 +1,28 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xffffff:\ ; border inner color + bouter=0x7d7d7d:\ ; border outer color + bframe=0x6e6e6e],\ ; border frame color + colors inactive = [binner=0xffffff:\ ; border inner color + bouter=0x7d7d7d:\ ; border outer color + bframe=0x6e6e6e],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [left:top][width:height] + +SKIN_BITMAPS \ + left active = bmp_left,\ ; skin bitmaps pointers + left inactive = bmp_left,\ + oper active = bmp_oper,\ + oper inactive = bmp_oper,\ + base active = bmp_base,\ + base inactive = bmp_base + +BITMAP bmp_left ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' \ No newline at end of file diff --git a/skins/myskin4/left.bmp b/skins/myskin4/left.bmp new file mode 100644 index 0000000000..547f638ddb Binary files /dev/null and b/skins/myskin4/left.bmp differ diff --git a/skins/myskin4/me_skin.inc b/skins/myskin4/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/myskin4/me_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/myskin4/oper.bmp b/skins/myskin4/oper.bmp new file mode 100644 index 0000000000..27c8185866 Binary files /dev/null and b/skins/myskin4/oper.bmp differ diff --git a/skins/neutral/neutral/base.bmp b/skins/neutral/neutral/base.bmp new file mode 100644 index 0000000000..87ef660f6d Binary files /dev/null and b/skins/neutral/neutral/base.bmp differ diff --git a/skins/neutral/neutral/base_1.bmp b/skins/neutral/neutral/base_1.bmp new file mode 100644 index 0000000000..12f6b5b796 Binary files /dev/null and b/skins/neutral/neutral/base_1.bmp differ diff --git a/skins/neutral/neutral/default.asm b/skins/neutral/neutral/default.asm new file mode 100644 index 0000000000..8fe59ac44c --- /dev/null +++ b/skins/neutral/neutral/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:36:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x4b6b8a],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xc0c0c0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:3][15:15],\ ; buttons coordinates + minimize = [-36:3][15:15] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/neutral/neutral/default.dtp b/skins/neutral/neutral/default.dtp new file mode 100644 index 0000000000..f8df31e6a7 Binary files /dev/null and b/skins/neutral/neutral/default.dtp differ diff --git a/skins/neutral/neutral/default.dtp.asm b/skins/neutral/neutral/default.dtp.asm new file mode 100644 index 0000000000..cda97bac6c --- /dev/null +++ b/skins/neutral/neutral/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x4b6b8a +grab dd 0x8aa2ba +grab_button dd 0xcecece +grab_button_text dd 0x000000 +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xf3f3f3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/neutral/neutral/dtp_build.bat b/skins/neutral/neutral/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/neutral/neutral/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/neutral/neutral/left.bmp b/skins/neutral/neutral/left.bmp new file mode 100644 index 0000000000..ec7e608d30 Binary files /dev/null and b/skins/neutral/neutral/left.bmp differ diff --git a/skins/neutral/neutral/left_1.bmp b/skins/neutral/neutral/left_1.bmp new file mode 100644 index 0000000000..993f261b4c Binary files /dev/null and b/skins/neutral/neutral/left_1.bmp differ diff --git a/skins/neutral/neutral/me_skin.inc b/skins/neutral/neutral/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/neutral/neutral/me_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/neutral/neutral/oper.bmp b/skins/neutral/neutral/oper.bmp new file mode 100644 index 0000000000..fa2f070439 Binary files /dev/null and b/skins/neutral/neutral/oper.bmp differ diff --git a/skins/neutral/neutral/oper_1.bmp b/skins/neutral/neutral/oper_1.bmp new file mode 100644 index 0000000000..ce490e8fe5 Binary files /dev/null and b/skins/neutral/neutral/oper_1.bmp differ diff --git a/skins/neutral/neutral/pack_build.bat b/skins/neutral/neutral/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/neutral/neutral/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/neutral/neutral/skn_build.bat b/skins/neutral/neutral/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/neutral/neutral/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/neutral/neutral_blue/base.bmp b/skins/neutral/neutral_blue/base.bmp new file mode 100644 index 0000000000..87ef660f6d Binary files /dev/null and b/skins/neutral/neutral_blue/base.bmp differ diff --git a/skins/neutral/neutral_blue/base_1.bmp b/skins/neutral/neutral_blue/base_1.bmp new file mode 100644 index 0000000000..12f6b5b796 Binary files /dev/null and b/skins/neutral/neutral_blue/base_1.bmp differ diff --git a/skins/neutral/neutral_blue/default.asm b/skins/neutral/neutral_blue/default.asm new file mode 100644 index 0000000000..ca53f81901 --- /dev/null +++ b/skins/neutral/neutral_blue/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:41:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x4b6b8a],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xc0c0c0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:3][15:15],\ ; buttons coordinates + minimize = [-36:3][15:15] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/neutral/neutral_blue/default.dtp.asm b/skins/neutral/neutral_blue/default.dtp.asm new file mode 100644 index 0000000000..1727d96967 --- /dev/null +++ b/skins/neutral/neutral_blue/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x4b6b8a +grab dd 0x8aa2ba +grab_button dd 0xcecece +grab_button_text dd 0x000000 +grab_text dd 0xffffff +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/neutral/neutral_blue/dtp_build.bat b/skins/neutral/neutral_blue/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/neutral/neutral_blue/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/neutral/neutral_blue/left.bmp b/skins/neutral/neutral_blue/left.bmp new file mode 100644 index 0000000000..ec7e608d30 Binary files /dev/null and b/skins/neutral/neutral_blue/left.bmp differ diff --git a/skins/neutral/neutral_blue/left_1.bmp b/skins/neutral/neutral_blue/left_1.bmp new file mode 100644 index 0000000000..993f261b4c Binary files /dev/null and b/skins/neutral/neutral_blue/left_1.bmp differ diff --git a/skins/neutral/neutral_blue/me_skin.inc b/skins/neutral/neutral_blue/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/neutral/neutral_blue/me_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/neutral/neutral_blue/oper.bmp b/skins/neutral/neutral_blue/oper.bmp new file mode 100644 index 0000000000..fa2f070439 Binary files /dev/null and b/skins/neutral/neutral_blue/oper.bmp differ diff --git a/skins/neutral/neutral_blue/oper_1.bmp b/skins/neutral/neutral_blue/oper_1.bmp new file mode 100644 index 0000000000..ce490e8fe5 Binary files /dev/null and b/skins/neutral/neutral_blue/oper_1.bmp differ diff --git a/skins/neutral/neutral_blue/pack_build.bat b/skins/neutral/neutral_blue/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/neutral/neutral_blue/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/neutral/neutral_blue/skn_build.bat b/skins/neutral/neutral_blue/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/neutral/neutral_blue/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/neutral/neutral_green/base.bmp b/skins/neutral/neutral_green/base.bmp new file mode 100644 index 0000000000..6ab0fbeb02 Binary files /dev/null and b/skins/neutral/neutral_green/base.bmp differ diff --git a/skins/neutral/neutral_green/base_1.bmp b/skins/neutral/neutral_green/base_1.bmp new file mode 100644 index 0000000000..12f6b5b796 Binary files /dev/null and b/skins/neutral/neutral_green/base_1.bmp differ diff --git a/skins/neutral/neutral_green/default.asm b/skins/neutral/neutral_green/default.asm new file mode 100644 index 0000000000..c1680a9015 --- /dev/null +++ b/skins/neutral/neutral_green/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:41:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x6a8a4b],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xc0c0c0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:3][15:15],\ ; buttons coordinates + minimize = [-36:3][15:15] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/neutral/neutral_green/default.dtp.asm b/skins/neutral/neutral_green/default.dtp.asm new file mode 100644 index 0000000000..deb40dd8bf --- /dev/null +++ b/skins/neutral/neutral_green/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x6a8a4b +grab dd 0xa1ba8a +grab_button dd 0xcecece +grab_button_text dd 0x000000 +grab_text dd 0xffffff +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/neutral/neutral_green/dtp_build.bat b/skins/neutral/neutral_green/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/neutral/neutral_green/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/neutral/neutral_green/left.bmp b/skins/neutral/neutral_green/left.bmp new file mode 100644 index 0000000000..38d8be7763 Binary files /dev/null and b/skins/neutral/neutral_green/left.bmp differ diff --git a/skins/neutral/neutral_green/left_1.bmp b/skins/neutral/neutral_green/left_1.bmp new file mode 100644 index 0000000000..993f261b4c Binary files /dev/null and b/skins/neutral/neutral_green/left_1.bmp differ diff --git a/skins/neutral/neutral_green/me_skin.inc b/skins/neutral/neutral_green/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/neutral/neutral_green/me_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/neutral/neutral_green/oper.bmp b/skins/neutral/neutral_green/oper.bmp new file mode 100644 index 0000000000..2cf1b02ad3 Binary files /dev/null and b/skins/neutral/neutral_green/oper.bmp differ diff --git a/skins/neutral/neutral_green/oper_1.bmp b/skins/neutral/neutral_green/oper_1.bmp new file mode 100644 index 0000000000..ce490e8fe5 Binary files /dev/null and b/skins/neutral/neutral_green/oper_1.bmp differ diff --git a/skins/neutral/neutral_green/pack_build.bat b/skins/neutral/neutral_green/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/neutral/neutral_green/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/neutral/neutral_green/skn_build.bat b/skins/neutral/neutral_green/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/neutral/neutral_green/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/neutral/neutral_lilac/base.bmp b/skins/neutral/neutral_lilac/base.bmp new file mode 100644 index 0000000000..751921dea5 Binary files /dev/null and b/skins/neutral/neutral_lilac/base.bmp differ diff --git a/skins/neutral/neutral_lilac/base_1.bmp b/skins/neutral/neutral_lilac/base_1.bmp new file mode 100644 index 0000000000..12f6b5b796 Binary files /dev/null and b/skins/neutral/neutral_lilac/base_1.bmp differ diff --git a/skins/neutral/neutral_lilac/default.asm b/skins/neutral/neutral_lilac/default.asm new file mode 100644 index 0000000000..b6204b70eb --- /dev/null +++ b/skins/neutral/neutral_lilac/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:41:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x6b4b8a],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0xc0c0c0],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-19:3][15:15],\ ; buttons coordinates + minimize = [-36:3][15:15] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/neutral/neutral_lilac/default.dtp.asm b/skins/neutral/neutral_lilac/default.dtp.asm new file mode 100644 index 0000000000..852df2ef58 --- /dev/null +++ b/skins/neutral/neutral_lilac/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x6b4b8a +grab dd 0xa38aba +grab_button dd 0xcecece +grab_button_text dd 0x000000 +grab_text dd 0xffffff +work dd 0xE8E8E8 +work_button dd 0xE8E8E8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xAAAAAA \ No newline at end of file diff --git a/skins/neutral/neutral_lilac/dtp_build.bat b/skins/neutral/neutral_lilac/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/neutral/neutral_lilac/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/neutral/neutral_lilac/left.bmp b/skins/neutral/neutral_lilac/left.bmp new file mode 100644 index 0000000000..f909f188e7 Binary files /dev/null and b/skins/neutral/neutral_lilac/left.bmp differ diff --git a/skins/neutral/neutral_lilac/left_1.bmp b/skins/neutral/neutral_lilac/left_1.bmp new file mode 100644 index 0000000000..993f261b4c Binary files /dev/null and b/skins/neutral/neutral_lilac/left_1.bmp differ diff --git a/skins/neutral/neutral_lilac/me_skin.inc b/skins/neutral/neutral_lilac/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/neutral/neutral_lilac/me_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/neutral/neutral_lilac/oper.bmp b/skins/neutral/neutral_lilac/oper.bmp new file mode 100644 index 0000000000..50ea254c87 Binary files /dev/null and b/skins/neutral/neutral_lilac/oper.bmp differ diff --git a/skins/neutral/neutral_lilac/oper_1.bmp b/skins/neutral/neutral_lilac/oper_1.bmp new file mode 100644 index 0000000000..ce490e8fe5 Binary files /dev/null and b/skins/neutral/neutral_lilac/oper_1.bmp differ diff --git a/skins/neutral/neutral_lilac/pack_build.bat b/skins/neutral/neutral_lilac/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/neutral/neutral_lilac/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/neutral/neutral_lilac/skn_build.bat b/skins/neutral/neutral_lilac/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/neutral/neutral_lilac/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/neutral/pack_build.bat b/skins/neutral/pack_build.bat new file mode 100644 index 0000000000..993c3d1f29 --- /dev/null +++ b/skins/neutral/pack_build.bat @@ -0,0 +1,4 @@ +kpack neutral_blue.skn neutral_blue.skn +kpack neutral_green.skn neutral_green.skn +kpack neutral_lilac.skn neutral_lilac.skn +pause \ No newline at end of file diff --git a/skins/night/base.bmp b/skins/night/base.bmp new file mode 100644 index 0000000000..2936a5b369 Binary files /dev/null and b/skins/night/base.bmp differ diff --git a/skins/night/base_1.bmp b/skins/night/base_1.bmp new file mode 100644 index 0000000000..2936a5b369 Binary files /dev/null and b/skins/night/base_1.bmp differ diff --git a/skins/night/default.asm b/skins/night/default.asm new file mode 100644 index 0000000000..6b418f61ac --- /dev/null +++ b/skins/night/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:37:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x2d2d2d],\ ; border frame color + colors inactive = [binner=0x000000:\ ; border inner color + bouter=0x000000:\ ; border outer color + bframe=0x2d2d2d],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-16:5][10:10],\ ; buttons coordinates + minimize = [-33:5][10:10] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/night/default.dtp b/skins/night/default.dtp new file mode 100644 index 0000000000..2f118b06c4 Binary files /dev/null and b/skins/night/default.dtp differ diff --git a/skins/night/default.dtp.asm b/skins/night/default.dtp.asm new file mode 100644 index 0000000000..9abb0aa7d3 --- /dev/null +++ b/skins/night/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x2d2d2d +grab dd 0x2d2d2d +grab_button dd 0x2d2d2d +grab_button_text dd 0x2dbdf8 +grab_text dd 0x808080 +work dd 0xc8c8c8 +work_button dd 0xc8c8c8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0x868686 \ No newline at end of file diff --git a/skins/night/dtp_build.bat b/skins/night/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/night/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/night/left.bmp b/skins/night/left.bmp new file mode 100644 index 0000000000..9424ff144d Binary files /dev/null and b/skins/night/left.bmp differ diff --git a/skins/night/left_1.bmp b/skins/night/left_1.bmp new file mode 100644 index 0000000000..9424ff144d Binary files /dev/null and b/skins/night/left_1.bmp differ diff --git a/skins/night/me_skin.inc b/skins/night/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/night/me_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/night/oper.bmp b/skins/night/oper.bmp new file mode 100644 index 0000000000..63971c108f Binary files /dev/null and b/skins/night/oper.bmp differ diff --git a/skins/night/oper_1.bmp b/skins/night/oper_1.bmp new file mode 100644 index 0000000000..84b4dc15de Binary files /dev/null and b/skins/night/oper_1.bmp differ diff --git a/skins/night/pack_build.bat b/skins/night/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/night/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/night/skn_build.bat b/skins/night/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/night/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/nix/nix_big.skn b/skins/nix/nix_big.skn new file mode 100644 index 0000000000..7f5a577c40 Binary files /dev/null and b/skins/nix/nix_big.skn differ diff --git a/skins/nix/nix_medium.skn b/skins/nix/nix_medium.skn new file mode 100644 index 0000000000..61d9942c54 Binary files /dev/null and b/skins/nix/nix_medium.skn differ diff --git a/skins/nix/nix_small.skn b/skins/nix/nix_small.skn new file mode 100644 index 0000000000..b6f9f7c38c Binary files /dev/null and b/skins/nix/nix_small.skn differ diff --git a/skins/panther/base.bmp b/skins/panther/base.bmp new file mode 100644 index 0000000000..93df895225 Binary files /dev/null and b/skins/panther/base.bmp differ diff --git a/skins/panther/build.bat b/skins/panther/build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/panther/build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/panther/default.asm b/skins/panther/default.asm new file mode 100644 index 0000000000..74f173568e --- /dev/null +++ b/skins/panther/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xAAAAAA:\ ; border inner color + bouter=0xAAAAAA:\ ; border outer color + bframe=0xCACACA],\ ; border frame color + colors inactive = [binner=0xAAAAAA:\ ; border inner color + bouter=0xAAAAAA:\ ; border outer color + bframe=0xCACACA],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base.bmp' diff --git a/skins/panther/default.dtp b/skins/panther/default.dtp new file mode 100644 index 0000000000..dd4d173c12 Binary files /dev/null and b/skins/panther/default.dtp differ diff --git a/skins/panther/default.dtp.asm b/skins/panther/default.dtp.asm new file mode 100644 index 0000000000..588ae5a5e4 --- /dev/null +++ b/skins/panther/default.dtp.asm @@ -0,0 +1,14 @@ +struc system_colors + { + .frame dd 0xAAAAAA + .grab dd 0xCACACA + .grab_button dd 0xCCCCCC + .grab_button_text dd 0x000000 + .grab_text dd 0x000000 + .work dd 0xE8E8E8 + .work_button dd 0xCACACA + .work_button_text dd 0x000000 + .work_text dd 0x000000 + .work_graph dd 0x000000 + } +struct system_colors \ No newline at end of file diff --git a/skins/panther/default.skn b/skins/panther/default.skn new file mode 100644 index 0000000000..af8f68662e Binary files /dev/null and b/skins/panther/default.skn differ diff --git a/skins/panther/left.bmp b/skins/panther/left.bmp new file mode 100644 index 0000000000..7e2c8687f3 Binary files /dev/null and b/skins/panther/left.bmp differ diff --git a/skins/panther/me_skin.inc b/skins/panther/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/panther/me_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/panther/oper.bmp b/skins/panther/oper.bmp new file mode 100644 index 0000000000..8437e6d0b3 Binary files /dev/null and b/skins/panther/oper.bmp differ diff --git a/skins/panther/oper_1.bmp b/skins/panther/oper_1.bmp new file mode 100644 index 0000000000..73612e3f5c Binary files /dev/null and b/skins/panther/oper_1.bmp differ diff --git a/skins/panther/panther.txt b/skins/panther/panther.txt new file mode 100644 index 0000000000..440133a901 --- /dev/null +++ b/skins/panther/panther.txt @@ -0,0 +1,4 @@ +STYLE XP +Panther theme for KolibriOS + +Author: Aqwas andrew_qs@bk.ru \ No newline at end of file diff --git a/skins/plum/base.bmp b/skins/plum/base.bmp new file mode 100644 index 0000000000..d3da3f2123 Binary files /dev/null and b/skins/plum/base.bmp differ diff --git a/skins/plum/base_1.bmp b/skins/plum/base_1.bmp new file mode 100644 index 0000000000..d3da3f2123 Binary files /dev/null and b/skins/plum/base_1.bmp differ diff --git a/skins/plum/default.asm b/skins/plum/default.asm new file mode 100644 index 0000000000..df95cf9b57 --- /dev/null +++ b/skins/plum/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:53:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xafafaf:\ ; border inner color + bouter=0x101010:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-20:6][12:11],\ ; buttons coordinates + minimize = [-41:6][12:11] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/plum/default.dtp b/skins/plum/default.dtp new file mode 100644 index 0000000000..5e92ea445d Binary files /dev/null and b/skins/plum/default.dtp differ diff --git a/skins/plum/default.dtp.asm b/skins/plum/default.dtp.asm new file mode 100644 index 0000000000..73ae28b79d --- /dev/null +++ b/skins/plum/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0xf3f3f3 +grab dd 0x525252 +grab_button dd 0x0166AC +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xf3f3f3 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xafafaf \ No newline at end of file diff --git a/skins/plum/default.skn b/skins/plum/default.skn new file mode 100644 index 0000000000..1e2c7f8aa6 Binary files /dev/null and b/skins/plum/default.skn differ diff --git a/skins/plum/dtp_build.bat b/skins/plum/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/plum/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/plum/left.bmp b/skins/plum/left.bmp new file mode 100644 index 0000000000..c0c581148a Binary files /dev/null and b/skins/plum/left.bmp differ diff --git a/skins/plum/left_1.bmp b/skins/plum/left_1.bmp new file mode 100644 index 0000000000..c0c581148a Binary files /dev/null and b/skins/plum/left_1.bmp differ diff --git a/skins/plum/me_skin.inc b/skins/plum/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/plum/me_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/plum/oper.bmp b/skins/plum/oper.bmp new file mode 100644 index 0000000000..65683c6e46 Binary files /dev/null and b/skins/plum/oper.bmp differ diff --git a/skins/plum/oper_1.bmp b/skins/plum/oper_1.bmp new file mode 100644 index 0000000000..5b3f8174ec Binary files /dev/null and b/skins/plum/oper_1.bmp differ diff --git a/skins/plum/pack_build.bat b/skins/plum/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/plum/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/plum/skn_build.bat b/skins/plum/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/plum/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/sea/base.bmp b/skins/sea/base.bmp new file mode 100644 index 0000000000..b2b3715002 Binary files /dev/null and b/skins/sea/base.bmp differ diff --git a/skins/sea/base_1.bmp b/skins/sea/base_1.bmp new file mode 100644 index 0000000000..b2b3715002 Binary files /dev/null and b/skins/sea/base_1.bmp differ diff --git a/skins/sea/default.asm b/skins/sea/default.asm new file mode 100644 index 0000000000..5acade86e3 --- /dev/null +++ b/skins/sea/default.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:66:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xD1D1D1:\ ; border inner color + bouter=0x22a68c:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + colors inactive = [binner=0xD1D1D1:\ ; border inner color + bouter=0x22a68c:\ ; border outer color + bframe=0xf3f3f3],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-32:3][28:17],\ ; buttons coordinates + minimize = [-61:3][28:17] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/sea/default.dtp b/skins/sea/default.dtp new file mode 100644 index 0000000000..769a41a18c Binary files /dev/null and b/skins/sea/default.dtp differ diff --git a/skins/sea/default.dtp.asm b/skins/sea/default.dtp.asm new file mode 100644 index 0000000000..2c9757c657 --- /dev/null +++ b/skins/sea/default.dtp.asm @@ -0,0 +1,11 @@ +;SYSTEM COLORS (.DTP) - COMPILE WITH FASM +frame dd 0x22a68c +grab dd 0x56d6c2 +grab_button dd 0x4ea39d +grab_button_text dd 0xffffff +grab_text dd 0xffffff +work dd 0xf3f3f3 +work_button dd 0xd8d8d8 +work_button_text dd 0x000000 +work_text dd 0x000000 +work_graph dd 0xD1D1D1 \ No newline at end of file diff --git a/skins/sea/dtp_build.bat b/skins/sea/dtp_build.bat new file mode 100644 index 0000000000..2fddee0e38 --- /dev/null +++ b/skins/sea/dtp_build.bat @@ -0,0 +1,2 @@ +fasm default.dtp.asm default.dtp +pause \ No newline at end of file diff --git a/skins/sea/left.bmp b/skins/sea/left.bmp new file mode 100644 index 0000000000..6bd322bf69 Binary files /dev/null and b/skins/sea/left.bmp differ diff --git a/skins/sea/left_1.bmp b/skins/sea/left_1.bmp new file mode 100644 index 0000000000..6bd322bf69 Binary files /dev/null and b/skins/sea/left_1.bmp differ diff --git a/skins/sea/me_skin.inc b/skins/sea/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/sea/me_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/sea/oper.bmp b/skins/sea/oper.bmp new file mode 100644 index 0000000000..216593e514 Binary files /dev/null and b/skins/sea/oper.bmp differ diff --git a/skins/sea/oper_1.bmp b/skins/sea/oper_1.bmp new file mode 100644 index 0000000000..b560529d48 Binary files /dev/null and b/skins/sea/oper_1.bmp differ diff --git a/skins/sea/pack_build.bat b/skins/sea/pack_build.bat new file mode 100644 index 0000000000..7e7d474b2c --- /dev/null +++ b/skins/sea/pack_build.bat @@ -0,0 +1 @@ +kpack default.skn default.pack.skn diff --git a/skins/sea/sea.skn b/skins/sea/sea.skn new file mode 100644 index 0000000000..676daf32fe Binary files /dev/null and b/skins/sea/sea.skn differ diff --git a/skins/sea/skn_build.bat b/skins/sea/skn_build.bat new file mode 100644 index 0000000000..2828114c6b --- /dev/null +++ b/skins/sea/skn_build.bat @@ -0,0 +1,2 @@ +fasm default.asm default.skn +pause \ No newline at end of file diff --git a/skins/skin_feol/default.skn b/skins/skin_feol/default.skn new file mode 100644 index 0000000000..96c5ef2e7e Binary files /dev/null and b/skins/skin_feol/default.skn differ diff --git a/skins/skin_feol/src/base.bmp b/skins/skin_feol/src/base.bmp new file mode 100644 index 0000000000..a6849f6588 Binary files /dev/null and b/skins/skin_feol/src/base.bmp differ diff --git a/skins/skin_feol/src/base_1.bmp b/skins/skin_feol/src/base_1.bmp new file mode 100644 index 0000000000..5d55fad456 Binary files /dev/null and b/skins/skin_feol/src/base_1.bmp differ diff --git a/skins/skin_feol/src/build.bat b/skins/skin_feol/src/build.bat new file mode 100644 index 0000000000..ac54f13566 --- /dev/null +++ b/skins/skin_feol/src/build.bat @@ -0,0 +1,2 @@ +@fasm default.asm default.skn +@pause \ No newline at end of file diff --git a/skins/skin_feol/src/colors.dtp b/skins/skin_feol/src/colors.dtp new file mode 100644 index 0000000000..7f799d2754 Binary files /dev/null and b/skins/skin_feol/src/colors.dtp differ diff --git a/skins/skin_feol/src/default.asm b/skins/skin_feol/src/default.asm new file mode 100644 index 0000000000..a779a221bb --- /dev/null +++ b/skins/skin_feol/src/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xf6eef8:\ ; border inner color + bouter=0x640464:\ ; border outer color + bframe=0xf6eef8],\ ; border frame color + colors inactive = [binner=0xf6eef8:\ ; border inner color + bouter=0x826f95:\ ; border outer color + bframe=0xf6eef8],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/skin_feol/src/left.bmp b/skins/skin_feol/src/left.bmp new file mode 100644 index 0000000000..48d213cd48 Binary files /dev/null and b/skins/skin_feol/src/left.bmp differ diff --git a/skins/skin_feol/src/left_1.bmp b/skins/skin_feol/src/left_1.bmp new file mode 100644 index 0000000000..da4763b99f Binary files /dev/null and b/skins/skin_feol/src/left_1.bmp differ diff --git a/skins/skin_feol/src/me_skin.inc b/skins/skin_feol/src/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/skin_feol/src/me_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/skin_feol/src/oper.bmp b/skins/skin_feol/src/oper.bmp new file mode 100644 index 0000000000..fd1cda5a50 Binary files /dev/null and b/skins/skin_feol/src/oper.bmp differ diff --git a/skins/skin_feol/src/oper_1.bmp b/skins/skin_feol/src/oper_1.bmp new file mode 100644 index 0000000000..f3ef3efbcf Binary files /dev/null and b/skins/skin_feol/src/oper_1.bmp differ diff --git a/skins/skin_feol_new/default.skn b/skins/skin_feol_new/default.skn new file mode 100644 index 0000000000..49653c2570 Binary files /dev/null and b/skins/skin_feol_new/default.skn differ diff --git a/skins/skin_feol_new/src/base.bmp b/skins/skin_feol_new/src/base.bmp new file mode 100644 index 0000000000..4284da18ea Binary files /dev/null and b/skins/skin_feol_new/src/base.bmp differ diff --git a/skins/skin_feol_new/src/base_1.bmp b/skins/skin_feol_new/src/base_1.bmp new file mode 100644 index 0000000000..d5b0a1cd7b Binary files /dev/null and b/skins/skin_feol_new/src/base_1.bmp differ diff --git a/skins/skin_feol_new/src/build.bat b/skins/skin_feol_new/src/build.bat new file mode 100644 index 0000000000..ac54f13566 --- /dev/null +++ b/skins/skin_feol_new/src/build.bat @@ -0,0 +1,2 @@ +@fasm default.asm default.skn +@pause \ No newline at end of file diff --git a/skins/skin_feol_new/src/colors.dtp b/skins/skin_feol_new/src/colors.dtp new file mode 100644 index 0000000000..c0c86451cb Binary files /dev/null and b/skins/skin_feol_new/src/colors.dtp differ diff --git a/skins/skin_feol_new/src/default.asm b/skins/skin_feol_new/src/default.asm new file mode 100644 index 0000000000..72a58619f3 --- /dev/null +++ b/skins/skin_feol_new/src/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xf8f8f8:\ ; border inner color + bouter=0xd8b0d8:\ ; border outer color + bframe=0xf8f6f8],\ ; border frame color + colors inactive = [binner=0xf8f8f8:\ ; border inner color + bouter=0xf8f8f8:\ ; border outer color + bframe=0xf8f6f8],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/skin_feol_new/src/left.bmp b/skins/skin_feol_new/src/left.bmp new file mode 100644 index 0000000000..5e731643eb Binary files /dev/null and b/skins/skin_feol_new/src/left.bmp differ diff --git a/skins/skin_feol_new/src/left_1.bmp b/skins/skin_feol_new/src/left_1.bmp new file mode 100644 index 0000000000..725943a8d0 Binary files /dev/null and b/skins/skin_feol_new/src/left_1.bmp differ diff --git a/skins/skin_feol_new/src/me_skin.inc b/skins/skin_feol_new/src/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/skin_feol_new/src/me_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/skin_feol_new/src/oper.bmp b/skins/skin_feol_new/src/oper.bmp new file mode 100644 index 0000000000..3ab964f80a Binary files /dev/null and b/skins/skin_feol_new/src/oper.bmp differ diff --git a/skins/skin_feol_new/src/oper_1.bmp b/skins/skin_feol_new/src/oper_1.bmp new file mode 100644 index 0000000000..3b70715dea Binary files /dev/null and b/skins/skin_feol_new/src/oper_1.bmp differ diff --git a/skins/skin_ser/default.skn b/skins/skin_ser/default.skn new file mode 100644 index 0000000000..f6d28ce74b Binary files /dev/null and b/skins/skin_ser/default.skn differ diff --git a/skins/skin_ser/src/base.bmp b/skins/skin_ser/src/base.bmp new file mode 100644 index 0000000000..d68f2e4c6f Binary files /dev/null and b/skins/skin_ser/src/base.bmp differ diff --git a/skins/skin_ser/src/base_1.bmp b/skins/skin_ser/src/base_1.bmp new file mode 100644 index 0000000000..05ad2b1e90 Binary files /dev/null and b/skins/skin_ser/src/base_1.bmp differ diff --git a/skins/skin_ser/src/build.bat b/skins/skin_ser/src/build.bat new file mode 100644 index 0000000000..ac54f13566 --- /dev/null +++ b/skins/skin_ser/src/build.bat @@ -0,0 +1,2 @@ +@fasm default.asm default.skn +@pause \ No newline at end of file diff --git a/skins/skin_ser/src/colors.dtp b/skins/skin_ser/src/colors.dtp new file mode 100644 index 0000000000..47d51f9e42 Binary files /dev/null and b/skins/skin_ser/src/colors.dtp differ diff --git a/skins/skin_ser/src/default.asm b/skins/skin_ser/src/default.asm new file mode 100644 index 0000000000..6b8b20caad --- /dev/null +++ b/skins/skin_ser/src/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xf8f6f8:\ ; border inner color + bouter=0x030303:\ ; border outer color + bframe=0xf8f6f8],\ ; border frame color + colors inactive = [binner=0xf8f6f8:\ ; border inner color + bouter=0xfefefe:\ ; border outer color + bframe=0xf8f6f8],\ ; border frame color + dtp = 'colors.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/skin_ser/src/left.bmp b/skins/skin_ser/src/left.bmp new file mode 100644 index 0000000000..00468cb38d Binary files /dev/null and b/skins/skin_ser/src/left.bmp differ diff --git a/skins/skin_ser/src/left_1.bmp b/skins/skin_ser/src/left_1.bmp new file mode 100644 index 0000000000..46ab8a20bb Binary files /dev/null and b/skins/skin_ser/src/left_1.bmp differ diff --git a/skins/skin_ser/src/me_skin.inc b/skins/skin_ser/src/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/skin_ser/src/me_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/skin_ser/src/oper.bmp b/skins/skin_ser/src/oper.bmp new file mode 100644 index 0000000000..8bb750c233 Binary files /dev/null and b/skins/skin_ser/src/oper.bmp differ diff --git a/skins/skin_ser/src/oper_1.bmp b/skins/skin_ser/src/oper_1.bmp new file mode 100644 index 0000000000..f4df9879ff Binary files /dev/null and b/skins/skin_ser/src/oper_1.bmp differ diff --git a/skins/skin_vhl/DEFAULT.DTP b/skins/skin_vhl/DEFAULT.DTP new file mode 100644 index 0000000000..a9c6360b5a Binary files /dev/null and b/skins/skin_vhl/DEFAULT.DTP differ diff --git a/skins/skin_vhl/base.bmp b/skins/skin_vhl/base.bmp new file mode 100644 index 0000000000..e963b2b727 Binary files /dev/null and b/skins/skin_vhl/base.bmp differ diff --git a/skins/skin_vhl/base_1.bmp b/skins/skin_vhl/base_1.bmp new file mode 100644 index 0000000000..2825ca8645 Binary files /dev/null and b/skins/skin_vhl/base_1.bmp differ diff --git a/skins/skin_vhl/default.asm b/skins/skin_vhl/default.asm new file mode 100644 index 0000000000..844bd4b139 --- /dev/null +++ b/skins/skin_vhl/default.asm @@ -0,0 +1,31 @@ +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x4d4c4d],\ ; bframe=0x0054e7],\ ; border frame color + colors inactive = [binner=0x00081d:\ ; border inner color + bouter=0x00081d:\ ; border outer color + bframe=0x3d3c3d],\ ;1a8acc],\ ; border frame color + dtp = 'myblue.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-21:3][16:16],\ ; buttons coordinates + minimize = [-39:3][16:16] ; [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 ,'left.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper.bmp' +BITMAP bmp_base ,'base.bmp' +BITMAP bmp_left1,'left_1.bmp' +BITMAP bmp_oper1,'oper_1.bmp' +BITMAP bmp_base1,'base_1.bmp' diff --git a/skins/skin_vhl/default.skn b/skins/skin_vhl/default.skn new file mode 100644 index 0000000000..801acc9428 Binary files /dev/null and b/skins/skin_vhl/default.skn differ diff --git a/skins/skin_vhl/left.bmp b/skins/skin_vhl/left.bmp new file mode 100644 index 0000000000..1fad2efa73 Binary files /dev/null and b/skins/skin_vhl/left.bmp differ diff --git a/skins/skin_vhl/left_1.bmp b/skins/skin_vhl/left_1.bmp new file mode 100644 index 0000000000..7c48444038 Binary files /dev/null and b/skins/skin_vhl/left_1.bmp differ diff --git a/skins/skin_vhl/me_skin.inc b/skins/skin_vhl/me_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/skin_vhl/me_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/skin_vhl/myblue.dtp b/skins/skin_vhl/myblue.dtp new file mode 100644 index 0000000000..2e30dcd0d3 Binary files /dev/null and b/skins/skin_vhl/myblue.dtp differ diff --git a/skins/skin_vhl/oper.bmp b/skins/skin_vhl/oper.bmp new file mode 100644 index 0000000000..a4ce869afd Binary files /dev/null and b/skins/skin_vhl/oper.bmp differ diff --git a/skins/skin_vhl/oper_1.bmp b/skins/skin_vhl/oper_1.bmp new file mode 100644 index 0000000000..c31e1f8c38 Binary files /dev/null and b/skins/skin_vhl/oper_1.bmp differ diff --git a/skins/sshock/GREEN.DTP b/skins/sshock/GREEN.DTP new file mode 100644 index 0000000000..ccf0162aeb Binary files /dev/null and b/skins/sshock/GREEN.DTP differ diff --git a/skins/sshock/base_1.bmp b/skins/sshock/base_1.bmp new file mode 100644 index 0000000000..44459488a2 Binary files /dev/null and b/skins/sshock/base_1.bmp differ diff --git a/skins/sshock/base_2.bmp b/skins/sshock/base_2.bmp new file mode 100644 index 0000000000..d0814653e9 Binary files /dev/null and b/skins/sshock/base_2.bmp differ diff --git a/skins/sshock/default.asm b/skins/sshock/default.asm new file mode 100644 index 0000000000..2cd5717273 --- /dev/null +++ b/skins/sshock/default.asm @@ -0,0 +1,38 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +include 'me_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x2c2a2c:\ ; border inner color + bouter=0x2c2a2c:\ ; border outer color + bframe=0x343a3e],\ ; border frame color + colors inactive = [binner=0x2c2a2c:\ ; border inner color + bouter=0x2c2a2c:\ ; border outer color + bframe=0x343a3e],\ ; border frame color + dtp = 'GREEN.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-18:5][15:14],\ ; buttons coordinates + minimize = [-35:5][15:14] ; [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 ,'left_1.bmp' ; skin bitmaps +BITMAP bmp_oper ,'oper_1.bmp' +BITMAP bmp_base ,'base_1.bmp' +BITMAP bmp_left1,'left_2.bmp' +BITMAP bmp_oper1,'oper_2.bmp' +BITMAP bmp_base1,'base_2.bmp' diff --git a/skins/sshock/default.skn b/skins/sshock/default.skn new file mode 100644 index 0000000000..e7be5c5de2 Binary files /dev/null and b/skins/sshock/default.skn differ diff --git a/skins/sshock/left_1.bmp b/skins/sshock/left_1.bmp new file mode 100644 index 0000000000..332d6cad6e Binary files /dev/null and b/skins/sshock/left_1.bmp differ diff --git a/skins/sshock/left_2.bmp b/skins/sshock/left_2.bmp new file mode 100644 index 0000000000..0f471e2a18 Binary files /dev/null and b/skins/sshock/left_2.bmp differ diff --git a/skins/sshock/me_skin.inc b/skins/sshock/me_skin.inc new file mode 100644 index 0000000000..365964eb38 --- /dev/null +++ b/skins/sshock/me_skin.inc @@ -0,0 +1,242 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; +;; Distributed under terms of the GNU General Public License ;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;============================================================================ +; 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/sshock/oper_1.bmp b/skins/sshock/oper_1.bmp new file mode 100644 index 0000000000..469bdd2522 Binary files /dev/null and b/skins/sshock/oper_1.bmp differ diff --git a/skins/sshock/oper_2.bmp b/skins/sshock/oper_2.bmp new file mode 100644 index 0000000000..ba950fd53c Binary files /dev/null and b/skins/sshock/oper_2.bmp differ diff --git a/skins/sshock/sshock.txt b/skins/sshock/sshock.txt new file mode 100644 index 0000000000..bdc5705c84 --- /dev/null +++ b/skins/sshock/sshock.txt @@ -0,0 +1,5 @@ +sshock + + theme for KolibriOS + +Author: G@K \ No newline at end of file diff --git a/skins/stone/Active/base.bmp b/skins/stone/Active/base.bmp new file mode 100644 index 0000000000..0be4b605a1 Binary files /dev/null and b/skins/stone/Active/base.bmp differ diff --git a/skins/stone/Active/left.bmp b/skins/stone/Active/left.bmp new file mode 100644 index 0000000000..46f762b9b0 Binary files /dev/null and b/skins/stone/Active/left.bmp differ diff --git a/skins/stone/Active/oper.bmp b/skins/stone/Active/oper.bmp new file mode 100644 index 0000000000..794ef801e1 Binary files /dev/null and b/skins/stone/Active/oper.bmp differ diff --git a/skins/stone/Inactive/base.bmp b/skins/stone/Inactive/base.bmp new file mode 100644 index 0000000000..0be4b605a1 Binary files /dev/null and b/skins/stone/Inactive/base.bmp differ diff --git a/skins/stone/Inactive/left.bmp b/skins/stone/Inactive/left.bmp new file mode 100644 index 0000000000..46f762b9b0 Binary files /dev/null and b/skins/stone/Inactive/left.bmp differ diff --git a/skins/stone/Inactive/oper.bmp b/skins/stone/Inactive/oper.bmp new file mode 100644 index 0000000000..20c0a02bba Binary files /dev/null and b/skins/stone/Inactive/oper.bmp differ diff --git a/skins/stone/O'stone.asm b/skins/stone/O'stone.asm new file mode 100644 index 0000000000..bc20c591f0 --- /dev/null +++ b/skins/stone/O'stone.asm @@ -0,0 +1,35 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x933A00:\ ; border inner color + bouter=0x933A00:\ ; border outer color + bframe=0xF96400],\ ; border frame color + colors inactive = [binner=0x933A00:\ ; border inner color + bouter=0x933A00:\ ; border outer color + bframe=0xF96400],\ ; border frame color + dtp = 'ORANGE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-28:1][23:22],\ ; buttons coordinates + minimize = [-52:1][23:22] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/stone/ORANGE.DTP b/skins/stone/ORANGE.DTP new file mode 100644 index 0000000000..39d43725ce Binary files /dev/null and b/skins/stone/ORANGE.DTP differ diff --git a/skins/stone/my_skin.inc b/skins/stone/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/stone/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/subsilv/Mistifi(ator1.DTP b/skins/subsilv/Mistifi(ator1.DTP new file mode 100644 index 0000000000..dc65da9713 Binary files /dev/null and b/skins/subsilv/Mistifi(ator1.DTP differ diff --git a/skins/subsilv/default.skn b/skins/subsilv/default.skn new file mode 100644 index 0000000000..ce82a290bb Binary files /dev/null and b/skins/subsilv/default.skn differ diff --git a/skins/vista/default.skn b/skins/vista/default.skn new file mode 100644 index 0000000000..e48b9a752f Binary files /dev/null and b/skins/vista/default.skn differ diff --git a/skins/winflat/Mistifi(ator8.DTP b/skins/winflat/Mistifi(ator8.DTP new file mode 100644 index 0000000000..5852a1d96f Binary files /dev/null and b/skins/winflat/Mistifi(ator8.DTP differ diff --git a/skins/winflat/default.skn b/skins/winflat/default.skn new file mode 100644 index 0000000000..10cbf3ecf2 Binary files /dev/null and b/skins/winflat/default.skn differ diff --git a/skins/zRiver/zRiver)1(/Active/base.bmp b/skins/zRiver/zRiver)1(/Active/base.bmp new file mode 100644 index 0000000000..7889b3eac4 Binary files /dev/null and b/skins/zRiver/zRiver)1(/Active/base.bmp differ diff --git a/skins/zRiver/zRiver)1(/Active/left.bmp b/skins/zRiver/zRiver)1(/Active/left.bmp new file mode 100644 index 0000000000..9e3d8ebdeb Binary files /dev/null and b/skins/zRiver/zRiver)1(/Active/left.bmp differ diff --git a/skins/zRiver/zRiver)1(/Active/oper.bmp b/skins/zRiver/zRiver)1(/Active/oper.bmp new file mode 100644 index 0000000000..3aad3802a7 Binary files /dev/null and b/skins/zRiver/zRiver)1(/Active/oper.bmp differ diff --git a/skins/zRiver/zRiver)1(/BLUE.DTP b/skins/zRiver/zRiver)1(/BLUE.DTP new file mode 100644 index 0000000000..39d65bf21d Binary files /dev/null and b/skins/zRiver/zRiver)1(/BLUE.DTP differ diff --git a/skins/zRiver/zRiver)1(/Inactive/base.bmp b/skins/zRiver/zRiver)1(/Inactive/base.bmp new file mode 100644 index 0000000000..2485b10b63 Binary files /dev/null and b/skins/zRiver/zRiver)1(/Inactive/base.bmp differ diff --git a/skins/zRiver/zRiver)1(/Inactive/left.bmp b/skins/zRiver/zRiver)1(/Inactive/left.bmp new file mode 100644 index 0000000000..163000d1db Binary files /dev/null and b/skins/zRiver/zRiver)1(/Inactive/left.bmp differ diff --git a/skins/zRiver/zRiver)1(/Inactive/oper.bmp b/skins/zRiver/zRiver)1(/Inactive/oper.bmp new file mode 100644 index 0000000000..1d4da84abb Binary files /dev/null and b/skins/zRiver/zRiver)1(/Inactive/oper.bmp differ diff --git a/skins/zRiver/zRiver)1(/my_skin.inc b/skins/zRiver/zRiver)1(/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/zRiver/zRiver)1(/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/zRiver/zRiver)1(/zRiver)1(.asm b/skins/zRiver/zRiver)1(/zRiver)1(.asm new file mode 100644 index 0000000000..f9d56de96c --- /dev/null +++ b/skins/zRiver/zRiver)1(/zRiver)1(.asm @@ -0,0 +1,35 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x002D37:\ ; border inner color + bouter=0x002D37:\ ; border outer color + bframe=0x003E4E],\ ; border frame color + colors inactive = [binner=0x21424A:\ ; border inner color + bouter=0x21424A:\ ; border outer color + bframe=0x214F5B],\ ; border frame color + dtp = 'BLUE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:3][25:17],\ ; buttons coordinates + minimize = [-57:3][25:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/zRiver/zRiver)2(/Active/base.bmp b/skins/zRiver/zRiver)2(/Active/base.bmp new file mode 100644 index 0000000000..4500052ead Binary files /dev/null and b/skins/zRiver/zRiver)2(/Active/base.bmp differ diff --git a/skins/zRiver/zRiver)2(/Active/left.bmp b/skins/zRiver/zRiver)2(/Active/left.bmp new file mode 100644 index 0000000000..98803a5009 Binary files /dev/null and b/skins/zRiver/zRiver)2(/Active/left.bmp differ diff --git a/skins/zRiver/zRiver)2(/Active/oper.bmp b/skins/zRiver/zRiver)2(/Active/oper.bmp new file mode 100644 index 0000000000..744289913e Binary files /dev/null and b/skins/zRiver/zRiver)2(/Active/oper.bmp differ diff --git a/skins/zRiver/zRiver)2(/Inactive/base.bmp b/skins/zRiver/zRiver)2(/Inactive/base.bmp new file mode 100644 index 0000000000..cd702e078e Binary files /dev/null and b/skins/zRiver/zRiver)2(/Inactive/base.bmp differ diff --git a/skins/zRiver/zRiver)2(/Inactive/left.bmp b/skins/zRiver/zRiver)2(/Inactive/left.bmp new file mode 100644 index 0000000000..58dd8b1381 Binary files /dev/null and b/skins/zRiver/zRiver)2(/Inactive/left.bmp differ diff --git a/skins/zRiver/zRiver)2(/Inactive/oper.bmp b/skins/zRiver/zRiver)2(/Inactive/oper.bmp new file mode 100644 index 0000000000..e572de0de6 Binary files /dev/null and b/skins/zRiver/zRiver)2(/Inactive/oper.bmp differ diff --git a/skins/zRiver/zRiver)2(/ORANGE.DTP b/skins/zRiver/zRiver)2(/ORANGE.DTP new file mode 100644 index 0000000000..0568544f2d Binary files /dev/null and b/skins/zRiver/zRiver)2(/ORANGE.DTP differ diff --git a/skins/zRiver/zRiver)2(/my_skin.inc b/skins/zRiver/zRiver)2(/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/zRiver/zRiver)2(/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/zRiver/zRiver)2(/zRiver)2(.asm b/skins/zRiver/zRiver)2(/zRiver)2(.asm new file mode 100644 index 0000000000..6a4870d0b4 --- /dev/null +++ b/skins/zRiver/zRiver)2(/zRiver)2(.asm @@ -0,0 +1,45 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x370B00:\ ; border inner color + bouter=0x370B00:\ ; border outer color + bframe=0x4E1100],\ ; border frame color + colors inactive = [binner=0x4A2921:\ ; border inner color + bouter=0x4A2921:\ ; border outer color + bframe=0x5B2F21],\ ; border frame color + dtp = 'ORANGE.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:3][25:17],\ ; buttons coordinates + minimize = [-57:3][25:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; + +;AC2600 +;A72500 +;9B1F00 +;8C1C00 +;751800 +;601500 + + + diff --git a/skins/zRiver/zRiver)3(/Active/base.bmp b/skins/zRiver/zRiver)3(/Active/base.bmp new file mode 100644 index 0000000000..037ff399f6 Binary files /dev/null and b/skins/zRiver/zRiver)3(/Active/base.bmp differ diff --git a/skins/zRiver/zRiver)3(/Active/left.bmp b/skins/zRiver/zRiver)3(/Active/left.bmp new file mode 100644 index 0000000000..8219883b54 Binary files /dev/null and b/skins/zRiver/zRiver)3(/Active/left.bmp differ diff --git a/skins/zRiver/zRiver)3(/Active/oper.bmp b/skins/zRiver/zRiver)3(/Active/oper.bmp new file mode 100644 index 0000000000..22ac7b8746 Binary files /dev/null and b/skins/zRiver/zRiver)3(/Active/oper.bmp differ diff --git a/skins/zRiver/zRiver)3(/GREEN.DTP b/skins/zRiver/zRiver)3(/GREEN.DTP new file mode 100644 index 0000000000..bd97b586df Binary files /dev/null and b/skins/zRiver/zRiver)3(/GREEN.DTP differ diff --git a/skins/zRiver/zRiver)3(/Inactive/base.bmp b/skins/zRiver/zRiver)3(/Inactive/base.bmp new file mode 100644 index 0000000000..60ece3b4e3 Binary files /dev/null and b/skins/zRiver/zRiver)3(/Inactive/base.bmp differ diff --git a/skins/zRiver/zRiver)3(/Inactive/left.bmp b/skins/zRiver/zRiver)3(/Inactive/left.bmp new file mode 100644 index 0000000000..41e91758ac Binary files /dev/null and b/skins/zRiver/zRiver)3(/Inactive/left.bmp differ diff --git a/skins/zRiver/zRiver)3(/Inactive/oper.bmp b/skins/zRiver/zRiver)3(/Inactive/oper.bmp new file mode 100644 index 0000000000..9e16be17fc Binary files /dev/null and b/skins/zRiver/zRiver)3(/Inactive/oper.bmp differ diff --git a/skins/zRiver/zRiver)3(/my_skin.inc b/skins/zRiver/zRiver)3(/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/zRiver/zRiver)3(/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/zRiver/zRiver)3(/zRiver)3(.asm b/skins/zRiver/zRiver)3(/zRiver)3(.asm new file mode 100644 index 0000000000..5cfe836b2a --- /dev/null +++ b/skins/zRiver/zRiver)3(/zRiver)3(.asm @@ -0,0 +1,35 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x00371F:\ ; border inner color + bouter=0x00371F:\ ; border outer color + bframe=0x004E2E],\ ; border frame color + colors inactive = [binner=0x214A38:\ ; border inner color + bouter=0x214A38:\ ; border outer color + bframe=0x215B43],\ ; border frame color + dtp = 'GREEN.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:3][25:17],\ ; buttons coordinates + minimize = [-57:3][25:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/zRiver/zRiver)4(/Active/base.bmp b/skins/zRiver/zRiver)4(/Active/base.bmp new file mode 100644 index 0000000000..442b78fdf1 Binary files /dev/null and b/skins/zRiver/zRiver)4(/Active/base.bmp differ diff --git a/skins/zRiver/zRiver)4(/Active/left.bmp b/skins/zRiver/zRiver)4(/Active/left.bmp new file mode 100644 index 0000000000..2f61c57d13 Binary files /dev/null and b/skins/zRiver/zRiver)4(/Active/left.bmp differ diff --git a/skins/zRiver/zRiver)4(/Active/oper.bmp b/skins/zRiver/zRiver)4(/Active/oper.bmp new file mode 100644 index 0000000000..a621d2dbc6 Binary files /dev/null and b/skins/zRiver/zRiver)4(/Active/oper.bmp differ diff --git a/skins/zRiver/zRiver)4(/BROWN.DTP b/skins/zRiver/zRiver)4(/BROWN.DTP new file mode 100644 index 0000000000..8429c4a574 Binary files /dev/null and b/skins/zRiver/zRiver)4(/BROWN.DTP differ diff --git a/skins/zRiver/zRiver)4(/Inactive/base.bmp b/skins/zRiver/zRiver)4(/Inactive/base.bmp new file mode 100644 index 0000000000..b7371ea402 Binary files /dev/null and b/skins/zRiver/zRiver)4(/Inactive/base.bmp differ diff --git a/skins/zRiver/zRiver)4(/Inactive/left.bmp b/skins/zRiver/zRiver)4(/Inactive/left.bmp new file mode 100644 index 0000000000..7d14a9b784 Binary files /dev/null and b/skins/zRiver/zRiver)4(/Inactive/left.bmp differ diff --git a/skins/zRiver/zRiver)4(/Inactive/oper.bmp b/skins/zRiver/zRiver)4(/Inactive/oper.bmp new file mode 100644 index 0000000000..be6ef8086d Binary files /dev/null and b/skins/zRiver/zRiver)4(/Inactive/oper.bmp differ diff --git a/skins/zRiver/zRiver)4(/my_skin.inc b/skins/zRiver/zRiver)4(/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/zRiver/zRiver)4(/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/zRiver/zRiver)4(/zRiver)4(.asm b/skins/zRiver/zRiver)4(/zRiver)4(.asm new file mode 100644 index 0000000000..0b43117f1f --- /dev/null +++ b/skins/zRiver/zRiver)4(/zRiver)4(.asm @@ -0,0 +1,35 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x371B00:\ ; border inner color + bouter=0x371B00:\ ; border outer color + bframe=0x4E2900],\ ; border frame color + colors inactive = [binner=0x4A3621:\ ; border inner color + bouter=0x4A3621:\ ; border outer color + bframe=0x5B3F21],\ ; border frame color + dtp = 'BROWN.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:3][25:17],\ ; buttons coordinates + minimize = [-57:3][25:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/zRiver/zRiver)5(/Active/base.bmp b/skins/zRiver/zRiver)5(/Active/base.bmp new file mode 100644 index 0000000000..7d93830552 Binary files /dev/null and b/skins/zRiver/zRiver)5(/Active/base.bmp differ diff --git a/skins/zRiver/zRiver)5(/Active/left.bmp b/skins/zRiver/zRiver)5(/Active/left.bmp new file mode 100644 index 0000000000..7d139321c4 Binary files /dev/null and b/skins/zRiver/zRiver)5(/Active/left.bmp differ diff --git a/skins/zRiver/zRiver)5(/Active/oper.bmp b/skins/zRiver/zRiver)5(/Active/oper.bmp new file mode 100644 index 0000000000..7bd2f803b6 Binary files /dev/null and b/skins/zRiver/zRiver)5(/Active/oper.bmp differ diff --git a/skins/zRiver/zRiver)5(/Inactive/base.bmp b/skins/zRiver/zRiver)5(/Inactive/base.bmp new file mode 100644 index 0000000000..e432331cd1 Binary files /dev/null and b/skins/zRiver/zRiver)5(/Inactive/base.bmp differ diff --git a/skins/zRiver/zRiver)5(/Inactive/left.bmp b/skins/zRiver/zRiver)5(/Inactive/left.bmp new file mode 100644 index 0000000000..898c76ea8c Binary files /dev/null and b/skins/zRiver/zRiver)5(/Inactive/left.bmp differ diff --git a/skins/zRiver/zRiver)5(/Inactive/oper.bmp b/skins/zRiver/zRiver)5(/Inactive/oper.bmp new file mode 100644 index 0000000000..2909cccbd6 Binary files /dev/null and b/skins/zRiver/zRiver)5(/Inactive/oper.bmp differ diff --git a/skins/zRiver/zRiver)5(/PINK.DTP b/skins/zRiver/zRiver)5(/PINK.DTP new file mode 100644 index 0000000000..ea42021b6b Binary files /dev/null and b/skins/zRiver/zRiver)5(/PINK.DTP differ diff --git a/skins/zRiver/zRiver)5(/my_skin.inc b/skins/zRiver/zRiver)5(/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/zRiver/zRiver)5(/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/zRiver/zRiver)5(/zRiver)5(.asm b/skins/zRiver/zRiver)5(/zRiver)5(.asm new file mode 100644 index 0000000000..7967cbb89b --- /dev/null +++ b/skins/zRiver/zRiver)5(/zRiver)5(.asm @@ -0,0 +1,35 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x370031:\ ; border inner color + bouter=0x370031:\ ; border outer color + bframe=0x4E0043],\ ; border frame color + colors inactive = [binner=0x4A2145:\ ; border inner color + bouter=0x4A2145:\ ; border outer color + bframe=0x5B2153],\ ; border frame color + dtp = 'PINK.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:3][25:17],\ ; buttons coordinates + minimize = [-57:3][25:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================; diff --git a/skins/zRiver/zRiver)6(/Active/base.bmp b/skins/zRiver/zRiver)6(/Active/base.bmp new file mode 100644 index 0000000000..d02e72be8d Binary files /dev/null and b/skins/zRiver/zRiver)6(/Active/base.bmp differ diff --git a/skins/zRiver/zRiver)6(/Active/left.bmp b/skins/zRiver/zRiver)6(/Active/left.bmp new file mode 100644 index 0000000000..2552bca96d Binary files /dev/null and b/skins/zRiver/zRiver)6(/Active/left.bmp differ diff --git a/skins/zRiver/zRiver)6(/Active/oper.bmp b/skins/zRiver/zRiver)6(/Active/oper.bmp new file mode 100644 index 0000000000..9d90d7478a Binary files /dev/null and b/skins/zRiver/zRiver)6(/Active/oper.bmp differ diff --git a/skins/zRiver/zRiver)6(/BLACK.DTP b/skins/zRiver/zRiver)6(/BLACK.DTP new file mode 100644 index 0000000000..0c32f4b338 Binary files /dev/null and b/skins/zRiver/zRiver)6(/BLACK.DTP differ diff --git a/skins/zRiver/zRiver)6(/Inactive/base.bmp b/skins/zRiver/zRiver)6(/Inactive/base.bmp new file mode 100644 index 0000000000..f0bc808be2 Binary files /dev/null and b/skins/zRiver/zRiver)6(/Inactive/base.bmp differ diff --git a/skins/zRiver/zRiver)6(/Inactive/left.bmp b/skins/zRiver/zRiver)6(/Inactive/left.bmp new file mode 100644 index 0000000000..52c1bcf07d Binary files /dev/null and b/skins/zRiver/zRiver)6(/Inactive/left.bmp differ diff --git a/skins/zRiver/zRiver)6(/Inactive/oper.bmp b/skins/zRiver/zRiver)6(/Inactive/oper.bmp new file mode 100644 index 0000000000..6607f2aaf5 Binary files /dev/null and b/skins/zRiver/zRiver)6(/Inactive/oper.bmp differ diff --git a/skins/zRiver/zRiver)6(/my_skin.inc b/skins/zRiver/zRiver)6(/my_skin.inc new file mode 100644 index 0000000000..ccbb3c191c --- /dev/null +++ b/skins/zRiver/zRiver)6(/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/zRiver/zRiver)6(/zRiver)6(.asm b/skins/zRiver/zRiver)6(/zRiver)6(.asm new file mode 100644 index 0000000000..08922d5f6e --- /dev/null +++ b/skins/zRiver/zRiver)6(/zRiver)6(.asm @@ -0,0 +1,35 @@ +include 'my_skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [6:1:43:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0x69696A:\ ; border inner color + bouter=0x69696A:\ ; border outer color + bframe=0x0D0D0F],\ ; border frame color + colors inactive = [binner=0x6E6E6F:\ ; border inner color + bouter=0x6E6E6F:\ ; border outer color + bframe=0x2B2B2D],\ ; border frame color + dtp = 'BLACK.DTP' ; dtp colors + +SKIN_BUTTONS \ + close = [-30:3][25:17],\ ; buttons coordinates + minimize = [-57:3][25:17] ; [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' + +;================================; +; Created by Rock_maniak_forever ; +;================================;