diff --git a/data/application.css b/data/application.css index 2cc547f..f77f203 100644 --- a/data/application.css +++ b/data/application.css @@ -45,6 +45,14 @@ button.osd { margin: 16px; } +.notification .draw-area label.title { + font-weight: 700; +} + +.notification .draw-area label.title image { + color: color-mix(in srgb, var(@fg_color) 78%, transparent); +} + .notification.reduce-transparency .draw-area { margin: 16px; background: @base_color; diff --git a/src/Bubble.vala b/src/Bubble.vala index 533a521..4f35538 100644 --- a/src/Bubble.vala +++ b/src/Bubble.vala @@ -15,9 +15,7 @@ public class Notifications.Bubble : AbstractBubble { var contents = new Contents (value); - if (value.priority == URGENT) { - contents.add_css_class ("urgent"); - } else { + if (value.priority != URGENT) { timeout = 4000; } @@ -162,6 +160,11 @@ public class Notifications.Bubble : AbstractBubble { attach (action_area, 0, 2, 2); } + + if (notification.priority == URGENT) { + add_css_class ("urgent"); + title_label.add_css_class (Granite.CssClass.ERROR); + } } } }