From 29d4a87347d343eb8204816643cb63d2f3db1224 Mon Sep 17 00:00:00 2001 From: nuxsh Date: Wed, 13 Oct 2021 20:58:34 +0530 Subject: [PATCH] Add theme vars to window switcher docs (#122) --- docs/theme.md | 20 ++++++++++++++++++++ docs/widgets/window_switcher.md | 23 +++++++++++++++++++++++ theme-var-template.lua | 4 ++-- 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/docs/theme.md b/docs/theme.md index 592d771..8ba6694 100644 --- a/docs/theme.md +++ b/docs/theme.md @@ -75,4 +75,24 @@ theme.task_preview_widget_border_color = "#ffffff" -- The border color of the theme.task_preview_widget_border_width = 3 -- The border width of the widget theme.task_preview_widget_margin = 0 -- The margin of the widget +-- window switcher widget +theme.window_switcher_widget_bg = "#000000" -- The bg color of the widget +theme.window_switcher_widget_border_width = 3 -- The border width of the widget +theme.window_switcher_widget_border_radius = 0 -- The border radius of the widget +theme.window_switcher_widget_border_color = "#ffffff" -- The border color of the widget +theme.window_switcher_clients_spacing = 20 -- The space between each client item +theme.window_switcher_client_icon_horizontal_spacing = 5 -- The space between client icon and text +theme.window_switcher_client_width = 150 -- The width of one client widget +theme.window_switcher_client_height = 250 -- The height of one client widget +theme.window_switcher_client_margins = 10 -- The margin between the content and the border of the widget +theme.window_switcher_thumbnail_margins = 10 -- The margin between one client thumbnail and the rest of the widget +theme.thumbnail_scale = false -- If set to true, the thumbnails fit policy will be set to "fit" instead of "auto" +theme.window_switcher_name_margins = 10 -- The margin of one clients title to the rest of the widget +theme.window_switcher_name_valign = "center" -- How to vertically align one clients title +theme.window_switcher_name_forced_width = 200 -- The width of one title +theme.window_switcher_name_font = "sans 11" -- The font of all titles +theme.window_switcher_name_normal_color = "#ffffff" -- The color of one title if the client is unfocused +theme.window_switcher_name_focus_color = "#ff0000" -- The color of one title if the client is focused +theme.window_switcher_icon_valign = "center" -- How to vertically align the one icon +theme.window_switcher_icon_width = 40 -- The width of one icon ``` diff --git a/docs/widgets/window_switcher.md b/docs/widgets/window_switcher.md index 26dc7b5..46b3843 100644 --- a/docs/widgets/window_switcher.md +++ b/docs/widgets/window_switcher.md @@ -39,3 +39,26 @@ For example: awesome.emit_signal("bling::window_switcher::turn_on") end, {description = "Window Switcher", group = "bling"}) ``` + +### Theme Variables +```lua +theme.window_switcher_widget_bg = "#000000" -- The bg color of the widget +theme.window_switcher_widget_border_width = 3 -- The border width of the widget +theme.window_switcher_widget_border_radius = 0 -- The border radius of the widget +theme.window_switcher_widget_border_color = "#ffffff" -- The border color of the widget +theme.window_switcher_clients_spacing = 20 -- The space between each client item +theme.window_switcher_client_icon_horizontal_spacing = 5 -- The space between client icon and text +theme.window_switcher_client_width = 150 -- The width of one client widget +theme.window_switcher_client_height = 250 -- The height of one client widget +theme.window_switcher_client_margins = 10 -- The margin between the content and the border of the widget +theme.window_switcher_thumbnail_margins = 10 -- The margin between one client thumbnail and the rest of the widget +theme.thumbnail_scale = false -- If set to true, the thumbnails fit policy will be set to "fit" instead of "auto" +theme.window_switcher_name_margins = 10 -- The margin of one clients title to the rest of the widget +theme.window_switcher_name_valign = "center" -- How to vertically align one clients title +theme.window_switcher_name_forced_width = 200 -- The width of one title +theme.window_switcher_name_font = "sans 11" -- The font of all titles +theme.window_switcher_name_normal_color = "#ffffff" -- The color of one title if the client is unfocused +theme.window_switcher_name_focus_color = "#ff0000" -- The color of one title if the client is focused +theme.window_switcher_icon_valign = "center" -- How to vertically align the one icon +theme.window_switcher_icon_width = 40 -- The width of one icon +``` diff --git a/theme-var-template.lua b/theme-var-template.lua index 4fc1c8e..421d37c 100644 --- a/theme-var-template.lua +++ b/theme-var-template.lua @@ -98,7 +98,7 @@ theme.window_switcher_name_forced_width = 200 -- The width of one title theme.window_switcher_name_font = "Sans 11" -- The font of all titles theme.window_switcher_name_normal_color = "#ffffff" -- The color of one title if the client is unfocused theme.window_switcher_name_focus_color = "#ff0000" -- The color of one title if the client is focused -theme.window_switcher_icon_valign = "center" -- How to vertially align the one icon -theme.window_switcher_icon_width = 40 -- Thw width of one icon +theme.window_switcher_icon_valign = "center" -- How to vertically align the one icon +theme.window_switcher_icon_width = 40 -- The width of one icon -- LuaFormatter on