@ -25,6 +25,7 @@ theme.bg_minimize = "#2E2E2E"
theme.bg_highlight = " #45433D "
theme.bg_systray = theme.bg_normal
theme.fg_normal = " #e1dec7 "
theme.fg_focus = " #e1dec7 "
theme.fg_urgent = " #e1dec7 "
@ -39,12 +40,36 @@ theme.border_normal = "#c0c0c0"
theme.border_focus = " #c0c0c0 "
theme.border_marked = " #c0c0c0 "
local bsize = 50
local wibar_height = 26
local wibar_width = 56
theme.horizontal_button_bg_focus = {
type = " linear " ,
from = { 0 , 0 } ,
to = { 0 , wibar_height } ,
stops = {
{ 0 , " #32322C " } ,
{ 1 , " #4E4E46 " }
}
}
theme.horizontal_button_bg_normal = {
type = " linear " ,
from = { 0 , 0 } ,
to = { 0 , wibar_height } ,
stops = {
{ 0 , " #51514E " } ,
{ 1 , " #343431 " }
}
}
theme.horizontal_button_border_bg = " #51514E "
theme.button_bg_focus = {
type = " radial " ,
from = { bsize / 2 , - 0.5 * bsize , bsize / 10 } ,
to = { bsize / 2 , - 0.5 * bsize , bsize * 2 } ,
from = { wibar_width / 2 , - 0.5 * wibar_width , wibar_width / 10 } ,
to = { wibar_width / 2 , - 0.5 * wibar_width , wibar_width * 2 } ,
stops = {
{ 0 , " #FFFFFFBB " } ,
{ 0.45 , " #DF744E99 " } ,
@ -55,8 +80,8 @@ theme.button_bg_focus = {
theme.button_bg_normal = {
type = " radial " ,
from = { bsize / 2 , - 0.5 * bsize , bsize / 10 } ,
to = { bsize / 2 , - 0.2 * bsize , bsize * 1.5 } ,
from = { wibar_width / 2 , - 0.5 * wibar_width , wibar_width / 10 } ,
to = { wibar_width / 2 , - 0.2 * wibar_width , wibar_width * 1.5 } ,
stops = {
{ 0 , " #FFFFFFFF " } ,
{ 0.5 , " #33333333 " } ,
@ -99,8 +124,8 @@ theme.bar_bg_inverted_focus = {
theme.bar_border_color = {
type = " radial " ,
from = { bsize / 2 , bsize / ( - 3 ) , bsize / 8 } ,
to = { bsize / 2 , bsize / ( - 5 ) , bsize * 1 } ,
from = { wibar_width / 2 , wibar_width / ( - 3 ) , wibar_width / 8 } ,
to = { wibar_width / 2 , wibar_width / ( - 5 ) , wibar_width * 1 } ,
stops = {
{ 0 , " #FFFFFF66 " } ,
{ 1 , " #43434366 " } ,
@ -193,7 +218,7 @@ local icons = {
" battery-good-charging-symbolic " ,
" battery-low-charging-symbolic "
}
for k , v in pairs ( icons ) do
for _ , v in pairs ( icons ) do
theme [ v ] = themes_path .. " unity/icons/ " .. v .. " .png "
theme [ v : gsub ( " -charging " , " " ) ] = themes_path .. " unity/icons/ " .. v : gsub ( " -charging " , " " ) .. " .png "
end
@ -224,7 +249,7 @@ theme.wallpapers_icon = themes_path.."unity/icons/wallpapers.png"
-- This one has to be baked as a surface to avoid memory leaks
theme.icon_default = themes_path .. " unity/icons/unknown-app.png "
for k , v in pairs ( {
for _ , v in pairs ( {
" battery-caution-symbolic " ,
" battery-empty-symbolic " ,
" battery-full-symbolic " ,
@ -304,8 +329,8 @@ theme.widgets = {
shape = function ( cr , width , height )
return gears.shape . rounded_rect ( cr , width , height , 0 )
end ,
height = 26 ,
width = 60 ,
height = wibar_height ,
width = wibar_width + 6 ,
margins = 3 ,
stretch = true
} ,
@ -332,6 +357,10 @@ theme.widgets = {
border_color = theme.bg_normal ,
paddings = { 2 , 2 , 2 , 2 }
} ,
icon = {
width = 25 ,
height = 25
}
} ,
-- }}}
-- {{{ Menus
@ -432,6 +461,10 @@ theme.widgets = {
article = {
icon_size = 30
} ,
icon = {
height = 60 ,
width = 100
}
} ,
-- }}}
soundclown = {
@ -469,46 +502,88 @@ theme.widgets = {
}
} ,
tasklist = {
icon = {
margins = 2
} ,
button = {
width = 160 ,
height = 44 ,
margins = 5 ,
height = wibar_width - 4 ,
margins = 4 ,
shape_focus = theme.button_shape ,
shape_normal = theme.button_shape ,
shape_urgent = theme.button_shape ,
shape_minimize = theme.button_shape ,
bg_normal = theme.button_bg_normal ,
bg_focus = theme.button_bg_focus ,
bg_urgent = theme.bg_urgent ,
bg_minimize = theme.bg_minimize ,
shape_border_color_normal = theme.bar_border_color ,
shape_border_color_focus = theme.bar_border_color ,
shape_border_color_urgent = theme.bar_border_color ,
shape_border_color_minimize = theme.bar_border_color ,
shape_border_width_normal = dpi ( 1 ) ,
shape_border_width_focus = dpi ( 1 ) ,
shape_border_width_urgent = dpi ( 1 ) ,
shape_border_width_minimize = dpi ( 1 ) ,
bg_normal = theme.horizontal_button_bg_normal ,
bg_focus = theme.horizontal_button_bg_focus ,
bg_urgent = theme.bg_urgent ,
bg_minimize = theme.bg_minimize ,
shape_border_color_normal = theme.horizontal_button_border_bg ,
shape_border_color_focus = theme.horizontal_button_border_bg ,
shape_border_color_minimize = theme.horizontal_button_border_bg ,
shape_border_color_urgent = theme.horizontal_button_border_bg ,
vertical = {
margins = 2 ,
shape_border_width_normal = dpi ( 1 ) ,
shape_border_width_focus = dpi ( 1 ) ,
shape_border_width_urgent = dpi ( 1 ) ,
shape_border_width_minimize = dpi ( 1 ) ,
bg_normal = theme.button_bg_normal ,
bg_focus = theme.button_bg_focus ,
bg_urgent = theme.bg_urgent ,
bg_minimize = theme.bg_minimize ,
shape_border_color_normal = theme.bar_border_color ,
shape_border_color_focus = theme.bar_border_color ,
shape_border_color_urgent = theme.bar_border_color ,
shape_border_color_minimize = theme.bar_border_color
}
}
} ,
launcher = {
icon = {
width = wibar_width ,
height = wibar_width ,
margins = 2
} ,
button = {
margins = 5 ,
bg_normal = theme.button_bg_normal ,
bg_focus = theme.button_bg_focus ,
forced_height = wibar_width ,
forced_width = wibar_width ,
margins = 2 ,
bg_normal = theme.horizontal_button_bg_normal ,
bg_focus = theme.horizontal_button_bg_focus ,
shape_border_width = dpi ( 1 ) ,
shape_border_color = theme.bar_border_color ,
shape_border_color = theme.horizontal_button_border_bg ,
vertical = {
margins = 1 ,
bg_normal = theme.button_bg_normal ,
bg_focus = theme.button_bg_focus ,
shape_border_width = dpi ( 1 ) ,
shape_border_color = theme.bar_border_color ,
onpress = function ( widget )
widget : set_bg ( theme.button_bg_focus )
end ,
onrelease = function ( widget )
widget : set_bg ( theme.button_bg_normal )
end
} ,
onpress = function ( widget )
widget : set_bg ( theme.button_bg_focus )
widget : set_bg ( theme.horizontal_ button_bg_focus )
end ,
onrelease = function ( widget )
widget : set_bg ( theme.button_bg_normal )
widget : set_bg ( theme.horizontal_ button_bg_normal )
end
}
} ,
lockscreen = {
popup = {
margins = 0
} ,
icon = {
width = 150 ,
height = 150
}
} ,
lockbar = {
@ -592,12 +667,23 @@ theme.widgets = {
wibar_top = {
bg_normal = theme.bar_bg_normal ,
fg_normal = theme.fg_normal ,
size = 22 ,
height = 28 ,
} ,
wibar_left = {
bg_normal = " #0D0D0966 " ,
border_width = dpi ( 1 ) ,
border_color = " #26262666 "
} ,
wibar_bottom = {
bg_normal = theme.bar_bg_normal ,
fg_normal = theme.fg_normal ,
height = 28 ,
margins = 0
} ,
wibar_right = {
bg_normal = " #0D0D0966 " ,
border_width = dpi ( 1 ) ,
border_color = " #26262666 "
}
}
}
@ -662,7 +748,7 @@ theme.templates = {
ontop = true
} , options or { } )
end
end
end ,
}
}