1.6 KiB · text History cc97953
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_previews: previewsCheckBox.checked
    property alias cfg_wheelBrightness: wheelCheckBox.checked
    property alias cfg_hideDark: hideDarkCheckBox.checked

    Kirigami.FormLayout {
        QQC2.CheckBox {
            id: previewsCheckBox
            Kirigami.FormData.label: i18n("Colours:")
            text: i18n("Draw live colours from machine previews")
        }

        QQC2.Label {
            Layout.fillWidth: true
            wrapMode: Text.WordWrap
            font: Kirigami.Theme.smallFont
            color: Kirigami.Theme.disabledTextColor
            text: i18n("Previews are 32 pixels per machine, up to four times a second. Without them a lit circle is drawn in the highlight colour.")
        }

        QQC2.CheckBox {
            id: wheelCheckBox
            Kirigami.FormData.label: i18n("Scrolling:")
            text: i18n("Scroll over a circle to dim or brighten its place")
        }

        QQC2.Label {
            Layout.fillWidth: true
            wrapMode: Text.WordWrap
            font: Kirigami.Theme.smallFont
            color: Kirigami.Theme.disabledTextColor
            text: i18n("Over the logo it steps the global clamp. Each notch is one rung of the brightness ladder.")
        }

        QQC2.CheckBox {
            id: hideDarkCheckBox
            Kirigami.FormData.label: i18n("Circles:")
            text: i18n("Hide circles with nothing linked to them")
        }
    }
}