appDisplay: Don't use symbolic icon at full size for system actions
When attempting to account for scaling in e65e5ede the icon_size of the StIcon was set to the target size, overriding the icon-size set in the 'system-action-icon' CSS, which was only half the size. The intent of that commit however was not to scale up the symbolic icon, but the circle around it. Do this by manually applying the scaling factor. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3940 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1777>
This commit is contained in:
parent
dedfdb6d0b
commit
401b584384
@ -1855,6 +1855,7 @@ var AppSearchProvider = class AppSearchProvider {
|
||||
}
|
||||
|
||||
getResultMetas(apps, callback) {
|
||||
const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
|
||||
let metas = [];
|
||||
for (let id of apps) {
|
||||
if (id.endsWith('.desktop')) {
|
||||
@ -1871,7 +1872,8 @@ var AppSearchProvider = class AppSearchProvider {
|
||||
|
||||
const createIcon = size => new St.Icon({
|
||||
icon_name: iconName,
|
||||
icon_size: size,
|
||||
width: size * scaleFactor,
|
||||
height: size * scaleFactor,
|
||||
style_class: 'system-action-icon',
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user