Workspace: fix scaling not applied
This commit is contained in:
parent
8d70b3d737
commit
160962d7af
1 changed files with 4 additions and 5 deletions
|
|
@ -12,20 +12,19 @@ Item {
|
|||
property bool isDestroying: false
|
||||
property bool hovered: false
|
||||
|
||||
readonly property real scaling: Scaling.scale(screen)
|
||||
|
||||
signal workspaceChanged(int workspaceId, color accentColor)
|
||||
// Unified scale
|
||||
readonly property real s: Scaling.scale(screen)
|
||||
|
||||
property ListModel localWorkspaces: ListModel {}
|
||||
property real masterProgress: 0.0
|
||||
property bool effectsActive: false
|
||||
property color effectColor: Colors.accentPrimary
|
||||
|
||||
// Unified scale
|
||||
property real s: scale
|
||||
property int horizontalPadding: Math.round(16 * s)
|
||||
property int spacingBetweenPills: Math.round(8 * s)
|
||||
|
||||
signal workspaceChanged(int workspaceId, color accentColor)
|
||||
|
||||
width: {
|
||||
let total = 0
|
||||
for (var i = 0; i < localWorkspaces.count; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue