/* * Copyright 2016 Smith AR * Michail Vourlakos * * This file is part of Latte-Dock * * Latte-Dock 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. * * Latte-Dock 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, see . */ import QtQuick 2.0 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.plasmoid 2.0 import org.kde.latte 0.1 as Latte PlasmaComponents.Page{ width: dialog.width - 2*dialog.windowSpace Column{ spacing: 1.5*theme.defaultFont.pointSize width: parent.width /******Appearance******/ Column{ width:parent.width spacing: 0.8*theme.defaultFont.pointSize Header{ text: i18n("Appearance") } Row{ Item{ width: 2*theme.defaultFont.pixelSize height: 1 } Column{ spacing: 0.4*theme.defaultFont.pixelSize PlasmaComponents.CheckBox { id: showGlow text: i18n("Show glow around windows points") onCheckedChanged: { plasmoid.configuration.showGlow = checked; } Component.onCompleted: checked = plasmoid.configuration.showGlow; } PlasmaComponents.CheckBox { id: threeColorsWindows text: i18n("Different color for minimized windows") onCheckedChanged: { plasmoid.configuration.threeColorsWindows = checked; } Component.onCompleted: checked = plasmoid.configuration.threeColorsWindows; } PlasmaComponents.CheckBox { id: dotsOnActive text: i18n("Dots on active window") onCheckedChanged: { plasmoid.configuration.dotsOnActive = checked; } Component.onCompleted: checked = plasmoid.configuration.dotsOnActive; } PlasmaComponents.CheckBox { id: reverseLinesPosition text: i18n("Reverse position for lines and dots") onCheckedChanged: { plasmoid.configuration.reverseLinesPosition = checked; } Component.onCompleted: checked = plasmoid.configuration.reverseLinesPosition; } } } } /*********Behavior************/ Column{ width:parent.width spacing: 0.8*theme.defaultFont.pointSize Header{ text: i18n("Interaction") } Row{ Item{ width: 2*theme.defaultFont.pixelSize height: 1 } Column{ spacing: 0.4*theme.defaultFont.pixelSize PlasmaComponents.CheckBox { id: showPreviewsChk text: i18n("Preview windows on hovering") onCheckedChanged: { plasmoid.configuration.showToolTips = checked; } Component.onCompleted: checked = plasmoid.configuration.showToolTips; } PlasmaComponents.CheckBox { id: highlightWindowsChk text: i18n("Highlight windows on hovering") onCheckedChanged: { plasmoid.configuration.highlightWindows = checked; } Component.onCompleted: checked = plasmoid.configuration.highlightWindows; } PlasmaComponents.CheckBox { id: windowActionsChk text: i18n("Show window actions in the context menu") onCheckedChanged: { plasmoid.configuration.showWindowActions = checked; } Component.onCompleted: checked = plasmoid.configuration.showWindowActions; } PlasmaComponents.CheckBox { id: smartLaunchersChk text: i18n("Show progress information in task buttons") onCheckedChanged: { plasmoid.configuration.smartLaunchersEnabled = checked; } Component.onCompleted: checked = plasmoid.configuration.smartLaunchersEnabled; } } } } /*******Filters*******/ Column{ width:parent.width spacing: 0.8*theme.defaultFont.pointSize Header{ text: i18n("Filters") } Row{ Item{ width: 2*theme.defaultFont.pixelSize height: 1 } Column{ spacing: 0.4*theme.defaultFont.pixelSize PlasmaComponents.CheckBox { id: showOnlyCurrentScreen text: i18n("Show only tasks from the current screen") onCheckedChanged: { plasmoid.configuration.showOnlyCurrentScreen = checked; } Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentScreen; } PlasmaComponents.CheckBox { id: showOnlyCurrentDesktop text: i18n("Show only tasks from the current desktop") onCheckedChanged: { plasmoid.configuration.showOnlyCurrentDesktop = checked; } Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentDesktop; } PlasmaComponents.CheckBox { id: showOnlyCurrentActivity text: i18n("Show only tasks from the current activity") onCheckedChanged: { plasmoid.configuration.showOnlyCurrentActivity = checked; } Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentActivity; } } } } } }