workspaceThumbnail: Expose maxThumbnailScale as property
Some extensions want to modify the value of the MAX_THUMBNAIL_SCALE constant. That is no longer possible, as exports are always read-only from the outside. Make this possible again by exposing the scale as a property on the object itself, so extensions can override it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2939>
This commit is contained in:

committed by
Marge Bot

parent
08eaf83141
commit
d8014090fd
@ -15,7 +15,7 @@ import * as OverviewControls from './overviewControls.js';
|
||||
import * as SwipeTracker from './swipeTracker.js';
|
||||
import * as Util from '../misc/util.js';
|
||||
import * as Workspace from './workspace.js';
|
||||
import {ThumbnailsBox, MAX_THUMBNAIL_SCALE} from './workspaceThumbnail.js';
|
||||
import {ThumbnailsBox} from './workspaceThumbnail.js';
|
||||
|
||||
const WORKSPACE_SWITCH_TIME = 250;
|
||||
|
||||
@ -651,7 +651,7 @@ class SecondaryMonitorDisplay extends St.Widget {
|
||||
const [thumbnailsHeight] = this._thumbnails.get_preferred_height(width);
|
||||
return Math.min(
|
||||
thumbnailsHeight * expandFraction,
|
||||
height * MAX_THUMBNAIL_SCALE);
|
||||
height * this._thumbnails.maxThumbnailScale);
|
||||
}
|
||||
|
||||
_getWorkspacesBoxForState(state, box, padding, thumbnailsHeight, spacing) {
|
||||
|
Reference in New Issue
Block a user