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
This commit is contained in:
parent
838428838d
commit
4e195d789a
@ -1333,7 +1333,11 @@ 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 => app.create_icon_texture(size),
|
createIcon: 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);
|
||||||
@ -2495,7 +2499,9 @@ var AppIcon = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_createIcon(iconSize) {
|
_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() {
|
_removeMenuTimeout() {
|
||||||
|
Loading…
Reference in New Issue
Block a user