mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 14:07:47 -04:00
- density setting (spacious, comfortable, compact, dense)
- bar, dock, island and frame sizes follow density presets and keep values the user changed
- launcher no longer rebuilds every frame while the action panel animates
- cc toggle rows match the single-height list rows
- ipc settings set runs change hooks and rejects unknown keys and density values
- state layer focus and pressed follow the library's m3 values
- bump dux-qml-common for density menu and file browser metrics
(cherry picked from commit 76025038df)
24 lines
996 B
QML
24 lines
996 B
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import qs.Common
|
|
import qs.DCommon.Common as DCommon
|
|
import qs.Services
|
|
import qs.Modules.Settings.Widgets
|
|
|
|
Singleton {
|
|
readonly property real rowHeight: Math.max(Theme.listItemHeight + Theme.densityStepM, Theme.buttonHeightS + Theme.spacingXS)
|
|
readonly property real cpuColumnWidth: Theme.fontSizeSmall * 7
|
|
readonly property real memoryColumnWidth: Theme.fontSizeSmall * 8
|
|
readonly property real pidColumnWidth: Theme.fontSizeSmall * 6
|
|
readonly property real actionColumnWidth: Theme.iconButtonSize
|
|
readonly property real headerHeight: Theme.buttonHeightS
|
|
readonly property real windowHeight: SettingsMetrics.windowHeight
|
|
readonly property real menuWidth: 240
|
|
readonly property real menuRowHeight: DCommon.Style.menuRowHeight
|
|
readonly property real menuPadding: DCommon.Style.menuPadding
|
|
readonly property real dialogWidth: 360
|
|
readonly property int refreshInterval: DgopService.updateInterval
|
|
}
|