Revert "appDisplay: Add drop shadow to icons"

The shadows are hardly visible in the darkened overview, but have
a noticeable impact on performance.

This reverts commit 4e195d789ab99d02a6.
This commit is contained in:
Florian Müllner 2020-09-02 11:11:39 +02:00
parent 998e3e62ad
commit 69e81e4511

View File

@ -1341,11 +1341,7 @@ var AppSearchProvider = class AppSearchProvider {
metas.push({ metas.push({
id: app.get_id(), id: app.get_id(),
name: app.get_name(), name: app.get_name(),
createIcon: size => { createIcon: size => app.create_icon_texture(size),
const icon = app.create_icon_texture(size);
icon.add_style_class_name('icon-dropshadow');
return icon;
},
}); });
} else { } else {
let name = this._systemActions.getName(id); let name = this._systemActions.getName(id);
@ -2507,9 +2503,7 @@ var AppIcon = GObject.registerClass({
} }
_createIcon(iconSize) { _createIcon(iconSize) {
const icon = this.app.create_icon_texture(iconSize); return this.app.create_icon_texture(iconSize);
icon.add_style_class_name('icon-dropshadow');
return icon;
} }
_removeMenuTimeout() { _removeMenuTimeout() {