From 4e195d789ab99d02a62feb2494ff7f4f2f1ce761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 31 Aug 2020 20:54:37 +0200 Subject: [PATCH] appDisplay: Add drop shadow to icons The shadow is barely visible on dark backgrounds, but it's not wrong to be consistent with Settings, Software and GNOME Classic. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3123 --- js/ui/appDisplay.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c1fb1cb20..daaf74693 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1333,7 +1333,11 @@ var AppSearchProvider = class AppSearchProvider { metas.push({ id: app.get_id(), name: app.get_name(), - createIcon: size => app.create_icon_texture(size), + createIcon: size => { + const icon = app.create_icon_texture(size); + icon.add_style_class_name('icon-dropshadow'); + return icon; + }, }); } else { let name = this._systemActions.getName(id); @@ -2495,7 +2499,9 @@ var AppIcon = GObject.registerClass({ } _createIcon(iconSize) { - return this.app.create_icon_texture(iconSize); + const icon = this.app.create_icon_texture(iconSize); + icon.add_style_class_name('icon-dropshadow'); + return icon; } _removeMenuTimeout() {