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_activeInterval: activeIntervalSpinBox.value
property alias cfg_runsPerRepo: runsPerRepoSpinBox.value
property alias cfg_hideIdle: hideIdleCheckBox.checked
property alias cfg_notifyMyFailures: notifyMyFailuresCheckBox.checked
Kirigami.FormLayout {
QQC2.SpinBox {
id: updateIntervalSpinBox
Kirigami.FormData.label: i18n("Refresh every (seconds):")
from: 10
to: 3600
value: 60
}
QQC2.SpinBox {
id: activeIntervalSpinBox
Kirigami.FormData.label: i18n("While a run is in flight (seconds):")
from: 2
to: 300
value: 5
}
QQC2.Label {
Layout.fillWidth: true
wrapMode: Text.WordWrap
font: Kirigami.Theme.smallFont
color: Kirigami.Theme.disabledTextColor
text: i18n("While anything is queued, waiting or running the widget polls faster, and only refetches repositories whose status moved or hasn't finished. A fork's run waiting for approval is checked at the normal pace.")
}
QQC2.SpinBox {
id: runsPerRepoSpinBox
Kirigami.FormData.label: i18n("Runs listed per repository:")
from: 1
to: 50
value: 10
}
QQC2.CheckBox {
id: hideIdleCheckBox
Kirigami.FormData.label: i18n("Circles:")
text: i18n("Hide repositories that have never run CI")
}
QQC2.CheckBox {
id: notifyMyFailuresCheckBox
Kirigami.FormData.label: i18n("Notifications:")
text: i18n("Notify when any run I triggered fails")
}
QQC2.Label {
Layout.fillWidth: true
wrapMode: Text.WordWrap
font: Kirigami.Theme.smallFont
color: Kirigami.Theme.disabledTextColor
text: i18n("\"I\" is the user the access token belongs to. Only runs in watched repositories that the widget saw in flight count. To hear about one particular run whatever its outcome, use the bell on that run.")
}
}
}
neiam
/gitgud-plasmoid
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
2.3 KiB · text
History
4f26744