mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
appDisplay: Revisit "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. With the app icon swarm animation gon, the performance implications might not be as critical (https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3124 - increase blur but not much, while we can't have multi-layered shadows. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3670 Also see https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3123
This commit is contained in:
parent
97b9cdc720
commit
53166ad93f
3 changed files with 10 additions and 3 deletions
|
|
@ -14,5 +14,5 @@
|
|||
|
||||
// Dropshadow for large icons
|
||||
.icon-dropshadow {
|
||||
icon-shadow: 0 1px 2px rgba(black, 0.4);
|
||||
icon-shadow: 0 1px 5px rgba(black, 0.8);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1424,7 +1424,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);
|
||||
|
|
@ -2688,7 +2692,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() {
|
||||
|
|
|
|||
|
|
@ -468,6 +468,7 @@ var Dash = GObject.registerClass({
|
|||
item.setLabelText(app.get_name());
|
||||
|
||||
appIcon.icon.setIconSize(this.iconSize);
|
||||
appIcon.icon.add_style_class_name('icon-dropshadow');
|
||||
this._hookUpLabel(item, appIcon);
|
||||
|
||||
return item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue