[gnome-shell/wip/snwh/notifications-icon] calendar: Use symbolic icon for No Notifications




commit 1944af4013075acc8ae349d647de44eb27364791
Author: Sam Hewitt <sam snwh org>
Date:   Fri Feb 4 13:29:36 2022 -0330

    calendar: Use symbolic icon for No Notifications
    
    - drop old assets
    - use symbolic icon for no notifications
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2157>

 data/gnome-shell-theme.gresource.xml               |   2 -
 .../gnome-shell-sass/widgets/_message-list.scss    |   2 +-
 data/theme/no-events.svg                           | 119 ---------------------
 data/theme/no-notifications.svg                    |   1 -
 js/ui/calendar.js                                  |   4 +-
 5 files changed, 2 insertions(+), 126 deletions(-)
---
diff --git a/data/gnome-shell-theme.gresource.xml b/data/gnome-shell-theme.gresource.xml
index 3df1b7235c..24b3be8dbb 100644
--- a/data/gnome-shell-theme.gresource.xml
+++ b/data/gnome-shell-theme.gresource.xml
@@ -12,8 +12,6 @@
     <file>gnome-shell.css</file>
     <file>gnome-shell-high-contrast.css</file>
     <file>gnome-shell-start.svg</file>
-    <file>no-events.svg</file>
-    <file>no-notifications.svg</file>
     <file>pad-osd.css</file>
     <file>process-working.svg</file>
     <file>toggle-off.svg</file>
diff --git a/data/theme/gnome-shell-sass/widgets/_message-list.scss 
b/data/theme/gnome-shell-sass/widgets/_message-list.scss
index c7e84cb3f6..b99004dbd4 100644
--- a/data/theme/gnome-shell-sass/widgets/_message-list.scss
+++ b/data/theme/gnome-shell-sass/widgets/_message-list.scss
@@ -9,7 +9,7 @@
   .message-list-placeholder { 
     font-weight:1000; 
     font-size: 18pt;
-    color: transparentize($fg_color, 0.7);
+    color: $insensitive_fg_color;
     spacing: 12px;
 
     // icon size and color
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 035c7ccc46..4ed17cf73a 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -894,9 +894,7 @@ class Placeholder extends St.BoxLayout {
         super._init({ style_class: 'message-list-placeholder', vertical: true });
         this._date = new Date();
 
-        const file = Gio.File.new_for_uri(
-            'resource:///org/gnome/shell/theme/no-notifications.svg');
-        this._icon = new St.Icon({ gicon: new Gio.FileIcon({ file }) });
+        this._icon = new St.Icon({ icon_name: 'no-notifications-symbolic' });
         this.add_actor(this._icon);
 
         this._label = new St.Label({ text: _('No Notifications') });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]