import QtQuick
import QtQuick.Controls as QQC2
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import org.kde.kcmutils as KCM
KCM.SimpleKCM {
id: configBehavior
property alias cfg_updateInterval: updateIntervalSpinBox.value
property alias cfg_recentHours: recentHoursSpinBox.value
property alias cfg_notifyNewIssues: notifyNewCheckBox.checked
property alias cfg_notifyRegressions: notifyRegressionsCheckBox.checked
property alias cfg_notifyMonitors: notifyMonitorsCheckBox.checked
Kirigami.FormLayout {
QQC2.SpinBox {
id: updateIntervalSpinBox
Kirigami.FormData.label: i18n("Refresh every (seconds):")
from: 15
to: 3600
value: 60
}
QQC2.Label {
Layout.fillWidth: true
Layout.maximumWidth: Kirigami.Units.gridUnit * 24
wrapMode: Text.WordWrap
font: Kirigami.Theme.smallFont
color: Kirigami.Theme.disabledTextColor
text: i18n("Each refresh asks for the unresolved issues, the recently seen resolved ones (to tell a regression), and the cron and uptime monitors. Opening the popup refreshes too. While the server can't be reached it retries every 15 seconds and keeps showing the last answer.")
}
QQC2.SpinBox {
id: recentHoursSpinBox
Kirigami.FormData.label: i18n("Recent means the last (hours):")
from: 1
to: 720
value: 24
}
QQC2.Label {
Layout.fillWidth: true
Layout.maximumWidth: Kirigami.Units.gridUnit * 24
wrapMode: Text.WordWrap
font: Kirigami.Theme.smallFont
color: Kirigami.Theme.disabledTextColor
text: i18n("A circle turns red for a failing monitor or an issue that regressed this recently, and orange for an unresolved issue first seen this recently. Otherwise it's green.")
}
Kirigami.Separator {
Kirigami.FormData.isSection: true
Kirigami.FormData.label: i18n("Notifications")
}
QQC2.CheckBox {
id: notifyNewCheckBox
Kirigami.FormData.label: i18n("Notify when:")
text: i18n("A new issue appears")
}
QQC2.CheckBox {
id: notifyRegressionsCheckBox
text: i18n("A resolved issue comes back")
}
QQC2.CheckBox {
id: notifyMonitorsCheckBox
text: i18n("A cron or uptime monitor starts failing")
}
QQC2.Label {
Layout.fillWidth: true
Layout.maximumWidth: Kirigami.Units.gridUnit * 24
wrapMode: Text.WordWrap
font: Kirigami.Theme.smallFont
color: Kirigami.Theme.disabledTextColor
text: i18n("Only for what changes between two refreshes of the watched projects: nothing fires for what was already so when the widget started, or after you switch organization or projects.")
}
}
}
neiam
/vigil-plasmoid
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
3.0 KiB · text
History
905ae26