[gnome-shell] appDisplay: Add drop shadow to icons
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Add drop shadow to icons
- Date: Mon, 31 Aug 2020 20:24:21 +0000 (UTC)
commit 4e195d789ab99d02a62feb2494ff7f4f2f1ce761
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Aug 31 20:54:37 2020 +0200
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 c1fb1cb201..daaf746933 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]