mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
50 lines
2.3 KiB
QML
50 lines
2.3 KiB
QML
|
|
||
|
|
||
|
/***************************************************************************
|
||
|
* Copyright (C) 2020 Konrad Materka <materka@gmail.com> *
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
* This program is distributed in the hope that it will be useful, *
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||
|
* GNU General Public License for more details. *
|
||
|
* *
|
||
|
* You should have received a copy of the GNU General Public License *
|
||
|
* along with this program; if not, write to the *
|
||
|
* Free Software Foundation, Inc., *
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
|
||
|
***************************************************************************/
|
||
|
import QtQuick 2.14
|
||
|
import QtQuick.Controls 2.14 as QQC2
|
||
|
import QtQuick.Layouts 1.13
|
||
|
|
||
|
import org.kde.plasma.core 2.1 as PlasmaCore
|
||
|
|
||
|
import org.kde.kirigami 2.13 as Kirigami
|
||
|
|
||
|
ColumnLayout {
|
||
|
property bool cfg_scaleIconsToFit
|
||
|
|
||
|
Kirigami.FormLayout {
|
||
|
Layout.fillHeight: true
|
||
|
|
||
|
QQC2.RadioButton {
|
||
|
Kirigami.FormData.label: i18nc("The arrangement of system tray icons in the Panel", "Panel icon size:")
|
||
|
text: i18n("Small")
|
||
|
checked: cfg_scaleIconsToFit == false
|
||
|
onToggled: cfg_scaleIconsToFit = !checked
|
||
|
}
|
||
|
QQC2.RadioButton {
|
||
|
id: automaticRadioButton
|
||
|
text: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? i18n("Scale with Panel height")
|
||
|
: i18n("Scale with Panel width")
|
||
|
checked: cfg_scaleIconsToFit == true
|
||
|
onToggled: cfg_scaleIconsToFit = checked
|
||
|
}
|
||
|
}
|
||
|
}
|