apparently i broke awmtk thinking it was broken. apparently my brain was broken because i was editing unity and running unity simplified.

This commit is contained in:
Yessiest 2022-02-09 15:07:48 +00:00
parent 4269061305
commit 51b2f74771
2 changed files with 14 additions and 2 deletions

View File

@ -213,7 +213,6 @@ awmtk.style = function(parent,delta,prefix)
new_style.inputbox = preprocess.inputbox(_new_style) new_style.inputbox = preprocess.inputbox(_new_style)
return new_style return new_style
end end
-- Default variables table -- Default variables table
defaults = setmetatable({},{ defaults = setmetatable({},{
__index = beautiful __index = beautiful
@ -236,14 +235,21 @@ defaults.shape_border_color = defaults.shape_border_color or defaults.bg_normal
defaults.inner_margin = defaults.inner_margin or 5 defaults.inner_margin = defaults.inner_margin or 5
defaults.rounding = defaults.rounding or 0 defaults.rounding = defaults.rounding or 0
-- Generate classes variables -- Generate classes variables
local new_defaults = {}
for _,class in pairs(classes) do for _,class in pairs(classes) do
for parameter,value in pairs(defaults) do for parameter,value in pairs(defaults) do
defaults[class..parameter] = ( new_defaults[class..parameter] = (
defaults[class..parameter] or defaults[class..parameter] or
value value
) )
end end
end end
for parameter,value in pairs(defaults) do
new_defaults[parameter] = value
end
defaults = setmetatable(new_defaults,{
__index = beautiful
})
--make icons look less weird --make icons look less weird
defaults.icon_inner_margin = beautiful.icon_inner_margin or 0 defaults.icon_inner_margin = beautiful.icon_inner_margin or 0
--add spacing for lists --add spacing for lists

View File

@ -143,6 +143,12 @@ theme.topbar_bg = {
theme.titlebar_rounding = 6 theme.titlebar_rounding = 6
theme.bg_systray = "#3A3A36" theme.bg_systray = "#3A3A36"
theme.prompt_bg = theme.titlebar_bg_normal theme.prompt_bg = theme.titlebar_bg_normal
theme.wintitle_icon_bg_normal = theme.topbar_bg
theme.wallpapers_icon_bg_normal = theme.topbar_bg
theme.mailbox_icon_bg_normal = theme.topbar_bg
theme.volume_icon_bg_normal = theme.topbar_bg
theme.battery_icon_bg_normal = theme.topbar_bg
theme.username_icon_bg_normal = "wtf"
-- Generate taglist squares: -- Generate taglist squares:
local taglist_square_size = dpi(4) local taglist_square_size = dpi(4)
theme.taglist_squares_sel = theme_assets.taglist_squares_sel( theme.taglist_squares_sel = theme_assets.taglist_squares_sel(