MyStyle(1x) | AfterStep X11 window manager | MyStyle(1x) |
MyStyle - defines combination of color, font, style, background to be used together
Specifies the background color associated with this style. color is a color definition in one of the color formats supported by AfterStep.
BackColor is also used to calculate bevel colors used to draw a border around a widget.
Specifies that a gradient should be used as a background instead of a solid color. The gradient colors start at from and end at to . from and to are color definition in one of the supported color formats . If gradient includes at least one transparent color ( alpha value set to be below FF ), gradient will be alpha-blended over the root background image. type can be 1, 2, 3, 4, or 5:
1: Wharf-style diagonal gradient 2: Horizontal from top to bottom 3:
Horizontal from top/bottom to center 4: Vertical from left to right 5:
Vertical from left/right to center 6: Top-Left to Bottom Right diagonal
( same as 1 ) 7: Bottom-Left to Top-Right diagonal 8: Vertical Top to
Bottom ( same as 2 ) 9: Horizontal Left to Right ( same as 4 )
Specifies that a gradient should be used as a background instead of a solid color. The gradient colors start at color1 and end at colorN . Each color has an offset associated with it. The offset is a number between 0.0 and 1.0, and specifies where in the gradient the colors are to be placed. The colors are in one of the color formats supported by AfterStep. At least two colors must be given. If gradient includes at least one transparent color ( alpha value set to be below FF ), gradient will be alpha-blended over the root background image. The offsets are non-decreasing numbers between 0.0 and 1.0. If the first offset is not 0.0, it will be set to 0.0. If the last offset is not 1.0, it will be set to 1.0. type may be any of the following:
6: Top-Left to Bottom Right diagonal 7: Bottom-Left to Top-Right diagonal
8: Vertical Top to Bottom 9: Horizontal Left to Right
Specifies that a pixmap should be used as a background instead of a solid color. This option has two forms, depending on the value of type :
If type is 125, 126, 127, 128, 130-144, 150-164 - the second parameter, pixmap_name must be the name of an image file which can be found in PixmapPath .
If type is 129 or 149 the root pixmap (desktop background) will be used, and the optional second parameter must be a color with which the root pixmap will be shaded/tinted.
Depending on the value of type AfterStep will render pixmap in many different ways :
FIXME: add proper description here.
Specifies that the area behind text drawn in this style should be cleared to BackColor . The argument is optional. If the argument is 0, this option is turned off; if it is omitted or is nonzero, the option is turned on.
Specifies the font associated with this style. font copuld beeither a standard X11 font definition, or a filename of the TrueType font that could be found in FontPath. To specify the size of the TrueType font - use format like that : FontName.ttf-Size.
Example :
Font DefaultSans.ttf-14
Specifies the text color associated with this style. color is color definition in one of the color formats supported by AfterStep.
Specifies a MyStyle to inherit options from. Options from style_name will override previously specified options for this style. Inherit is a good way to save memory and network bandwidth if the same BackPixmap is used for several styles, as the pixmap will only be loaded for the inherited style.
Specifies the beginning of a look style definition. The style can be referred to later by style_name . ~MyStyle ends a look style definition.
FIXME: add proper description here.
When used with scalable BackPixmap it will make image sliced instead scaled. Which means that its borders will remain unchanged, but center part will get tiled to fill empty space. SliceXEnd is the left edge of the right border.
When used with scalable BackPixmap it will make image sliced instead scaled. Which means that its borders will remain unchanged, but center part will get tiled to fill empty space. SliceXStart is the width of the left border.
When used with scalable BackPixmap it will make image sliced instead scaled. Which means that its borders will remain unchanged, but center part will get tiled to fill empty space. SliceYEnd is the top edge of the bottom border.
When used with scalable BackPixmap it will make image sliced instead scaled. Which means that its borders will remain unchanged, but center part will get tiled to fill empty space. SliceYStart is the height of the top border.
Specifies the text style associated with this style. style can be 0, 1, or 2:
0: normal text 1: embossed 3D text 2: sunken 3D text 3: text has shade
above the text 4: text has shade below the text 5: thick embossed 3D
text 6: thick sunken 3D text 7: text is outlined with contrasting color
on upper edge of a glyph. 8: text is outlined with contrasting color on
bottom edge of a glyph. 9: text is outlined with contrasting color all
around a glyph.
MyStyle 's are the means to define how widgets (menu items, titlebars, wharf buttons, Pager desktops, etc. ) should be rendered. It defines widget's background (solid color, gradient, textured image and/or semitransparent texture), shape - making widget non-rectangular, text font, text 3D style, widget's border bevel colors.
All the GUI elements are rendered using consistent approach in every module and every part of the AfterStep. Interface is build from so called TBars. TBar is rectangular area that may be focused(hilited) or unfocused and pressed or unpressed. TBAR STRUCTURE Each TBar has the following structure :
- the background of the TBar, which is defined by MyStyle and state of the bar - there are two MyStyles assigned to each TBar - one for focused and one for unfocused state.
- tiles of the TBar. Tiles are smaller features that gets arranged inside the bar according to its size, alignment, position and order. Tiles could be static icons ( cannot be pressed ); blocks of buttons - each having two shapes - pressed and normal; Text labels; Empty space tiles. There could be up to 256 tiles, each residing on one of the cells in 8x8 grid. Several tiles could reside in single cell, in which case they get superimposed on top of each other.
- bevel of the TBar. When TBar is rendered all of its tiles are superimposed on top of its background, and resulting image will have a 3D bevel drawn on it, using colors from same MyStyle as used for background. Bevel could be switched off partially or entirely. Respective configuration options has been added where appropriate. When TBar is pressed - its bevel is inverted. TBAR RENDERING When TBar is rendered all of its elements gets superimposed on top of each other using one of 13 blending methods supported by libAfterImage, with default being simple alphablending. See MyFrame configuration for more details. This is refrred to as "Composition Method".
AfterStep v.2.2.12 | 3rd Berkeley Distribution |