Hi Ian,
You are correct - I need to document the directory structure, styling
system and resource framework. That will happen this week.
All your assumptions below are correct. The patterns directory is for
tiled patterns and images used as backgrounds. They can be set on
panels. I'll include this in the docs I post this week.
> is there one paints (and style) file which is available to all forms?
Yes.
> how are borders defined in the styles.sdl file?
I'll include this in the docs. Here is an explanation from the
comments to get you started:
# Borders use the format
# name class="(empty|matte|line|bevel|thin_bevel|soft_bevel|etched|titled|compound|border)"
# Each class has its own attributes. All attributes are optional except:
# A) the "color" attribute of line and matte border
# B) the "inner" and "outer" attributes of compound border
# C) the "normal" and "pressed" attributes of button border
#
# Attributes for each class
# name class="empty" size=(int) top=(int) left=(int) bottom=(int)
right=(int)
# name class="matte" color="(color_name)" size=(int) top=(int) left=(int)
# bottom=(int) right=(int)
# name class="line" color="(color_name)" size=(int)
rounded_corners=(true|false)
# name class="bevel" type="(raised|lowered)" highlight_outer="(color_name)"
# highlight_inner="(color_name)" shadow_outer="(color_name)"
# shadow_inner="(color_name)"
# name class="thin_bevel" type="(raised|lowered)"
# highlight="(color_name)" shadow="(color_name)"
# name class="soft_bevel" type="(raised|lowered)"
# highlight_outer="(color_name)" highlight_inner="(color_name)"
# shadow_outer="(color_name)" shadow_inner="(color_name)"
# name class="etched" type="(raised|lowered)"
# highlight="(color_name)" shadow="(color_name)"
# name class="titled" text="title text" border="(border_name)"
# color="(color_name") font="(font_name)"
# title_justification="(leading|left|center|right|trailing|default)"
# title_position="(top|left|center|bottom|right|above_bottom|
# below_bottom|above_top|below_top|default)"
# name class="line_titled" color="(color_name") font="(font_name)"
# left=(int) bottom=(int) right=(int)
# name class="compound" outer="(border_name)" inner="(border_name)"
#
# Examples
# warning class="matte" color="logo_red.dark" size=2
# spacer class="empty" left=2 right=2
# warning_with_spacer class="compound" outer="warning" inner="spacer"
Examples:
blue_border class="line" color="deep_blue" // colors are defined
in paints.sdl
gray_shadow class="matte" top=1 left=1 bottom=0 right=0
color="translucent_gray"
You can set them on components using the border attribute.
Example:
pane border="blue_border"
Dan
--
Daniel Leuck
President
Ikayzo, inc.
Design * Build * Localize
+1 (808) 539-3804 (US Direct)
+1 (808) 393-9119 (US Mobile)
+81 090.7016.6635 (Japan Mobile)
+1 (808) 591-1496 (Fax)
http://www.ikayzo.com
http://www.techhui.com
http://twitter.com/dleuck