Warning, /plasma/plasma-desktop/applets/showActivityManager/package/contents/ui/ConfigAppearance.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2020 Ivan Čukić <ivan.cukic at kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import QtQuick.Controls
0009 
0010 import org.kde.kirigami as Kirigami
0011 import org.kde.plasma.plasmoid
0012 import org.kde.plasma.core as PlasmaCore
0013 import org.kde.kcmutils as KCM
0014 
0015 KCM.SimpleKCM {
0016     property alias cfg_showActivityIcon: radioCurrentActivityIcon.checked
0017     property alias cfg_showActivityName: checkShowActivityName.checked
0018 
0019     Kirigami.FormLayout {
0020         RadioButton {
0021             id: radioCurrentActivityIcon
0022 
0023             Kirigami.FormData.label: i18n("Icon:")
0024 
0025             text: i18n("Show the current activity icon")
0026         }
0027 
0028         RadioButton {
0029             id: radioGenericActivityIcon
0030             checked: !radioCurrentActivityIcon.checked
0031             text: i18n("Show the generic activity icon")
0032         }
0033 
0034         Item { Kirigami.FormData.isSection: true }
0035 
0036         CheckBox {
0037             id: checkShowActivityName
0038 
0039             enabled: Plasmoid.formFactor !== PlasmaCore.Types.Vertical
0040 
0041             Kirigami.FormData.label: i18n("Title:")
0042 
0043             text: i18n("Show the current activity name")
0044         }
0045     }
0046 }