Files
DankMaterialShell/quickshell/Modals/SystemUpdateModal.qml
T
purian23 76025038df feat(density): interface density setting for shell surfaces
- 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
2026-10-27 20:46:01 -04:00

60 lines
1.5 KiB
QML

import QtQuick
import qs.Common
import qs.Modules.Settings.Widgets
import qs.Modules.SystemUpdate
import qs.Services
import qs.DCommon.Widgets
import qs.Widgets
DFloatingWindow {
id: root
function show() {
visible = true;
}
function hide() {
visible = false;
}
objectName: "systemUpdateModal"
title: I18n.tr("Software updates", "settings page, modal and bar widget title, DMS and system package updates")
minimumSize: Qt.size(SettingsMetrics.windowMinWidth, SettingsMetrics.windowMinHeight)
implicitWidth: SettingsMetrics.formDialogWidth + SettingsMetrics.pagePaddingH * 2
readonly property real defaultHeight: SettingsMetrics.windowHeight - SettingsMetrics.basePagePaddingV * 4
implicitHeight: heightWithin(defaultHeight, SettingsMetrics.pagePaddingH * 2 + Theme.spacingL)
visible: false
Ref {
service: SystemUpdateService
active: root.visible
}
onClosed: hide()
Column {
anchors.fill: parent
spacing: 0
DWindowHeader {
id: titleBar
width: parent.width
controls: windowControls
title: root.title
onCloseRequested: root.hide()
}
SystemUpdatePanel {
width: parent.width
height: parent.height - titleBar.height
hostVisible: root.visible
onCloseRequested: root.hide()
}
}
FloatingWindowControls {
id: windowControls
targetWindow: root
}
}