diff --git a/applets/systemtray/package/contents/config/config.qml b/applets/systemtray/package/contents/config/config.qml index 2ce4e73db..e6eeac327 100644 --- a/applets/systemtray/package/contents/config/config.qml +++ b/applets/systemtray/package/contents/config/config.qml @@ -1,30 +1,35 @@ /*************************************************************************** * Copyright 2013 by Sebastian Kügler * * * * 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.0 import org.kde.plasma.configuration 2.0 ConfigModel { + ConfigCategory { + name: i18n("General") + icon: "plasma" + source: "ConfigGeneral.qml" + } ConfigCategory { name: i18n("Entries") icon: "preferences-desktop-notification" source: "ConfigEntries.qml" } } diff --git a/applets/systemtray/package/contents/config/config.qml b/applets/systemtray/package/contents/ui/ConfigGeneral.qml similarity index 68% copy from applets/systemtray/package/contents/config/config.qml copy to applets/systemtray/package/contents/ui/ConfigGeneral.qml index 2ce4e73db..e49f9d929 100644 --- a/applets/systemtray/package/contents/config/config.qml +++ b/applets/systemtray/package/contents/ui/ConfigGeneral.qml @@ -1,30 +1,41 @@ /*************************************************************************** - * Copyright 2013 by Sebastian Kügler * + * Copyright (C) 2020 Konrad Materka * * * * 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.0 +import QtQuick 2.14 +import QtQuick.Controls 2.14 as QQC2 +import org.kde.kirigami 2.13 as Kirigami -import org.kde.plasma.configuration 2.0 +Item { -ConfigModel { - ConfigCategory { - name: i18n("Entries") - icon: "preferences-desktop-notification" - source: "ConfigEntries.qml" + property alias cfg_iconSize: iconSizeComboBox.currentIndex + + Kirigami.FormLayout { + anchors.left: parent.left + anchors.right: parent.right + + QQC2.ComboBox { + id: iconSizeComboBox + + Kirigami.FormData.label: i18n("Maximum icon size:") + + model: [i18n("Small"), i18n("Small-Medium"), i18n("Medium"), i18n("Large"), i18n("Huge"), i18n("Enormous")] + } } + }