Skip to content
Draft
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
43 changes: 24 additions & 19 deletions data/NotificationEntry.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,32 @@ delete-affordance label {
font-weight: 600;
}

notification .close {
padding: 3px;
border: none;
border-radius: 100%;
notification .osd {
backdrop-filter: blur(6px);
background-color: alpha(@bg_color, 0.2);
color: @text_color;
margin: 0.25rem;
-gtk-icon-shadow: 0 1px 1px alpha(@bg_color, 0.6);
}

notification .osd.circular {
background-image:
linear-gradient(
to bottom,
@BLACK_300,
@BLACK_500
to top,
alpha(@highlight_color, 0.3),
transparent calc(100% - 0.5rem),
),
radial-gradient(
ellipse 65% 50%,
transparent calc(100% - 0.5rem),
alpha(@highlight_color, 0.25)
);
border-radius: 100%;
box-shadow:
inset 0 0 0 1px alpha(#fff, 0.02),
inset 0 1px 0 0 alpha(#fff, 0.07),
inset 0 -1px 0 0 alpha(#fff, 0.01),
0 0 0 1px alpha(#000, 0.7),
0 1px 2px alpha(#000, 0.16),
0 2px 3px alpha(#000, 0.23);
margin: 3px;
}

notification .close image {
color: #fff;
-gtk-icon-shadow: 0 1px 1px alpha(#000, 0.6);
inset 0 1px 0 0 alpha(@highlight_color, 0.6),
inset 1px 0 0 0 alpha(@highlight_color, 0.07),
inset -1px 0 0 0 alpha(@highlight_color, 0.07),
inset 0 -1px 0 0 alpha(@highlight_color, 0.8),
0 2px 4px alpha(black, 0.1),
0 1px 2px alpha(black, 0.1);
}
7 changes: 4 additions & 3 deletions src/Widgets/NotificationEntry.vala
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ public class Notifications.NotificationEntry : Gtk.ListBoxRow {
};
grid.add_css_class (Granite.CssClass.CARD);


var delete_button = new Gtk.Button.from_icon_name ("window-close-symbolic") {
halign = START,
valign = START
};
delete_button.add_css_class ("close");
delete_button.add_css_class (Granite.STYLE_CLASS_OSD);
delete_button.add_css_class (Granite.CssClass.CIRCULAR);

var delete_revealer = new Gtk.Revealer () {
child = delete_button,
Expand Down Expand Up @@ -225,7 +225,8 @@ public class Notifications.NotificationEntry : Gtk.ListBoxRow {
child = carousel,
reveal_child = true,
transition_duration = 200,
transition_type = SLIDE_UP
transition_type = SLIDE_UP,
overflow = VISIBLE
};

child = revealer;
Expand Down
Loading