Change style
This commit is contained in:
parent
ca0c2a244c
commit
64e9b9a3cb
2 changed files with 27 additions and 40 deletions
|
@ -0,0 +1 @@
|
||||||
|
Steam;
|
|
@ -45,14 +45,14 @@ naughty.connect_signal(
|
||||||
function(n)
|
function(n)
|
||||||
if n.urgency == "critical" then
|
if n.urgency == "critical" then
|
||||||
n.title = string.format("<span foreground='%s' font='Google Sans, ExtraBold 12'>%s</span>",
|
n.title = string.format("<span foreground='%s' font='Google Sans, ExtraBold 12'>%s</span>",
|
||||||
color["RedA200"], n.title) or ""
|
cat["Red"], n.title) or ""
|
||||||
n.message = string.format("<span foreground='%s' font='Google Sans 12'>%s</span>", color["Red200"], n.message) or ""
|
n.message = string.format("<span foreground='%s' font='Google Sans 12'>%s</span>", cat["Red"], n.message) or ""
|
||||||
n.app_name = string.format("<span foreground='%s' font='Google Sans, ExtraBold 12'>%s</span>", color["RedA400"], n.app_name) or ""
|
n.app_name = string.format("<span foreground='%s' font='Google Sans, ExtraBold 12'>%s</span>", cat["Red"], n.app_name) or ""
|
||||||
n.bg = cat["Surface0"]
|
n.bg = cat["Surface0"]
|
||||||
else
|
else
|
||||||
n.title = string.format("<span foreground='%s' font='Google Sans, ExtraBold 12'>%s</span>",
|
n.title = string.format("<span foreground='%s' font='Google Sans, ExtraBold 12'>%s</span>",
|
||||||
color["Pink200"], n.title) or ""
|
color["White"], n.title) or ""
|
||||||
n.message = string.format("<span foreground='%s' font='Google Sans 12'>%s</span>", "#ffffffaa", n.message) or ""
|
n.message = string.format("<span foreground='%s' font='Google Sans 12'>%s</span>", cat['Text'], n.message) or ""
|
||||||
n.bg = cat["Surface0"]
|
n.bg = cat["Surface0"]
|
||||||
n.timeout = n.timeout or 3
|
n.timeout = n.timeout or 3
|
||||||
end
|
end
|
||||||
|
@ -168,10 +168,22 @@ naughty.connect_signal(
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
image = gears.color.recolor_image(icondir .. "notification-outline.svg", color["Teal200"]),
|
{
|
||||||
resize = false,
|
image = n.icon,
|
||||||
widget = wibox.widget.imagebox
|
resize = true,
|
||||||
|
widget = wibox.widget.imagebox,
|
||||||
|
clip_shape = function(cr, width, height)
|
||||||
|
gears.shape.circle(cr, width, height)
|
||||||
|
end
|
||||||
|
},
|
||||||
|
width = naughty.config.defaults.icon_size,
|
||||||
|
height = naughty.config.defaults.icon_size,
|
||||||
|
strategy = "exact",
|
||||||
|
widget = wibox.container.constraint
|
||||||
},
|
},
|
||||||
|
left = dpi(5),
|
||||||
|
bottom = dpi(5),
|
||||||
|
top = dpi(5),
|
||||||
right = dpi(5),
|
right = dpi(5),
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin
|
||||||
},
|
},
|
||||||
|
@ -183,7 +195,7 @@ naughty.connect_signal(
|
||||||
},
|
},
|
||||||
layout = wibox.layout.fixed.horizontal
|
layout = wibox.layout.fixed.horizontal
|
||||||
},
|
},
|
||||||
fg = color["Teal200"],
|
fg = cat["Peach"],
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background
|
||||||
},
|
},
|
||||||
margins = dpi(10),
|
margins = dpi(10),
|
||||||
|
@ -197,7 +209,7 @@ naughty.connect_signal(
|
||||||
widget = wibox.widget.textbox
|
widget = wibox.widget.textbox
|
||||||
},
|
},
|
||||||
id = "background",
|
id = "background",
|
||||||
fg = color["Teal200"],
|
fg = cat["Peach"],
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -220,7 +232,7 @@ naughty.connect_signal(
|
||||||
id = "arc_chart"
|
id = "arc_chart"
|
||||||
},
|
},
|
||||||
id = "background",
|
id = "background",
|
||||||
fg = color["Teal200"],
|
fg = cat["Peach"],
|
||||||
bg = cat["Surface0"],
|
bg = cat["Surface0"],
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background
|
||||||
},
|
},
|
||||||
|
@ -246,32 +258,6 @@ naughty.connect_signal(
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
|
||||||
{
|
|
||||||
{
|
|
||||||
{
|
|
||||||
image = n.icon,
|
|
||||||
resize = true,
|
|
||||||
widget = wibox.widget.imagebox,
|
|
||||||
clip_shape = function(cr, width, height)
|
|
||||||
gears.shape.rounded_rect(cr, width, height, 10)
|
|
||||||
end
|
|
||||||
},
|
|
||||||
width = naughty.config.defaults.icon_size,
|
|
||||||
height = naughty.config.defaults.icon_size,
|
|
||||||
strategy = "exact",
|
|
||||||
widget = wibox.container.constraint
|
|
||||||
},
|
|
||||||
halign = "center",
|
|
||||||
valign = "top",
|
|
||||||
widget = wibox.container.place
|
|
||||||
},
|
|
||||||
left = dpi(20),
|
|
||||||
bottom = dpi(15),
|
|
||||||
top = dpi(15),
|
|
||||||
right = dpi(10),
|
|
||||||
widget = wibox.container.margin
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -288,8 +274,8 @@ naughty.connect_signal(
|
||||||
},
|
},
|
||||||
layout = wibox.layout.fixed.vertical
|
layout = wibox.layout.fixed.vertical
|
||||||
},
|
},
|
||||||
left = dpi(10),
|
left = dpi(20),
|
||||||
bottom = dpi(10),
|
bottom = dpi(20),
|
||||||
top = dpi(10),
|
top = dpi(10),
|
||||||
right = dpi(20),
|
right = dpi(20),
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin
|
||||||
|
@ -355,7 +341,7 @@ naughty.connect_signal(
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
Hover_signal(close, cat["Surface0"], color["Teal200"])
|
Hover_signal(close, cat["Surface0"], cat["Peach"])
|
||||||
|
|
||||||
close:connect_signal(
|
close:connect_signal(
|
||||||
"button::press",
|
"button::press",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue