summaryrefslogtreecommitdiff
path: root/plugins/Popup/docs/skin_popup.txt
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
commit48540940b6c28bb4378abfeb500ec45a625b37b6 (patch)
tree2ef294c0763e802f91d868bdef4229b6868527de /plugins/Popup/docs/skin_popup.txt
parent5c350913f011e119127baeb32a6aedeb4f0d33bc (diff)
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/docs/skin_popup.txt')
-rw-r--r--plugins/Popup/docs/skin_popup.txt87
1 files changed, 87 insertions, 0 deletions
diff --git a/plugins/Popup/docs/skin_popup.txt b/plugins/Popup/docs/skin_popup.txt
new file mode 100644
index 0000000000..ee20d2d845
--- /dev/null
+++ b/plugins/Popup/docs/skin_popup.txt
@@ -0,0 +1,87 @@
+Object properties
+
+Popup skin files are used to define popup layout. Each popup consists of several objects such as bitmaps, text, title
+
+and icon. Each object is defined using object..end blocks as below:
+
+Code:
+object
+ property1
+ property2
+ property3
+end
+
+Also there are two global properties w and h used to describe popup how window size should calculated.
+
+Syntax of each property is "property value" or simply "property". Note that each property shoud be placed in separate line. Let's take a look at possible properties:
+
+Object properties
+
+type. Type can be "bitmap", "icon", "avatar", "clock", "text" or "title"
+
+x. default: 0
+- Positive or zero values mean x-coordinate of object's upper-left corner.
+- Negative value means distance form object's upper-left corner to window's right side (applicable only for bitmaps and
+
+avatars)
+
+y. default: 0
+- Positive or zero values mean y-coordinate of object's upper-left corner.
+- Negative values mean distance form object's upper-left corner to windows bottom (applicable only for bitmaps and
+
+avatars)
+
+w. default: 0
+- Positive values mean object's width.
+- Negative values mean distance form object's bottom-right corner to window's right side.
+- zero value means actual width of bitmap.
+Note: this is applicable only for bitmaps and avatars
+
+h. default: 0
+- Positive or zero values mean object's height.
+- Negative values mean distance form object's bottom-right corner to windows bottom.
+- Zero value means actual height of bitmap.
+Note: this is applicable only for bitmaps and avatars
+
+color
+- Three numbers 0..255 separated with spaces. This defines red, green and blue values of text/title's color. This may cause crashes when aplied to something different from text/title.
+
+mono
+No parameters required. Mono means that bitmap should me treated monochromatic. E.g. bitmap shoud be colorized with
+
+popup background color. When this option is on gray (0x808080) color is mapped to popup color set in options, black and white colors are left unchaned.
+
+source
+Source is used to specify bitmap file used by bitmap and clock objects
+
+clocksize
+When applied to clock object, this means widths of various clock parts:
+- left edge
+- time separator (the ':' symbol)
+- ten digits
+- am and pm marks (not used at the moment but you can provide btter compatability for your skin)
+- right edge
+
+proportional
+edit:
+usage: proportional 1
+
+When applied to bitmap or avatar object, this means that popup should keep objects proportions. With this options you can easily avoid ugly avatrs ;)
+
+layer
+Applied to a bitmap object this means that bitmap must be blended with the background.
+
+Formulas
+
+You may use formulas to define x, y, w, h properties. Each formula is a simple arithmetic expression which may use 5 basic operations ('+', '-', '*', '/' and '%'), two 'conditional' operations ('>' means "maximum" and '<' for "minimum").
+
+Also you may use some variables: icon.width, icon.height, title.width, title.height, text.width, text.height, avatar.width, avatar.height, window.maxwidth, window.width, window.height, clock.width, clock.height.
+
+A few words on how and when variables are defined and formulas are evaluated:
+1) window.width and window.maxwidth are set to maximum width defined in options
+2) Popup looks through all objects and evauates their widths and heights. Value of undefined variable (including width or height of object that is not defined yet) is supposed to be zero.
+3) window.width and window.height are evaluated using global 'w' and 'h' definitions (it they are present, otherwise popup chooses minimal suitable width)
+4) Popup looks through all objects once more to evauates their positions.
+
+Post Scriptum
+Look into 'minimal' skin supplied with preview 8, I hope this description will help you to understand what's going on ;) Also feel free to ask your questions here. \ No newline at end of file