Project

General

Profile

unexist.dev

Assorted tidbits and projects

Styles » History » Version 6

« Previous - Version 6/47 (diff) - Next » - Current version
Anonymous, 04/18/2011 09:04 PM


Styles\015\012\015\012{{>toc}}\015\012\015\012Styles are used to define various properties of styleable items in a CSS-like syntax.\015\012\015\012h2. Styleable items\015\012\015\012h3. Title\015\012\015\012Defines properties for the title of current client.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012
\015\012
\015\012\015\012h3. Focus\015\012\015\012Defines properties for current active view.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012h3. Urgent\015\012\015\012Defines properties for views with urgent clients.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012h3. Occupied\015\012\015\012Defines properties for views with at least one client.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012h3. Views\015\012\015\012Defines properties for views in the view button list.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012h3. Sublets\015\012\015\012Defines properties for sublets in the panel.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012h3. Separator\015\012\015\012Defines properties for the panel separator.\015\012\015\012*Supported properties*: Styles, Styles, Styles, [[Styles#Padding]\015\012\015\012h3. Clients\015\012\015\012Defines properties for active and inactive clients.\015\012\015\012*Supported properties*: Styles\015\012\015\012h3. Subtle\015\012\015\012Defines properties for subtle.\015\012\015\012*Supported properties*: Styles, Styles, [[Styles#Padding]\015\012\015\012h2. Properties\015\012\015\012Following properties can be set for supported items:\015\012\015\012h3. Foreground\015\012\015\012This property sets the foreground/text color.\015\012\015\012*Applicable to*: title, focus, urgent, occupied, views, sublets, separator\015\012\015\012Example:\015\012\015\012
\015\012style :title do\015\012  foreground "#ffffff"\015\012end
\015\012\015\012h3. Background\015\012\015\012This property sets the background color.\015\012\015\012*Applicable to*: title, focus, urgent, occupied, views, sublets, separator, subtle\015\012\015\012Example:\015\012\015\012
\015\012style :title do\015\012  background "#000000"\015\012end
\015\012\015\012h3. Border\015\012\015\012This property sets the border color and size. Following notations are supported:\015\012\015\012| border "#000000", 2 | Set border color and size of all four borders |\015\012| border_top "#000000", 2 | Set border color and size of top border |\015\012| border_right "#000000", 2 | Set border color and size of right border |\015\012| border_bottom "#000000", 2 | Set border color and size of bottom border |\015\012| border_left "#000000", 2 | Set border color and size of left border |\015\012\015\012*Applicable to*: title, focus, urgent, occupied, views, sublets, separator\015\012\015\012Example:\015\012\015\012
\015\012style :title do\015\012  border "#000000", 2\015\012end\015\012\015\012style :title do\015\012  border_top    "#000000", 2\015\012end
\015\012\015\012h3. Margin\015\012\015\012This property sets a transparent (no background) outer spacing in given directions. Following notations are supported:\015\012\015\012| margin 2 | Set space for all four directions |\015\012| margin 2, 2 | Set space for top/bottom and left/right |\015\012| margin 2, 2, 2 | Set space for top, left/right and bottom |\015\012| margin 2, 2, 2, 2 | Set space for all four directions |\015\012| margin_top 2 | Set space for top side |\015\012| margin_right 2 | Set space for right side |\015\012| margin_bottom 2 | Set space for bottom side |\015\012| margin_left 2 | Set space for left side |\015\012\015\012*Applicable to*: title, focus, urgent, occupied, views, sublets, separator, clients, subtle\015\012\015\012Example:\015\012\015\012
\015\012style :title do\015\012  margin 2\015\012end\015\012\015\012style :title do\015\012  margin 2, 2\015\012end\015\012\015\012style :title do\015\012  margin_top 2\015\012end
\015\012\015\012h3. Padding\015\012\015\012This property sets a inner space between border and text for given directions. Following notations are supported:\015\012\015\012| padding 2 | Set space for all four directions |\015\012| padding 2, 2 | Set space for top/bottom and left/right |\015\012| padding 2, 2, 2 | Set space for top, left/right and bottom |\015\012| padding 2, 2, 2, 2 | Set space for all four directions |\015\012| padding_top 2 | Set space for top side |\015\012| padding_right 2 | Set space for right side |\015\012| padding_bottom 2 | Set space for bottom side |\015\012| padding_left 2 | Set space for left side |\015\012\015\012*Applicable to*: title, focus, urgent, occupied, views, sublets, separator, clients, subtle\015\012\015\012Example:\015\012\015\012
\015\012style :title do\015\012  padding 2\015\012end\015\012\015\012style :title do\015\012  padding 2, 2\015\012end\015\012\015\012style :title do\015\012  padding_top 2\015\012end
\015\012\015\012