Module beautiful.theme_assets
Generate vector assets using current colors.
Info:
- Copyright: 2015 Yauhen Kirylau
- Author: Yauhen Kirylau <yawghen@gmail.com>
Functions
taglist_squares_sel (size, fg) | Generate selected taglist square. |
taglist_squares_unsel (size, fg) | Generate unselected taglist square. |
gen_awesome_name (cr, height, bg, fg, alt_fg) | Put Awesome WM name onto cairo surface. |
gen_logo (cr, width, height, bg, fg) | Put Awesome WM logo onto cairo surface. |
awesome_icon (size, bg, fg) | Generate Awesome WM logo. |
wallpaper (bg, fg, alt_fg, s) | Generate Awesome WM wallpaper. |
recolor_titlebar (theme, color, state, postfix) | Recolor titlebar icons. |
recolor_layout (theme, color) | Recolor layout icons. |
Deprecated functions
recolor_titlebar_normal | Recolor unfocused titlebar icons. |
recolor_titlebar_focus | Recolor focused titlebar icons. |
Functions
Methods- taglist_squares_sel (size, fg)
-
Generate selected taglist square.
- size number Size.
- fg color Background color.
Returns:
-
Image with the square.
- taglist_squares_unsel (size, fg)
-
Generate unselected taglist square.
- size number Size.
- fg color Background color.
Returns:
-
Image with the square.
- gen_awesome_name (cr, height, bg, fg, alt_fg)
-
Put Awesome WM name onto cairo surface.
- cr Cairo surface.
- height number Height.
- bg color Background color.
- fg color Main foreground color.
- alt_fg color Accent foreground color.
- gen_logo (cr, width, height, bg, fg)
-
Put Awesome WM logo onto cairo surface.
- cr Cairo surface.
- width number Width.
- height number Height.
- bg color Background color.
- fg color Foreground color.
- awesome_icon (size, bg, fg)
-
Generate Awesome WM logo.
- size number Size.
- bg color Background color.
- fg color Background color.
Returns:
-
Image with the logo.
- wallpaper (bg, fg, alt_fg, s)
-
Generate Awesome WM wallpaper.
- bg color Background color.
- fg color Main foreground color.
- alt_fg color Accent foreground color.
- s screen Screen (to get wallpaper size).
Returns:
-
Wallpaper image.
- recolor_titlebar (theme, color, state, postfix)
-
Recolor titlebar icons.
- theme table Beautiful theme table.
- color color Icons' color.
- state
string
"normal"
or"focus"
. - postfix
string
nil
,"hover"
or"press"
.
Returns:
-
table
Beautiful theme table with the images recolored.
- recolor_layout (theme, color)
-
Recolor layout icons.
- theme table Beautiful theme table
- color color Icons' color.
Returns:
-
table
Beautiful theme table with the images recolored.
Deprecated functions
- recolor_titlebar_normal
-
Recolor unfocused titlebar icons.
This method is deprecated. Use a beautiful.theme_assets.recolor_titlebar.
param:
- theme table Beautiful theme table
- color color Icons' color.
- recolor_titlebar_focus
-
Recolor focused titlebar icons.
This method is deprecated. Use a beautiful.theme_assets.recolor_titlebar.
param:
- theme table Beautiful theme table
- color color Icons' color.