Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions data/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 6 additions & 3 deletions src/Bubble.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does "urgent" always imply an error? Even if it's linked to the same styles, should this have a semantic Granite.CssClass.URGENT class added?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of goes with elementary/granite#1022

Basically, I think urgent should be defined as an emergency which to me is semantically similar to error

}
}
}
}
Loading