clean skins + update skins (nix, subsilv, luna)
git-svn-id: svn://kolibrios.org@8920 a494cfbc-eb01-0410-851d-a64ba20cac60
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
@ -2,18 +2,18 @@ include '../../skin.inc'
|
|||||||
|
|
||||||
SKIN_PARAMS \
|
SKIN_PARAMS \
|
||||||
height = bmp_base.height,\ ; skin height
|
height = bmp_base.height,\ ; skin height
|
||||||
margins = [5:2:43:0],\ ; margins [left:top:right:bottom]
|
margins = [5:2:54:0],\ ; margins [left:top:right:bottom]
|
||||||
colors active = [binner=0x375181:\ ; border inner color
|
colors active = [binner=0x3E4E68:\ ; border inner color
|
||||||
bouter=0x444430:\ ; border outer color
|
bouter=0x3E4E68:\ ; border outer color
|
||||||
bframe=0x7794CA],\ ; border frame color
|
bframe=0xDFE3ED],\ ; border frame color
|
||||||
colors inactive = [binner=0x73839D:\ ; border inner color
|
colors inactive = [binner=0x3E4E68:\ ; border inner color
|
||||||
bouter=0x73736E:\ ; border outer color
|
bouter=0x3E4E68:\ ; border outer color
|
||||||
bframe=0xA6B2CB],\ ; border frame color
|
bframe=0xDFE3ED],\ ; border frame color
|
||||||
dtp = 'default.dtp' ; dtp colors
|
dtp = 'default.dtp' ; dtp colors
|
||||||
|
|
||||||
SKIN_BUTTONS \
|
SKIN_BUTTONS \
|
||||||
close = [-21:4][17:17],\ ; buttons coordinates
|
close = [-29:1][24:16],\ ; buttons coordinates
|
||||||
minimize = [-41:4][17:17] ; [left:top][width:height]
|
minimize = [-54:1][24:16] ; [left:top][width:height]
|
||||||
|
|
||||||
SKIN_BITMAPS \
|
SKIN_BITMAPS \
|
||||||
left active = bmp_left,\ ; skin bitmaps pointers
|
left active = bmp_left,\ ; skin bitmaps pointers
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
struc system_colors
|
;SYSTEM COLORS (.DTP) - COMPILE WITH FASM
|
||||||
{
|
frame dd 0xCACACA
|
||||||
.null1 dd 0x000000
|
grab dd 0xE8E8E8
|
||||||
.null2 dd 0x006393
|
grab_button dd 0xCCCCCC
|
||||||
.dark dd 0xD1CFC7
|
grab_button_text dd 0xF7F5F5
|
||||||
.light dd 0xF2F2F0
|
grab_text dd 0x000000
|
||||||
.grab_text dd 0xFFFFFF
|
work dd 0xE8E8E8
|
||||||
.work dd 0xE3E2DD
|
work_button dd 0xD5CFD8
|
||||||
.button dd 0x7794CA
|
work_button_text dd 0x000000
|
||||||
.button_text dd 0xFFFfff
|
work_text dd 0x000000
|
||||||
.work_text dd 0x000000
|
work_graph dd 0xAAAAAA
|
||||||
.graph dd 0x6380B1
|
|
||||||
}
|
|
||||||
struct system_colors
|
|
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 4.1 KiB |
@ -1,2 +0,0 @@
|
|||||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
|
||||||
tup.rule("default.asm", 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "StyleVista_vista.skn")
|
|
Before Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 582 B |
@ -1,33 +0,0 @@
|
|||||||
;SKIN (.SKN) - COMPILE WITH FASM
|
|
||||||
|
|
||||||
include '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'
|
|
@ -1,11 +0,0 @@
|
|||||||
;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
|
|
@ -1,2 +0,0 @@
|
|||||||
fasm default.dtp.asm default.dtp
|
|
||||||
pause
|
|
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.8 KiB |
@ -1 +0,0 @@
|
|||||||
kpack default.skn default.pack.skn
|
|
@ -1,2 +0,0 @@
|
|||||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
|
||||||
tup.rule("default.asm", 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "khrome2.skn")
|
|
Before Width: | Height: | Size: 584 B |
Before Width: | Height: | Size: 584 B |
@ -1,38 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
|
||||||
;; ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
include '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'
|
|
Before Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.6 KiB |
@ -1,239 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2017. 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 equ _#_name
|
|
||||||
_file::
|
|
||||||
file _fname
|
|
||||||
end virtual
|
|
||||||
load w dword from _file:_bmp.i.biWidth
|
|
||||||
load h dword from _file:_bmp.i.biHeight
|
|
||||||
load hsize dword from _file:_bmp.h.bfOffBits
|
|
||||||
align 4
|
|
||||||
label _name
|
|
||||||
.width = w
|
|
||||||
.height = h
|
|
||||||
dd w,h
|
|
||||||
a=hsize+(w*3+(w mod 4))*(h-1)
|
|
||||||
size = $
|
|
||||||
repeat h
|
|
||||||
repeat w
|
|
||||||
load r from _file:a+0
|
|
||||||
load g from _file:a+1
|
|
||||||
load b from _file:a+2
|
|
||||||
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
|
|
||||||
__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
|
|
||||||
dd @f - $ - 4
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,2 +1,2 @@
|
|||||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
if tup.getconfig("NO_FASM") ~= "" then return end
|
||||||
tup.rule("nix_small.asm", 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "nix_small.skn")
|
tup.rule("nix_small.asm", 'fasm "%f" "%o" ' .. tup.getconfig("KPACK_CMD"), "nix.skn")
|
BIN
skins/_old/nix/active/base.bmp
Normal file
After Width: | Height: | Size: 150 B |
BIN
skins/_old/nix/active/left.bmp
Normal file
After Width: | Height: | Size: 342 B |
BIN
skins/_old/nix/active/oper.bmp
Normal file
After Width: | Height: | Size: 2.3 KiB |
1
skins/_old/nix/build.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
fasm nix_small.asm default.skn
|
BIN
skins/_old/nix/inactive/base.bmp
Normal file
After Width: | Height: | Size: 150 B |
BIN
skins/_old/nix/inactive/left.bmp
Normal file
After Width: | Height: | Size: 342 B |
BIN
skins/_old/nix/inactive/oper.bmp
Normal file
After Width: | Height: | Size: 2.3 KiB |
@ -2,7 +2,7 @@ include 'skin.inc'
|
|||||||
|
|
||||||
SKIN_PARAMS \
|
SKIN_PARAMS \
|
||||||
height = bmp_base.height,\ ; skin height
|
height = bmp_base.height,\ ; skin height
|
||||||
margins = [5:1:18:3],\ ; margins [left:top:right:bottom]
|
margins = [5:4:36:4],\ ; margins [left:top:right:bottom]
|
||||||
colors active = [binner=0x363C46:\ ; border inner color
|
colors active = [binner=0x363C46:\ ; border inner color
|
||||||
bouter=0x363C46:\ ; border outer color
|
bouter=0x363C46:\ ; border outer color
|
||||||
bframe=0x363C46],\ ; border frame color
|
bframe=0x363C46],\ ; border frame color
|
||||||
@ -12,8 +12,8 @@ SKIN_PARAMS \
|
|||||||
dtp = 'nix_small.dtp' ; dtp colors
|
dtp = 'nix_small.dtp' ; dtp colors
|
||||||
|
|
||||||
SKIN_BUTTONS \
|
SKIN_BUTTONS \
|
||||||
close = [-15:5][9:9],\ ; buttons coordinates
|
close = [-20:4][16:16],\ ; buttons coordinates
|
||||||
minimize = [-25:5][9:9] ; [left:top][width:height]
|
minimize = [-36:4][16:16] ; [left:top][width:height]
|
||||||
|
|
||||||
SKIN_BITMAPS \
|
SKIN_BITMAPS \
|
||||||
left active = bmp_left,\ ; skin bitmaps pointers
|
left active = bmp_left,\ ; skin bitmaps pointers
|
Before Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 1.8 KiB |
@ -1,239 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2017. 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 equ _#_name
|
|
||||||
_file::
|
|
||||||
file _fname
|
|
||||||
end virtual
|
|
||||||
load w dword from _file:_bmp.i.biWidth
|
|
||||||
load h dword from _file:_bmp.i.biHeight
|
|
||||||
load hsize dword from _file:_bmp.h.bfOffBits
|
|
||||||
align 4
|
|
||||||
label _name
|
|
||||||
.width = w
|
|
||||||
.height = h
|
|
||||||
dd w,h
|
|
||||||
a=hsize+(w*3+(w mod 4))*(h-1)
|
|
||||||
size = $
|
|
||||||
repeat h
|
|
||||||
repeat w
|
|
||||||
load r from _file:a+0
|
|
||||||
load g from _file:a+1
|
|
||||||
load b from _file:a+2
|
|
||||||
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
|
|
||||||
__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
|
|
||||||
dd @f - $ - 4
|
|
||||||
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
|
|
||||||
}
|
|
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.8 KiB |
@ -3,17 +3,17 @@ include 'skin.inc'
|
|||||||
SKIN_PARAMS \
|
SKIN_PARAMS \
|
||||||
height = bmp_base.height,\ ; skin height
|
height = bmp_base.height,\ ; skin height
|
||||||
margins = [8:1:53:1],\ ; margins [left:top:right:bottom]
|
margins = [8:1:53:1],\ ; margins [left:top:right:bottom]
|
||||||
colors active = [binner=0x006A9D:\ ; border inner color
|
colors active = [binner=0x335669:\ ; border inner color
|
||||||
bouter=0x006A9D:\ ; border outer color
|
bouter=0x335669:\ ; border outer color
|
||||||
bframe=0xB0BAC4],\ ; border frame color
|
bframe=0xB0BAC4],\ ; border frame color
|
||||||
colors inactive = [binner=0x006A9D:\ ; border inner color
|
colors inactive = [binner=0x335669:\ ; border inner color
|
||||||
bouter=0x006A9D:\ ; border outer color
|
bouter=0x335669:\ ; border outer color
|
||||||
bframe=0xE0E4E9],\ ; border frame color
|
bframe=0xE0E4E9],\ ; border frame color
|
||||||
dtp = 'Mistificator1.DTP' ; dtp colors
|
dtp = 'Mistificator1.DTP' ; dtp colors
|
||||||
|
|
||||||
SKIN_BUTTONS \
|
SKIN_BUTTONS \
|
||||||
close = [-23:4][19:18],\ ; buttons coordinates
|
close = [-22:4][18:17],\ ; buttons coordinates
|
||||||
minimize = [-45:4][19:18] ; [left:top][width:height]
|
minimize = [-44:4][18:17] ; [left:top][width:height]
|
||||||
|
|
||||||
SKIN_BITMAPS \
|
SKIN_BITMAPS \
|
||||||
left active = bmp_left,\ ; skin bitmaps pointers
|
left active = bmp_left,\ ; skin bitmaps pointers
|
||||||
|
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.8 KiB |
@ -6,10 +6,7 @@ Black_lace Rock_maniak_forever
|
|||||||
blackskin Aqwas
|
blackskin Aqwas
|
||||||
Blacky maxcodehack
|
Blacky maxcodehack
|
||||||
Blended Aqwas
|
Blended Aqwas
|
||||||
Brick Rock_maniak_forever
|
|
||||||
BrownLustre Rock_maniak_forever
|
|
||||||
cherry Aqwas
|
cherry Aqwas
|
||||||
Circles Rock_maniak_forever
|
|
||||||
CodeOpusC mike.dld
|
CodeOpusC mike.dld
|
||||||
Crystal Aqwas
|
Crystal Aqwas
|
||||||
Cyclops Rock_maniak_forever
|
Cyclops Rock_maniak_forever
|
||||||
@ -19,8 +16,6 @@ dark_night Aqwas
|
|||||||
Devil_Skins Rock_maniak_forever
|
Devil_Skins Rock_maniak_forever
|
||||||
Eyes Rock_maniak_forever
|
Eyes Rock_maniak_forever
|
||||||
falloutskn G@K
|
falloutskn G@K
|
||||||
Fever Rock_maniak_forever
|
|
||||||
Flowers Rock_maniak_forever
|
|
||||||
Flyght Rock_maniak_forever
|
Flyght Rock_maniak_forever
|
||||||
glass Aqwas
|
glass Aqwas
|
||||||
Glass_Lite Rock_maniak_forever
|
Glass_Lite Rock_maniak_forever
|
||||||
@ -43,10 +38,6 @@ MetalGearArrows Rock_maniak_forever
|
|||||||
mist Aqwas
|
mist Aqwas
|
||||||
mursky dunkaist, Mario
|
mursky dunkaist, Mario
|
||||||
mygrey trolly
|
mygrey trolly
|
||||||
myskin1 trolly
|
|
||||||
myskin2 trolly
|
|
||||||
myskin3 trolly
|
|
||||||
myskin4 trolly
|
|
||||||
MyTango Veliant
|
MyTango Veliant
|
||||||
Nature Rock_maniak_forever
|
Nature Rock_maniak_forever
|
||||||
neutral Aqwas
|
neutral Aqwas
|
||||||
@ -54,13 +45,9 @@ night Aqwas
|
|||||||
nix Sorcerer
|
nix Sorcerer
|
||||||
Nova_skins Rock_maniak_forever
|
Nova_skins Rock_maniak_forever
|
||||||
OpusOs_Blue Veliant
|
OpusOs_Blue Veliant
|
||||||
Orange_aureole Rock_maniak_forever
|
|
||||||
Orange_Silence Rock_maniak_forever
|
|
||||||
Organics Rock_maniak_forever
|
Organics Rock_maniak_forever
|
||||||
plum Aqwas
|
plum Aqwas
|
||||||
Rednex Rock_maniak_forever
|
|
||||||
RoboTech Rock_maniak_forever
|
RoboTech Rock_maniak_forever
|
||||||
Russia Mario79
|
|
||||||
Sad_grey Aqwas
|
Sad_grey Aqwas
|
||||||
SashSkinPack_1_1 Sash
|
SashSkinPack_1_1 Sash
|
||||||
sea Aqwas
|
sea Aqwas
|
||||||
@ -77,10 +64,9 @@ testtest dunkaist
|
|||||||
tinynjoy Sorcerer
|
tinynjoy Sorcerer
|
||||||
USSR Rock_maniak_forever
|
USSR Rock_maniak_forever
|
||||||
USSR_2 Rock_maniak_forever
|
USSR_2 Rock_maniak_forever
|
||||||
Victory_1945 Rock_maniak_forever
|
|
||||||
Vista nillsoft
|
Vista nillsoft
|
||||||
WIN311 Veliant
|
WIN311 Veliant
|
||||||
winflat mistif(ator
|
winflat mistif(ator
|
||||||
WindowsXP Rock_maniak_forever
|
WindowsXP Rock_maniak_forever
|
||||||
WinXP_Standart Mario79
|
WinXP_Standart Mario79
|
||||||
zRiver Rock_maniak_forever
|
|
||||||
|
@ -45,7 +45,6 @@ skinlist = {
|
|||||||
"_old/humanoid_OSX/Humanoid_OSX_dark_night/Humanoid_OSX_dark_night.skn",
|
"_old/humanoid_OSX/Humanoid_OSX_dark_night/Humanoid_OSX_dark_night.skn",
|
||||||
"_old/humanoid_OSX/humanoid_OSX_green/humanoid_OSX_green.skn",
|
"_old/humanoid_OSX/humanoid_OSX_green/humanoid_OSX_green.skn",
|
||||||
"_old/humanoid_OSX/humanoid_OSX_col/humanoid_OSX_col.skn",
|
"_old/humanoid_OSX/humanoid_OSX_col/humanoid_OSX_col.skn",
|
||||||
"_old/khrome2/khrome2.skn",
|
|
||||||
"_old/lightskin/lightskin.skn",
|
"_old/lightskin/lightskin.skn",
|
||||||
"_old/macos_l/macos_l.skn",
|
"_old/macos_l/macos_l.skn",
|
||||||
"_old/mage-scroll/mage-scroll.skn",
|
"_old/mage-scroll/mage-scroll.skn",
|
||||||
@ -56,7 +55,7 @@ skinlist = {
|
|||||||
"_old/MetalColor/MCRed/MCRed.skn",
|
"_old/MetalColor/MCRed/MCRed.skn",
|
||||||
"_old/mist/mist.skn",
|
"_old/mist/mist.skn",
|
||||||
"_old/mist_color/mist_color.skn",
|
"_old/mist_color/mist_color.skn",
|
||||||
"_old/nix/nix_small/nix_small.skn",
|
"_old/nix/nix.skn",
|
||||||
"_old/OpusOs_Blue/OpusOs_Blue.skn",
|
"_old/OpusOs_Blue/OpusOs_Blue.skn",
|
||||||
"_old/RoboTech/BRoboTech/BRoboTech.skn",
|
"_old/RoboTech/BRoboTech/BRoboTech.skn",
|
||||||
"_old/Sad_grey/Sad_grey.skn",
|
"_old/Sad_grey/Sad_grey.skn",
|
||||||
@ -66,7 +65,6 @@ skinlist = {
|
|||||||
"_old/skin_ser/skin_ser.skn",
|
"_old/skin_ser/skin_ser.skn",
|
||||||
"_old/skin_vhl/skin_vhl.skn",
|
"_old/skin_vhl/skin_vhl.skn",
|
||||||
"_old/sshock/sshock.skn",
|
"_old/sshock/sshock.skn",
|
||||||
"_old/StyleVista/vista/StyleVista_vista.skn",
|
|
||||||
"_old/StyleVista/vista_basic/vista_basic.skn",
|
"_old/StyleVista/vista_basic/vista_basic.skn",
|
||||||
"_old/StyleVista/vista_basic_black/vista_basic_black.skn",
|
"_old/StyleVista/vista_basic_black/vista_basic_black.skn",
|
||||||
"_old/StyleXP/orqua/orqua.skn",
|
"_old/StyleXP/orqua/orqua.skn",
|
||||||
|