mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
08eaf83141
commit
d8014090fd
3 changed files with 12 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue