/*SPDX-FileCopyrightText: 2024 Vlad Zahorodnii <vlad.zahorodnii@kde.org>SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL*/import QtQuickimport QtQuick.Layoutsimport QtQuick.Controls as QQC2import org.kde.kcmutils as KCMUtilsimport org.kde.kirigami as KirigamiKirigami.Form {Kirigami.FormGroup {Kirigami.FormEntry {title: i18nc("@label", "Shake pointer to find it:")contentItem: QQC2.CheckBox {text: i18nc("@option check, Enable shake pointer effect", "Enable")KCMUtils.SettingStateBinding {configObject: kcm.shakeCursorSettingssettingName: "ShakeCursor"}checked: kcm.shakeCursorSettings.shakeCursoronToggled: kcm.shakeCursorSettings.shakeCursor = checked}}Kirigami.FormEntry {title: i18nc("@label Pointer magnification level", "Magnification:")contentItem: ColumnLayout {Kirigami.FormData.buddyFor: magnificationSliderspacing: Kirigami.Units.smallSpacingQQC2.Slider {id: magnificationSliderLayout.preferredWidth: Kirigami.Units.gridUnit * 15KCMUtils.SettingStateBinding {configObject: kcm.shakeCursorSettingssettingName: "ShakeCursorMagnification"extraEnabledConditions: kcm.shakeCursorSettings.shakeCursor}from: 2to: 10stepSize: 1Kirigami.StyleHints.tickMarkStepSize: 1snapMode: QQC2.Slider.SnapAlwaysvalue: kcm.shakeCursorSettings.shakeCursorMagnificationonMoved: kcm.shakeCursorSettings.shakeCursorMagnification = value}RowLayout {spacing: 0QQC2.Label {text: i18nc("@label Normal pointer size", "Normal")textFormat: Text.PlainText}Item {Layout.fillWidth: true}QQC2.Label {text: i18nc("@label Large pointer size", "Large")textFormat: Text.PlainText}}}}}}