appDisplay: Use icon-size instead of width/height for system actions
When creating an icon for the system actions search provider, set the icon size using StIcons own icon-size property instead of ClutterActors width and height property. That ensures the scale factor is applied and the icon will be properly scaled on hiDPI screens. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1686>
This commit is contained in:
parent
8f9d6a4c13
commit
e65e5edee6
@ -1432,8 +1432,7 @@ var AppSearchProvider = class AppSearchProvider {
|
|||||||
|
|
||||||
const createIcon = size => new St.Icon({
|
const createIcon = size => new St.Icon({
|
||||||
icon_name: iconName,
|
icon_name: iconName,
|
||||||
width: size,
|
icon_size: size,
|
||||||
height: size,
|
|
||||||
style_class: 'system-action-icon',
|
style_class: 'system-action-icon',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user