mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 18:25:53 +00:00
68 lines
2.0 KiB
QML
68 lines
2.0 KiB
QML
/*
|
|
SPDX-FileCopyrightText: 2013 Eike Hein <hein@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import org.kde.kirigami 2.19 as Kirigami
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
Kirigami.FormLayout {
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
|
|
readonly property bool plasmaPaAvailable: Qt.createComponent("PulseAudio.qml").status === Component.Ready
|
|
readonly property bool plasmoidVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
|
|
|
|
property alias cfg_showToolTips: showToolTips.checked
|
|
property alias cfg_highlightWindows: highlightWindows.checked
|
|
property bool cfg_indicateAudioStreams
|
|
property alias cfg_maxStripes: maxStripes.value
|
|
property alias cfg_forceStripes: forceStripes.checked
|
|
|
|
CheckBox {
|
|
id: showToolTips
|
|
Kirigami.FormData.label: i18n("General:")
|
|
text: i18n("Show tooltips")
|
|
}
|
|
|
|
RowLayout {
|
|
// HACK: Workaround for Kirigami bug 434625
|
|
// due to which a simple Layout.leftMargin on CheckBox doesn't work
|
|
Item { implicitWidth: Kirigami.Units.gridUnit }
|
|
CheckBox {
|
|
id: highlightWindows
|
|
text: i18n("Highlight windows when hovering over task tooltips")
|
|
enabled: showToolTips.checked
|
|
}
|
|
}
|
|
|
|
CheckBox {
|
|
id: indicateAudioStreams
|
|
text: i18n("Mark applications that play audio")
|
|
checked: cfg_indicateAudioStreams && plasmaPaAvailable
|
|
onCheckedChanged: cfg_indicateAudioStreams = checked
|
|
enabled: plasmaPaAvailable
|
|
}
|
|
|
|
Item {
|
|
Kirigami.FormData.isSection: true
|
|
}
|
|
|
|
SpinBox {
|
|
id: maxStripes
|
|
Kirigami.FormData.label: plasmoidVertical ? i18n("Maximum columns:") : i18n("Maximum rows:")
|
|
from: 1
|
|
}
|
|
|
|
CheckBox {
|
|
id: forceStripes
|
|
text: plasmoidVertical ? i18n("Always arrange tasks in rows of as many columns") : i18n("Always arrange tasks in columns of as many rows")
|
|
enabled: maxStripes.value > 1
|
|
}
|
|
}
|