Add minimum width for notification action buttons

For all notification themes
This commit is contained in:
elenapan 2020-04-22 01:13:20 +03:00
parent 3d8f2aeaac
commit b1b8bc5c74
3 changed files with 28 additions and 19 deletions

View file

@ -80,15 +80,20 @@ naughty.connect_signal("request::display", function(n)
widget_template = {
{
{
id = 'text_role',
font = beautiful.notification_font,
widget = wibox.widget.textbox
{
id = 'text_role',
font = beautiful.notification_font,
widget = wibox.widget.textbox
},
widget = wibox.container.place
},
widget = wibox.container.place
bg = x.foreground.."22",
forced_height = dpi(25),
widget = wibox.container.background
},
bg = x.foreground.."22",
forced_height = dpi(25),
widget = wibox.container.background
strategy = "min",
width = dpi(60),
widget = wibox.container.constraint,
},
style = {
underline_normal = false,

View file

@ -94,15 +94,20 @@ naughty.connect_signal("request::display", function(n)
widget_template = {
{
{
id = 'text_role',
font = beautiful.notification_font,
widget = wibox.widget.textbox
{
id = 'text_role',
font = beautiful.notification_font,
widget = wibox.widget.textbox
},
widget = wibox.container.place
},
widget = wibox.container.place
bg = x.color0,
forced_height = dpi(35),
widget = wibox.container.background
},
bg = x.color0,
forced_height = dpi(35),
widget = wibox.container.background
strategy = "min",
width = dpi(60),
widget = wibox.container.constraint,
},
style = {
underline_normal = false,

View file

@ -15,9 +15,7 @@ naughty.connect_signal("request::display", function(n)
notification = n,
base_layout = wibox.widget {
spacing = dpi(5),
forced_num_cols = 3,
layout = wibox.layout.grid
-- layout = wibox.layout.flex.horizontal
layout = wibox.layout.flex.horizontal
},
widget_template = {
{
@ -37,8 +35,9 @@ naughty.connect_signal("request::display", function(n)
},
widget = wibox.container.place
},
-- forced_height = dpi(35),
widget = wibox.container.background
strategy = "min",
width = dpi(60),
widget = wibox.container.constraint,
},
style = {
underline_normal = false,