notification: Show symbolic icons in a circle and smaller
Huge symbolic icons look bad therefore we special case them, this obviously can only work for icons that use the system icons. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3066>
This commit is contained in:
@ -790,10 +790,11 @@ class NotificationMessage extends MessageList.Message {
|
||||
}
|
||||
|
||||
_getIcon() {
|
||||
if (this.notification.gicon) {
|
||||
return new St.Icon({
|
||||
gicon: this.notification.gicon,
|
||||
});
|
||||
const {gicon} = this.notification;
|
||||
if (gicon) {
|
||||
const styleClass =
|
||||
gicon instanceof Gio.ThemedIcon ? 'message-themed-icon' : '';
|
||||
return new St.Icon({gicon, styleClass});
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user