61 lines
1.6 KiB
Lua
61 lines
1.6 KiB
Lua
local gfs = require "gears.filesystem"
|
|
|
|
local config_dir = gfs.get_configuration_dir()
|
|
local theme_dir = config_dir .. "theme/"
|
|
local assets_dir = theme_dir .. "assets/"
|
|
local icons_dir = assets_dir .. "icons/"
|
|
|
|
local theme = {}
|
|
|
|
--- Basic
|
|
theme.font = "Noto Mono 9"
|
|
|
|
--- Tags
|
|
theme.hometag_master_width_factor = 0.65
|
|
|
|
--- Icons
|
|
theme.icon_hometag = icons_dir .. "home-circle.svg"
|
|
theme.icon_apps = icons_dir .. "apps.svg"
|
|
theme.icon_battery_outline = icons_dir .. "battery-outline.svg"
|
|
|
|
--- Wibar
|
|
-- My wibar is a transparent dock at the bottom of the screen.
|
|
-- Height and width ahve to be set by the constructor to use screen DPI and
|
|
-- screen percentage values.
|
|
theme.wibar_stretch = false
|
|
theme.wibar_border_width = 0
|
|
theme.wibar_border_color = nil
|
|
theme.wibar_ontop = false
|
|
theme.wibar_opacity = 1
|
|
theme.wibar_type = "dock"
|
|
theme.wibar_bg = "#0000"
|
|
|
|
--- Spacing and margins
|
|
-- Naming convention:
|
|
-- <rc.ui.desktop_decoration element>_<widget element>_<property>
|
|
theme.spacing = 8
|
|
theme.margin = 4
|
|
theme.padding = 4
|
|
|
|
theme.bar_height = 32 + (theme.margin * 2) -- This is the outer size of the bar
|
|
theme.bar_width = "80%" -- Make the bar size relative to the screen
|
|
theme.bar_margin_x = theme.margin * 2
|
|
theme.bar_margin_y = theme.margin
|
|
theme.bar_padding_x = theme.padding * 2
|
|
theme.bar_padding_y = 0
|
|
|
|
theme.bar_box_margin_x = 0
|
|
theme.bar_box_margin_y = theme.margin
|
|
theme.bar_box_padding_x = theme.padding * 2
|
|
theme.bar_box_padding_y = theme.padding
|
|
theme.bar_box_spacing = theme.spacing
|
|
|
|
--- Widgets specific
|
|
theme.bg_systray = "#455A64"
|
|
theme.systray_icon_spacing = 3
|
|
|
|
--- Wallpaper
|
|
theme.wallpaper = assets_dir .. "wallpapers/pizza.jpg"
|
|
|
|
return theme
|