diff --git a/applets/systemtray/package/contents/config/config.qml b/applets/systemtray/package/contents/config/config.qml --- a/applets/systemtray/package/contents/config/config.qml +++ b/applets/systemtray/package/contents/config/config.qml @@ -27,6 +27,11 @@ icon: "preferences-system-windows" source: "ConfigGeneral.qml" } + ConfigCategory { + name: i18n("Appearance") + icon: "preferences-desktop-wallpaper" + source: "ConfigAppearance.qml" + } ConfigCategory { name: i18n("Entries") icon: "preferences-desktop-notification" diff --git a/applets/systemtray/package/contents/config/main.xml b/applets/systemtray/package/contents/config/main.xml --- a/applets/systemtray/package/contents/config/main.xml +++ b/applets/systemtray/package/contents/config/main.xml @@ -54,6 +54,11 @@ false + + + + 0 + diff --git a/applets/systemtray/package/contents/ui/ConfigAppearance.qml b/applets/systemtray/package/contents/ui/ConfigAppearance.qml new file mode 100644 --- /dev/null +++ b/applets/systemtray/package/contents/ui/ConfigAppearance.qml @@ -0,0 +1,52 @@ +/* + * Copyright 2013 Sebastian Kügler + * Copyright 2014 Marco Martin + * + * 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 2.010-1301, USA. + */ + +import QtQuick 2.0 +import QtQuick.Controls 1.0 as QtControls +import QtQuick.Layouts 1.0 as QtLayouts + +Item { + id: appearancePage + + width: childrenRect.width + height: childrenRect.height + implicitWidth: mainColumn.implicitWidth + implicitHeight: pageColumn.implicitHeight + + property alias cfg_iconsSpacing: iconsSpacing.value + + + QtLayouts.ColumnLayout { + id: mainColumn + + QtLayouts.RowLayout { + QtControls.Label { + text: i18n("Icons Spacing:"); + } + + QtControls.SpinBox{ + id: iconsSpacing + minimumValue: 0 + maximumValue: 36 //in pixels + + suffix: i18nc("pixels","px.") + } + } + } +} diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml --- a/applets/systemtray/package/contents/ui/main.qml +++ b/applets/systemtray/package/contents/ui/main.qml @@ -307,7 +307,7 @@ //Main Layout Flow { id: tasksRow - spacing: 0 + spacing: plasmoid.configuration.iconsSpacing height: parent.height - (vertical && expander.visible ? expander.height : 0) width: parent.width - (vertical || !expander.visible ? 0 : expander.width) property string skipItems