Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
1.2 KiB
QML
53 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.compat.noctalia.Commons
|
|
import qs.compat.noctalia.Widgets
|
|
|
|
// Input and button row
|
|
RowLayout {
|
|
id: root
|
|
|
|
// Public properties
|
|
property string label: ""
|
|
property string description: ""
|
|
property string placeholderText: ""
|
|
property string text: ""
|
|
property string actionButtonText: I18n.tr("common.test")
|
|
property string actionButtonIcon: "media-play"
|
|
property bool actionButtonEnabled: text !== ""
|
|
|
|
// Signals
|
|
signal editingFinished
|
|
signal actionClicked
|
|
|
|
// Internal properties
|
|
spacing: Style.marginM
|
|
|
|
NTextInput {
|
|
id: textInput
|
|
label: root.label
|
|
description: root.description
|
|
placeholderText: root.placeholderText
|
|
text: root.text
|
|
onTextChanged: root.text = text
|
|
onEditingFinished: root.editingFinished()
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
NButton {
|
|
Layout.fillWidth: false
|
|
Layout.alignment: Qt.AlignBottom
|
|
|
|
text: root.actionButtonText
|
|
icon: root.actionButtonIcon
|
|
backgroundColor: Color.mSecondary
|
|
textColor: Color.mOnSecondary
|
|
hoverColor: Color.mHover
|
|
enabled: root.actionButtonEnabled
|
|
|
|
onClicked: {
|
|
root.actionClicked();
|
|
}
|
|
}
|
|
}
|