Module beautiful.theme_assets

Generate vector assets using current colors.

Info:

  • Copyright: 2015 Yauhen Kirylau
  • Author: Yauhen Kirylau <[email protected]>

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_normal (theme, color) Recolor unfocused titlebar icons.
recolor_titlebar_focus (theme, color) Recolor focused titlebar icons.
recolor_layout (theme, color) Recolor layout 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_normal (theme, color)
Recolor unfocused titlebar icons.
  • theme table Beautiful theme table
  • color color Icons' color.

Returns:

    table Beautiful theme table with the images recolored.
recolor_titlebar_focus (theme, color)
Recolor focused titlebar icons.
  • theme table Beautiful theme table
  • color color Icons' color.

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.
generated by LDoc 1.4.6 Last updated 2017-06-24 00:22:18