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 isDestroying: false
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
|
|
||||||
readonly property real scaling: Scaling.scale(screen)
|
// Unified scale
|
||||||
|
readonly property real s: Scaling.scale(screen)
|
||||||
signal workspaceChanged(int workspaceId, color accentColor)
|
|
||||||
|
|
||||||
property ListModel localWorkspaces: ListModel {}
|
property ListModel localWorkspaces: ListModel {}
|
||||||
property real masterProgress: 0.0
|
property real masterProgress: 0.0
|
||||||
property bool effectsActive: false
|
property bool effectsActive: false
|
||||||
property color effectColor: Colors.accentPrimary
|
property color effectColor: Colors.accentPrimary
|
||||||
|
|
||||||
// Unified scale
|
|
||||||
property real s: scale
|
|
||||||
property int horizontalPadding: Math.round(16 * s)
|
property int horizontalPadding: Math.round(16 * s)
|
||||||
property int spacingBetweenPills: Math.round(8 * s)
|
property int spacingBetweenPills: Math.round(8 * s)
|
||||||
|
|
||||||
|
signal workspaceChanged(int workspaceId, color accentColor)
|
||||||
|
|
||||||
width: {
|
width: {
|
||||||
let total = 0
|
let total = 0
|
||||||
for (var i = 0; i < localWorkspaces.count; i++) {
|
for (var i = 0; i < localWorkspaces.count; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue