Huge refractor and many fixes for dock, icons(again) etc

This commit is contained in:
Kievits Rene
2022-04-18 13:29:50 +02:00
parent adcc361891
commit b1a4b38024
123 changed files with 925 additions and 1019 deletions

View File

@@ -0,0 +1,40 @@
--------------------------------
-- This is the power widget --
--------------------------------
-- Awesome Libs
local awful = require("awful")
local color = require("src.theme.colors")
local dpi = require("beautiful").xresources.apply_dpi
local gears = require("gears")
local wibox = require("wibox")
require("src.core.signals")
return function(s)
local systray = wibox.widget {
{
{
wibox.widget.systray(),
margins = dpi(6),
widget = wibox.container.margin,
id = 'st'
},
strategy = "exact",
layout = wibox.container.constraint,
id = "container"
},
widget = wibox.container.background,
shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, 5)
end,
bg = color["BlueGrey800"]
}
-- Signals
Hover_signal(systray.container, color["Red200"])
systray.container.st.widget:set_base_size(dpi(20))
return systray
end