From 038ab4898ce1d6b783893654da0ac0309bde727e Mon Sep 17 00:00:00 2001 From: ConLenov Date: Fri, 28 Jan 2022 09:49:03 +0000 Subject: [PATCH] Add GX_Red skin from ConLenov git-svn-id: svn://kolibrios.org@9672 a494cfbc-eb01-0410-851d-a64ba20cac60 --- skins/ConLenov/GX/GX_Red/GX_Red.asm | 33 ++++ skins/ConLenov/GX/GX_Red/Tupfile.lua | 3 + skins/ConLenov/GX/GX_Red/base.bmp | Bin 0 -> 150 bytes skins/ConLenov/GX/GX_Red/base_1.bmp | Bin 0 -> 150 bytes skins/ConLenov/GX/GX_Red/build.bat | 4 + skins/ConLenov/GX/GX_Red/default.dtp.asm | 14 ++ skins/ConLenov/GX/GX_Red/left.bmp | Bin 0 -> 438 bytes skins/ConLenov/GX/GX_Red/left_1.bmp | Bin 0 -> 438 bytes skins/ConLenov/GX/GX_Red/oper.bmp | Bin 0 -> 4374 bytes skins/ConLenov/GX/GX_Red/oper_1.bmp | Bin 0 -> 4374 bytes skins/ConLenov/GX/GX_Red/skin.inc | 239 +++++++++++++++++++++++ 11 files changed, 293 insertions(+) create mode 100644 skins/ConLenov/GX/GX_Red/GX_Red.asm create mode 100644 skins/ConLenov/GX/GX_Red/Tupfile.lua create mode 100644 skins/ConLenov/GX/GX_Red/base.bmp create mode 100644 skins/ConLenov/GX/GX_Red/base_1.bmp create mode 100644 skins/ConLenov/GX/GX_Red/build.bat create mode 100644 skins/ConLenov/GX/GX_Red/default.dtp.asm create mode 100644 skins/ConLenov/GX/GX_Red/left.bmp create mode 100644 skins/ConLenov/GX/GX_Red/left_1.bmp create mode 100644 skins/ConLenov/GX/GX_Red/oper.bmp create mode 100644 skins/ConLenov/GX/GX_Red/oper_1.bmp create mode 100644 skins/ConLenov/GX/GX_Red/skin.inc diff --git a/skins/ConLenov/GX/GX_Red/GX_Red.asm b/skins/ConLenov/GX/GX_Red/GX_Red.asm new file mode 100644 index 0000000000..51a3a3bb43 --- /dev/null +++ b/skins/ConLenov/GX/GX_Red/GX_Red.asm @@ -0,0 +1,33 @@ +;SKIN (.SKN) - COMPILE WITH FASM + +include 'skin.inc' + +SKIN_PARAMS \ + height = bmp_base.height,\ ; skin height + margins = [5:1:60:1],\ ; margins [left:top:right:bottom] + colors active = [binner=0xfa1e4e:\ ; border inner color + bouter=0x09080d:\ ; border outer color + bframe=0x09080d],\ ; border frame color + colors inactive = [binner=0xfa1e4e:\ ; border inner color + bouter=0x09080d:\ ; border outer color + bframe=0x09080d],\ ; border frame color + dtp = 'default.dtp' ; dtp colors + +SKIN_BUTTONS \ + close = [-24:0][23:23],\ ; buttons coordinates + minimize = [-47:0][23:23] ; [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/ConLenov/GX/GX_Red/Tupfile.lua b/skins/ConLenov/GX/GX_Red/Tupfile.lua new file mode 100644 index 0000000000..df9e7c79d8 --- /dev/null +++ b/skins/ConLenov/GX/GX_Red/Tupfile.lua @@ -0,0 +1,3 @@ +if tup.getconfig("NO_FASM") ~= "" then return end +tup.rule("default.dtp.asm", 'fasm "%f" "%o"', "default.dtp") +tup.rule({"GX_Red.asm", extra_inputs = {"default.dtp"}}, 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "GX_Red.skn") diff --git a/skins/ConLenov/GX/GX_Red/base.bmp b/skins/ConLenov/GX/GX_Red/base.bmp new file mode 100644 index 0000000000000000000000000000000000000000..b813ddc7febc7844994e7b49a776c9a449e12f34 GIT binary patch literal 150 tcmZ?royGtGWg2xF9w6h6Qp Ip?Y`#0KT^o?f?J) literal 0 HcmV?d00001 diff --git a/skins/ConLenov/GX/GX_Red/left_1.bmp b/skins/ConLenov/GX/GX_Red/left_1.bmp new file mode 100644 index 0000000000000000000000000000000000000000..20ac0211f83d51ca8564660a67791e556908b365 GIT binary patch literal 438 zcmZ?r-NwiO24+A~1Bh9HSOSO{!6XAi15jRw8-jttV8F}42}gc%zZl>g2xF9w6h6Qp Ip?Y`#0KT^o?f?J) literal 0 HcmV?d00001 diff --git a/skins/ConLenov/GX/GX_Red/oper.bmp b/skins/ConLenov/GX/GX_Red/oper.bmp new file mode 100644 index 0000000000000000000000000000000000000000..7f97debded95320e837896d644327966b57b388a GIT binary patch literal 4374 zcmZ?r6%%9t12Z700mL>yECIxfV3L91fdG($2K?lH4GF}{!8wXXLtr!nMnhmU1c(m- zJY_pchG10;G#sn=AQ8lL9;V13aVoMikR6H4MpiQj*$}4=AqPXkaELm12ss hn1*pBi9zmcT+YKKK4?RJ)M29`Fd71*Awb0t003yECIxfV3L91fdG($2K?lH4GF}{!8wXXLtr!nMnhmU1c(m- zJY_pchG10;G#sn=AQ8lL9;V13aVoMikR6H4MpiQj*$}4=AqPXkaELm12ss hn1*pBi9zmcT+YKKK4?RJ)M29`Fd71*Awb0t003 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 +}