mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-29 03:37:13 +08:00
Add minimum width for notification action buttons
For all notification themes
This commit is contained in:
parent
3d8f2aeaac
commit
b1b8bc5c74
3 changed files with 28 additions and 19 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue