summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/DockTab.qml
blob: 9b281a37c9aa1842d007d5e9dc3a611fb0873973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
import QtQuick
import qs.Common
import qs.Modals.FileBrowser
import qs.Services
import qs.Widgets
import qs.Modules.Settings.Widgets

Item {
    id: root

    FileBrowserModal {
        id: dockLogoFileBrowser
        browserTitle: I18n.tr("Select Dock Launcher Logo")
        browserIcon: "image"
        browserType: "generic"
        filterExtensions: ["*.svg", "*.png", "*.jpg", "*.jpeg", "*.webp"]
        onFileSelected: path => SettingsData.set("dockLauncherLogoCustomPath", path.replace("file://", ""))
    }

    DankFlickable {
        anchors.fill: parent
        clip: true
        contentHeight: mainColumn.height + Theme.spacingXL
        contentWidth: width

        Column {
            id: mainColumn
            topPadding: 4
            width: Math.min(550, parent.width - Theme.spacingL * 2)
            anchors.horizontalCenter: parent.horizontalCenter
            spacing: Theme.spacingXL

            SettingsCard {
                width: parent.width
                iconName: "dock_to_bottom"
                title: I18n.tr("Dock Visibility")
                settingKey: "dockVisibility"

                SettingsToggleRow {
                    settingKey: "showDock"
                    tags: ["dock", "show", "display", "enable"]
                    text: I18n.tr("Show Dock")
                    description: I18n.tr("Display a dock with pinned and running applications")
                    checked: SettingsData.showDock
                    onToggled: checked => SettingsData.setShowDock(checked)
                }

                SettingsToggleRow {
                    settingKey: "dockAutoHide"
                    tags: ["dock", "autohide", "hide", "hover"]
                    text: I18n.tr("Auto-hide Dock")
                    description: I18n.tr("Always hide the dock and reveal it when hovering near the dock area")
                    checked: SettingsData.dockAutoHide
                    visible: SettingsData.showDock
                    onToggled: checked => {
                        if (checked && SettingsData.dockSmartAutoHide) {
                            SettingsData.set("dockSmartAutoHide", false);
                        }
                        SettingsData.set("dockAutoHide", checked);
                    }
                }

                SettingsToggleRow {
                    settingKey: "dockSmartAutoHide"
                    tags: ["dock", "smart", "autohide", "windows", "overlap", "intelligent"]
                    text: I18n.tr("Intelligent Auto-hide")
                    description: I18n.tr("Show dock when floating windows don't overlap its area")
                    checked: SettingsData.dockSmartAutoHide
                    visible: SettingsData.showDock && (CompositorService.isNiri || CompositorService.isHyprland)
                    onToggled: checked => {
                        if (checked && SettingsData.dockAutoHide) {
                            SettingsData.set("dockAutoHide", false);
                        }
                        SettingsData.set("dockSmartAutoHide", checked);
                    }
                }

                SettingsToggleRow {
                    settingKey: "dockOpenOnOverview"
                    tags: ["dock", "overview", "niri"]
                    text: I18n.tr("Show on Overview")
                    description: I18n.tr("Always show the dock when niri's overview is open")
                    checked: SettingsData.dockOpenOnOverview
                    visible: CompositorService.isNiri
                    onToggled: checked => SettingsData.set("dockOpenOnOverview", checked)
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "swap_vert"
                title: I18n.tr("Position")
                settingKey: "dockPosition"

                Item {
                    width: parent.width
                    height: dockPositionButtonGroup.height

                    DankButtonGroup {
                        id: dockPositionButtonGroup
                        anchors.horizontalCenter: parent.horizontalCenter
                        model: [I18n.tr("Top"), I18n.tr("Bottom"), I18n.tr("Left"), I18n.tr("Right")]
                        currentIndex: {
                            switch (SettingsData.dockPosition) {
                            case SettingsData.Position.Top:
                                return 0;
                            case SettingsData.Position.Bottom:
                                return 1;
                            case SettingsData.Position.Left:
                                return 2;
                            case SettingsData.Position.Right:
                                return 3;
                            default:
                                return 1;
                            }
                        }
                        onSelectionChanged: (index, selected) => {
                            if (!selected)
                                return;
                            switch (index) {
                            case 0:
                                SettingsData.setDockPosition(SettingsData.Position.Top);
                                break;
                            case 1:
                                SettingsData.setDockPosition(SettingsData.Position.Bottom);
                                break;
                            case 2:
                                SettingsData.setDockPosition(SettingsData.Position.Left);
                                break;
                            case 3:
                                SettingsData.setDockPosition(SettingsData.Position.Right);
                                break;
                            }
                        }
                    }
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "apps"
                title: I18n.tr("Behavior")
                settingKey: "dockBehavior"

                SettingsToggleRow {
                    settingKey: "dockIsolateDisplays"
                    tags: ["dock", "isolate", "monitor", "multi-monitor"]
                    text: I18n.tr("Isolate Displays")
                    description: I18n.tr("Only show windows from the current monitor on each dock")
                    checked: SettingsData.dockIsolateDisplays
                    onToggled: checked => SettingsData.set("dockIsolateDisplays", checked)
                }

                SettingsToggleRow {
                    settingKey: "dockGroupByApp"
                    tags: ["dock", "group", "windows", "app"]
                    text: I18n.tr("Group by App")
                    description: I18n.tr("Group multiple windows of the same app together with a window count indicator")
                    checked: SettingsData.dockGroupByApp
                    onToggled: checked => SettingsData.set("dockGroupByApp", checked)
                }

                SettingsToggleRow {
                    settingKey: "dockRestoreSpecialWorkspaceOnClick"
                    tags: ["dock", "hyprland", "special", "workspace", "restore"]
                    text: I18n.tr("Restore Special Workspace Windows")
                    description: I18n.tr("When clicking a dock window in a Hyprland special workspace, bring that special workspace back before focusing the window")
                    checked: SettingsData.dockRestoreSpecialWorkspaceOnClick
                    visible: CompositorService.isHyprland
                    onToggled: checked => SettingsData.set("dockRestoreSpecialWorkspaceOnClick", checked)
                }

                SettingsButtonGroupRow {
                    settingKey: "dockIndicatorStyle"
                    tags: ["dock", "indicator", "style", "circle", "line"]
                    text: I18n.tr("Indicator Style")
                    model: [I18n.tr("Circle", "dock indicator style option"), I18n.tr("Line", "dock indicator style option")]
                    buttonPadding: Theme.spacingS
                    minButtonWidth: 44
                    textSize: Theme.fontSizeSmall
                    currentIndex: SettingsData.dockIndicatorStyle === "circle" ? 0 : 1
                    onSelectionChanged: (index, selected) => {
                        if (selected) {
                            SettingsData.set("dockIndicatorStyle", index === 0 ? "circle" : "line");
                        }
                    }
                }

                SettingsSliderRow {
                    settingKey: "dockMaxVisibleApps"
                    tags: ["dock", "overflow", "max", "apps", "limit"]
                    text: I18n.tr("Max Pinned Apps (0 = Unlimited)")
                    minimum: 0
                    maximum: 30
                    value: SettingsData.dockMaxVisibleApps
                    defaultValue: 0
                    unit: ""
                    onSliderValueChanged: newValue => SettingsData.set("dockMaxVisibleApps", newValue)
                }

                SettingsSliderRow {
                    settingKey: "dockMaxVisibleRunningApps"
                    tags: ["dock", "overflow", "max", "running", "apps", "limit"]
                    text: I18n.tr("Max Running Apps (0 = Unlimited)")
                    minimum: 0
                    maximum: 30
                    value: SettingsData.dockMaxVisibleRunningApps
                    defaultValue: 0
                    unit: ""
                    onSliderValueChanged: newValue => SettingsData.set("dockMaxVisibleRunningApps", newValue)
                }

                SettingsToggleRow {
                    settingKey: "dockShowOverflowBadge"
                    tags: ["dock", "overflow", "badge", "count", "indicator"]
                    text: I18n.tr("Show Overflow Badge Count")
                    description: I18n.tr("Displays count when overflow is active")
                    checked: SettingsData.dockShowOverflowBadge
                    onToggled: checked => SettingsData.set("dockShowOverflowBadge", checked)
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "apps"
                title: I18n.tr("Launcher Button")
                settingKey: "dockLauncher"

                SettingsToggleRow {
                    settingKey: "dockLauncherEnabled"
                    tags: ["dock", "launcher", "button", "apps"]
                    text: I18n.tr("Show Launcher Button")
                    checked: SettingsData.dockLauncherEnabled
                    onToggled: checked => SettingsData.set("dockLauncherEnabled", checked)
                }

                Column {
                    width: parent.width
                    spacing: Theme.spacingL
                    visible: SettingsData.dockLauncherEnabled

                    Column {
                        width: parent.width
                        spacing: Theme.spacingM

                        StyledText {
                            text: I18n.tr("Icon")
                            font.pixelSize: Theme.fontSizeSmall
                            color: Theme.surfaceText
                            font.weight: Font.Medium
                            anchors.horizontalCenter: parent.horizontalCenter
                        }

                        Item {
                            width: parent.width
                            height: logoModeGroup.implicitHeight
                            clip: true

                            DankButtonGroup {
                                id: logoModeGroup
                                anchors.horizontalCenter: parent.horizontalCenter
                                buttonPadding: parent.width < 480 ? Theme.spacingS : Theme.spacingL
                                minButtonWidth: parent.width < 480 ? 44 : 64
                                textSize: parent.width < 480 ? Theme.fontSizeSmall : Theme.fontSizeMedium
                                model: {
                                    const modes = [I18n.tr("Apps Icon"), I18n.tr("OS Logo"), I18n.tr("Dank")];
                                    if (CompositorService.isNiri) {
                                        modes.push("niri");
                                    } else if (CompositorService.isHyprland) {
                                        modes.push("Hyprland");
                                    } else if (CompositorService.isDwl) {
                                        modes.push("mango");
                                    } else if (CompositorService.isSway) {
                                        modes.push("Sway");
                                    } else if (CompositorService.isScroll) {
                                        modes.push("Scroll");
                                    } else if (CompositorService.isMiracle) {
                                        modes.push("Miracle");
                                    } else {
                                        modes.push(I18n.tr("Compositor"));
                                    }
                                    modes.push(I18n.tr("Custom"));
                                    return modes;
                                }
                                currentIndex: {
                                    if (SettingsData.dockLauncherLogoMode === "apps")
                                        return 0;
                                    if (SettingsData.dockLauncherLogoMode === "os")
                                        return 1;
                                    if (SettingsData.dockLauncherLogoMode === "dank")
                                        return 2;
                                    if (SettingsData.dockLauncherLogoMode === "compositor")
                                        return 3;
                                    if (SettingsData.dockLauncherLogoMode === "custom")
                                        return 4;
                                    return 0;
                                }
                                onSelectionChanged: (index, selected) => {
                                    if (!selected)
                                        return;
                                    switch (index) {
                                    case 0:
                                        SettingsData.set("dockLauncherLogoMode", "apps");
                                        break;
                                    case 1:
                                        SettingsData.set("dockLauncherLogoMode", "os");
                                        break;
                                    case 2:
                                        SettingsData.set("dockLauncherLogoMode", "dank");
                                        break;
                                    case 3:
                                        SettingsData.set("dockLauncherLogoMode", "compositor");
                                        break;
                                    case 4:
                                        SettingsData.set("dockLauncherLogoMode", "custom");
                                        break;
                                    }
                                }
                            }
                        }
                    }

                    Row {
                        width: parent.width
                        visible: SettingsData.dockLauncherLogoMode === "custom"
                        spacing: Theme.spacingM

                        StyledRect {
                            width: parent.width - selectButton.width - Theme.spacingM
                            height: 36
                            radius: Theme.cornerRadius
                            color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g, Theme.surfaceContainer.b, 0.9)
                            border.color: Theme.outlineStrong
                            border.width: 1

                            StyledText {
                                anchors.left: parent.left
                                anchors.leftMargin: Theme.spacingM
                                anchors.verticalCenter: parent.verticalCenter
                                text: SettingsData.dockLauncherLogoCustomPath || I18n.tr("Select an image file...")
                                font.pixelSize: Theme.fontSizeMedium
                                color: SettingsData.dockLauncherLogoCustomPath ? Theme.surfaceText : Theme.outlineButton
                                width: parent.width - Theme.spacingM * 2
                                elide: Text.ElideMiddle
                            }
                        }

                        DankActionButton {
                            id: selectButton
                            iconName: "folder_open"
                            width: 36
                            height: 36
                            onClicked: dockLogoFileBrowser.open()
                        }
                    }

                    Column {
                        width: parent.width
                        spacing: Theme.spacingL
                        visible: SettingsData.dockLauncherLogoMode !== "apps"

                        Column {
                            width: parent.width
                            spacing: Theme.spacingM

                            StyledText {
                                text: I18n.tr("Color Override")
                                font.pixelSize: Theme.fontSizeSmall
                                color: Theme.surfaceText
                                font.weight: Font.Medium
                                anchors.horizontalCenter: parent.horizontalCenter
                            }

                            Item {
                                width: parent.width
                                height: colorOverrideRow.implicitHeight
                                clip: true

                                Row {
                                    id: colorOverrideRow
                                    anchors.horizontalCenter: parent.horizontalCenter
                                    spacing: Theme.spacingM

                                    DankButtonGroup {
                                        id: colorModeGroup
                                        buttonPadding: parent.parent.width < 480 ? Theme.spacingS : Theme.spacingL
                                        minButtonWidth: parent.parent.width < 480 ? 44 : 64
                                        textSize: parent.parent.width < 480 ? Theme.fontSizeSmall : Theme.fontSizeMedium
                                        model: [I18n.tr("Default"), I18n.tr("Primary"), I18n.tr("Surface"), I18n.tr("Custom")]
                                        currentIndex: {
                                            const override = SettingsData.dockLauncherLogoColorOverride;
                                            if (override === "")
                                                return 0;
                                            if (override === "primary")
                                                return 1;
                                            if (override === "surface")
                                                return 2;
                                            return 3;
                                        }
                                        onSelectionChanged: (index, selected) => {
                                            if (!selected)
                                                return;
                                            switch (index) {
                                            case 0:
                                                SettingsData.set("dockLauncherLogoColorOverride", "");
                                                break;
                                            case 1:
                                                SettingsData.set("dockLauncherLogoColorOverride", "primary");
                                                break;
                                            case 2:
                                                SettingsData.set("dockLauncherLogoColorOverride", "surface");
                                                break;
                                            case 3:
                                                const currentOverride = SettingsData.dockLauncherLogoColorOverride;
                                                const isPreset = currentOverride === "" || currentOverride === "primary" || currentOverride === "surface";
                                                if (isPreset) {
                                                    SettingsData.set("dockLauncherLogoColorOverride", "#ffffff");
                                                }
                                                break;
                                            }
                                        }
                                    }

                                    Rectangle {
                                        id: colorPickerCircle
                                        visible: {
                                            const override = SettingsData.dockLauncherLogoColorOverride;
                                            return override !== "" && override !== "primary" && override !== "surface";
                                        }
                                        width: 36
                                        height: 36
                                        radius: 18
                                        color: {
                                            const override = SettingsData.dockLauncherLogoColorOverride;
                                            if (override !== "" && override !== "primary" && override !== "surface")
                                                return override;
                                            return "#ffffff";
                                        }
                                        border.color: Theme.outline
                                        border.width: 1
                                        anchors.verticalCenter: parent.verticalCenter

                                        MouseArea {
                                            anchors.fill: parent
                                            cursorShape: Qt.PointingHandCursor
                                            onClicked: {
                                                if (!PopoutService.colorPickerModal)
                                                    return;
                                                PopoutService.colorPickerModal.selectedColor = SettingsData.dockLauncherLogoColorOverride;
                                                PopoutService.colorPickerModal.pickerTitle = I18n.tr("Choose Dock Launcher Logo Color");
                                                PopoutService.colorPickerModal.onColorSelectedCallback = function (selectedColor) {
                                                    SettingsData.set("dockLauncherLogoColorOverride", selectedColor);
                                                };
                                                PopoutService.colorPickerModal.show();
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        SettingsSliderRow {
                            settingKey: "dockLauncherLogoSizeOffset"
                            tags: ["dock", "launcher", "logo", "size", "offset", "scale"]
                            text: I18n.tr("Size Offset")
                            minimum: -12
                            maximum: 12
                            value: SettingsData.dockLauncherLogoSizeOffset
                            defaultValue: 0
                            onSliderValueChanged: newValue => SettingsData.set("dockLauncherLogoSizeOffset", newValue)
                        }

                        Column {
                            width: parent.width
                            spacing: Theme.spacingM
                            visible: {
                                const override = SettingsData.dockLauncherLogoColorOverride;
                                return override !== "" && override !== "primary" && override !== "surface";
                            }

                            SettingsSliderRow {
                                settingKey: "dockLauncherLogoBrightness"
                                tags: ["dock", "launcher", "logo", "brightness", "color"]
                                text: I18n.tr("Brightness")
                                minimum: 0
                                maximum: 100
                                value: Math.round(SettingsData.dockLauncherLogoBrightness * 100)
                                unit: "%"
                                defaultValue: 50
                                onSliderValueChanged: newValue => SettingsData.set("dockLauncherLogoBrightness", newValue / 100)
                            }

                            SettingsSliderRow {
                                settingKey: "dockLauncherLogoContrast"
                                tags: ["dock", "launcher", "logo", "contrast", "color"]
                                text: I18n.tr("Contrast")
                                minimum: 0
                                maximum: 200
                                value: Math.round(SettingsData.dockLauncherLogoContrast * 100)
                                unit: "%"
                                defaultValue: 100
                                onSliderValueChanged: newValue => SettingsData.set("dockLauncherLogoContrast", newValue / 100)
                            }
                        }
                    }
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "photo_size_select_large"
                title: I18n.tr("Sizing")
                settingKey: "dockSizing"

                SettingsSliderRow {
                    settingKey: "dockIconSize"
                    tags: ["dock", "icon", "size", "scale"]
                    text: I18n.tr("Icon Size")
                    value: SettingsData.dockIconSize
                    minimum: 24
                    maximum: 96
                    unit: "px"
                    defaultValue: 48
                    onSliderValueChanged: newValue => SettingsData.set("dockIconSize", newValue)
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "space_bar"
                title: I18n.tr("Spacing")
                settingKey: "dockSpacing"
                collapsible: true
                expanded: false

                SettingsSliderRow {
                    text: I18n.tr("Padding")
                    value: SettingsData.dockSpacing
                    minimum: 0
                    maximum: 32
                    defaultValue: 8
                    onSliderValueChanged: newValue => SettingsData.set("dockSpacing", newValue)
                }

                SettingsSliderRow {
                    text: I18n.tr("Exclusive Zone Offset")
                    value: SettingsData.dockBottomGap
                    minimum: -100
                    maximum: 100
                    defaultValue: 0
                    onSliderValueChanged: newValue => SettingsData.set("dockBottomGap", newValue)
                }

                SettingsSliderRow {
                    text: I18n.tr("Margin")
                    value: SettingsData.dockMargin
                    minimum: 0
                    maximum: 100
                    defaultValue: 0
                    onSliderValueChanged: newValue => SettingsData.set("dockMargin", newValue)
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "opacity"
                title: I18n.tr("Transparency")
                settingKey: "dockTransparency"

                SettingsSliderRow {
                    text: I18n.tr("Dock Transparency")
                    value: Math.round(SettingsData.dockTransparency * 100)
                    minimum: 0
                    maximum: 100
                    unit: "%"
                    defaultValue: 85
                    onSliderValueChanged: newValue => SettingsData.set("dockTransparency", newValue / 100)
                }
            }

            SettingsCard {
                width: parent.width
                iconName: "border_style"
                title: I18n.tr("Border")
                settingKey: "dockBorder"
                collapsible: true
                expanded: false

                SettingsToggleRow {
                    text: I18n.tr("Border")
                    description: I18n.tr("Add a border around the dock")
                    checked: SettingsData.dockBorderEnabled
                    onToggled: checked => SettingsData.set("dockBorderEnabled", checked)
                }

                SettingsButtonGroupRow {
                    text: I18n.tr("Border Color")
                    description: I18n.tr("Choose the border accent color")
                    visible: SettingsData.dockBorderEnabled
                    model: [I18n.tr("Surface", "color option"), I18n.tr("Secondary", "color option"), I18n.tr("Primary", "color option")]
                    buttonPadding: Theme.spacingS
                    minButtonWidth: 44
                    textSize: Theme.fontSizeSmall
                    currentIndex: {
                        switch (SettingsData.dockBorderColor) {
                        case "surfaceText":
                            return 0;
                        case "secondary":
                            return 1;
                        case "primary":
                            return 2;
                        default:
                            return 0;
                        }
                    }
                    onSelectionChanged: (index, selected) => {
                        if (!selected)
                            return;
                        switch (index) {
                        case 0:
                            SettingsData.set("dockBorderColor", "surfaceText");
                            break;
                        case 1:
                            SettingsData.set("dockBorderColor", "secondary");
                            break;
                        case 2:
                            SettingsData.set("dockBorderColor", "primary");
                            break;
                        }
                    }
                }

                SettingsSliderRow {
                    text: I18n.tr("Border Opacity")
                    visible: SettingsData.dockBorderEnabled
                    value: SettingsData.dockBorderOpacity * 100
                    minimum: 0
                    maximum: 100
                    unit: "%"
                    defaultValue: 100
                    onSliderValueChanged: newValue => SettingsData.set("dockBorderOpacity", newValue / 100)
                }

                SettingsSliderRow {
                    text: I18n.tr("Border Thickness")
                    visible: SettingsData.dockBorderEnabled
                    value: SettingsData.dockBorderThickness
                    minimum: 1
                    maximum: 10
                    unit: "px"
                    defaultValue: 1
                    onSliderValueChanged: newValue => SettingsData.set("dockBorderThickness", newValue)
                }
            }
        }
    }
}