123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- Quick THEME howto for SLiM
- Some basic information regarding the slim theme format.
- Read this file if you plan to make some theme for
- the program, and of course have a look at the included themes
- GENERAL CONCEPT
- A SLiM theme essentially consists of:
- - a background image (background.png or background.jpg)
- - a panel image (panel.png or panel.jpg)
- - input box(es) and messages and their placement
- and properties (slim.theme)
-
- The panel and background images can be a PNG or JPEG file.
- The panel is blended into the background image,
- taking care of alpha transparency.
- SUPPORTED FORMATS
- - fonts: use the xft font specs, ie: Verdana:size=16:bold
- - colors: use html hex format, ie
- - positions: can be either absolute in pixels, ie 350
- or relative to the container, ie 50% is in the middle
- of the screen.
-
- OPTIONS
- The following is an example slim.theme file
-
-
- msg_color
- msg_font Verdana:size=16:bold
- msg_x 50%
- msg_y 30
-
- session_color
- session_font Verdana:size=16:bold
- session_x 50%
- session_y 90%
-
- background_style stretch
- background_color
-
- input_panel_x 50%
- input_panel_y 40%
-
-
-
-
-
- input_name_x 40
- input_name_y 100
- input_pass_x 40
- input_pass_y 120
-
-
- input_font Verdana:size=12
- input_color
-
-
-
- welcome_x 50%
- welcome_y 38
-
-
- welcome_font Verdana:size=16:bold:slant=italic
- welcome_color
-
- username_font Verdana:size=12
- username_color
-
-
-
- username_x 50%
- username_y 146
- password_x 50%
- password_y 146
-
-
- username_msg Please enter your username
- password_msg Please enter your password
-
- SHADOWS
- The 'msg', 'input', 'welcome', 'session' and 'username' sections
- support shadows; three values can be configured:
- - color: the shadow color
- - x offset: the offset in x direction, relative to the normal text
- - y offset: the offset in y direction, relative to the normal text
- So to add a text shadow to the welcome message, add the following
- to slim.conf:
-
- welcome_shadow_xoffset -2
- welcome_shadow_yoffset 2
- welcome_shadow_color
-
-
- The other keys are analogue:
-
-
- username_shadow_xoffset 2
- username_shadow_yoffset -2
- username_shadow_color
-
- input_shadow_xoffset 1
- input_shadow_yoffset 1
- input_shadow_color
-
- msg_shadow_xoffset 1
- msg_shadow_yoffset 1
- msg_shadow_color
-
- session_shadow_xoffset 1
- session_shadow_yoffset 1
- session_shadow_color
-
-
|