diff --git a/data/application.css b/data/application.css
index ad100ec2..c8828126 100644
--- a/data/application.css
+++ b/data/application.css
@@ -1,4 +1,3 @@
-decoration,
window,
.titlebar {
background: transparent;
@@ -18,19 +17,19 @@ window,
@BLACK_500
);
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);
+ 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;
-gtk-icon-size: 24px;
}
.close image {
color: #fff;
- -gtk-icon-shadow: 0 1px 1px alpha (#000, 0.6);
+ -gtk-icon-shadow: 0 1px 1px alpha(#000, 0.6);
}
.notification stack > grid {
diff --git a/data/image-mask.svg b/data/image-mask.svg
deleted file mode 100644
index 2209a4b6..00000000
--- a/data/image-mask.svg
+++ /dev/null
@@ -1,235 +0,0 @@
-
-
diff --git a/data/notifications.gresource.xml b/data/notifications.gresource.xml
index 01f6eace..06854e8f 100644
--- a/data/notifications.gresource.xml
+++ b/data/notifications.gresource.xml
@@ -1,7 +1,6 @@
- application.css
- image-mask.svg
+ application.css
diff --git a/src/AbstractBubble.vala b/src/AbstractBubble.vala
index 0b8b7e10..7803619a 100644
--- a/src/AbstractBubble.vala
+++ b/src/AbstractBubble.vala
@@ -55,7 +55,8 @@ public class Notifications.AbstractBubble : Gtk.Window {
transition_type = Gtk.RevealerTransitionType.CROSSFADE,
halign = Gtk.Align.START,
valign = Gtk.Align.START,
- child = close_button
+ child = close_button,
+ overflow = VISIBLE
};
var overlay = new Gtk.Overlay () {
@@ -122,7 +123,7 @@ public class Notifications.AbstractBubble : Gtk.Window {
timeout_id = 0;
}
- show ();
+ base.present ();
if (timeout != 0) {
timeout_id = Timeout.add (timeout, timeout_expired);
diff --git a/src/Widgets/MaskedImage.vala b/src/Widgets/MaskedImage.vala
index be78ab69..d31ae06a 100644
--- a/src/Widgets/MaskedImage.vala
+++ b/src/Widgets/MaskedImage.vala
@@ -18,7 +18,7 @@
*
*/
-public class Notifications.MaskedImage : Gtk.Overlay {
+public class Notifications.MaskedImage : Granite.Bin {
private const int ICON_SIZE = 48;
public Gdk.Pixbuf pixbuf { get; construct; }
@@ -28,15 +28,11 @@ public class Notifications.MaskedImage : Gtk.Overlay {
}
construct {
- var mask = new Gtk.Image.from_resource ("/io/elementary/notifications/image-mask.svg");
- mask.pixel_size = ICON_SIZE;
-
var image = new Gtk.Image ();
image.gicon = mask_pixbuf (pixbuf, scale_factor);
image.pixel_size = ICON_SIZE;
child = image;
- add_overlay (mask);
}
private static Gdk.Pixbuf? mask_pixbuf (Gdk.Pixbuf pixbuf, int scale) {