improve tasks config page appearance

pull/1/head
Michail Vourlakos 8 years ago
parent 6699b70aa5
commit 259fda4661

@ -1,4 +1,4 @@
import QtQuick 2.0
import QtQuick 2.7
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
@ -26,48 +26,55 @@ PlasmaComponents.Page{
text: i18n("Appearance")
}
PlasmaComponents.CheckBox {
id: showGlow
text: i18n("Show glow around windows points")
Column{
leftPadding: 2*theme.defaultFont.pixelSize
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.showGlow = checked;
}
onCheckedChanged: {
plasmoid.configuration.threeColorsWindows = checked;
Component.onCompleted: checked = plasmoid.configuration.showGlow;
}
Component.onCompleted: checked = plasmoid.configuration.threeColorsWindows;
}
PlasmaComponents.CheckBox {
id: threeColorsWindows
text: i18n("Different color for minimized windows")
PlasmaComponents.CheckBox {
id: dotsOnActive
text: i18n("Dots on active window")
onCheckedChanged: {
plasmoid.configuration.threeColorsWindows = checked;
}
onCheckedChanged: {
plasmoid.configuration.dotsOnActive = checked;
Component.onCompleted: checked = plasmoid.configuration.threeColorsWindows;
}
Component.onCompleted: checked = plasmoid.configuration.dotsOnActive;
}
PlasmaComponents.CheckBox {
id: dotsOnActive
text: i18n("Dots on active window")
PlasmaComponents.CheckBox {
id: reverseLinesPosition
text: i18n("Reverse position for lines and dots")
onCheckedChanged: {
plasmoid.configuration.dotsOnActive = checked;
}
onCheckedChanged: {
plasmoid.configuration.reverseLinesPosition = checked;
Component.onCompleted: checked = plasmoid.configuration.dotsOnActive;
}
Component.onCompleted: checked = plasmoid.configuration.reverseLinesPosition;
PlasmaComponents.CheckBox {
id: reverseLinesPosition
text: i18n("Reverse position for lines and dots")
onCheckedChanged: {
plasmoid.configuration.reverseLinesPosition = checked;
}
Component.onCompleted: checked = plasmoid.configuration.reverseLinesPosition;
}
}
}
@ -80,48 +87,53 @@ PlasmaComponents.Page{
text: i18n("Interaction")
}
PlasmaComponents.CheckBox {
id: showPreviewsChk
text: i18n("Preview windows on hovering")
Column{
leftPadding: 2*theme.defaultFont.pixelSize
spacing: 0.4*theme.defaultFont.pixelSize
PlasmaComponents.CheckBox {
id: showPreviewsChk
text: i18n("Preview windows on hovering")
onCheckedChanged: {
plasmoid.configuration.showToolTips = checked;
onCheckedChanged: {
plasmoid.configuration.showToolTips = checked;
}
Component.onCompleted: checked = plasmoid.configuration.showToolTips;
}
Component.onCompleted: checked = plasmoid.configuration.showToolTips;
}
PlasmaComponents.CheckBox {
id: highlightWindowsChk
text: i18n("Highlight windows on hovering")
PlasmaComponents.CheckBox {
id: highlightWindowsChk
text: i18n("Highlight windows on hovering")
onCheckedChanged: {
plasmoid.configuration.highlightWindows = checked;
}
onCheckedChanged: {
plasmoid.configuration.highlightWindows = checked;
Component.onCompleted: checked = plasmoid.configuration.highlightWindows;
}
Component.onCompleted: checked = plasmoid.configuration.highlightWindows;
}
PlasmaComponents.CheckBox {
id: windowActionsChk
text: i18n("Show window actions in the context menu")
PlasmaComponents.CheckBox {
id: windowActionsChk
text: i18n("Show window actions in the context menu")
onCheckedChanged: {
plasmoid.configuration.showWindowActions = checked;
}
onCheckedChanged: {
plasmoid.configuration.showWindowActions = checked;
Component.onCompleted: checked = plasmoid.configuration.showWindowActions;
}
Component.onCompleted: checked = plasmoid.configuration.showWindowActions;
}
PlasmaComponents.CheckBox {
id: smartLaunchersChk
text: i18n("Show progress information in task buttons")
PlasmaComponents.CheckBox {
id: smartLaunchersChk
text: i18n("Show progress information in task buttons")
onCheckedChanged: {
plasmoid.configuration.smartLaunchersEnabled = checked;
}
onCheckedChanged: {
plasmoid.configuration.smartLaunchersEnabled = checked;
Component.onCompleted: checked = plasmoid.configuration.smartLaunchersEnabled;
}
Component.onCompleted: checked = plasmoid.configuration.smartLaunchersEnabled;
}
}
@ -134,34 +146,40 @@ PlasmaComponents.Page{
text: i18n("Filters")
}
PlasmaComponents.CheckBox {
id: showOnlyCurrentScreen
text: i18n("Show only tasks from the current screen")
onCheckedChanged: {
plasmoid.configuration.showOnlyCurrentScreen = checked;
Column{
leftPadding: 2*theme.defaultFont.pixelSize
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;
}
Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentScreen;
}
PlasmaComponents.CheckBox {
id: showOnlyCurrentDesktop
text: i18n("Show only tasks from the current desktop")
onCheckedChanged: {
plasmoid.configuration.showOnlyCurrentDesktop = checked;
}
PlasmaComponents.CheckBox {
id: showOnlyCurrentDesktop
text: i18n("Show only tasks from the current desktop")
onCheckedChanged: {
plasmoid.configuration.showOnlyCurrentDesktop = checked;
Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentDesktop;
}
Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentDesktop;
}
PlasmaComponents.CheckBox {
id: showOnlyCurrentActivity
text: i18n("Show only tasks from the current activity")
onCheckedChanged: {
plasmoid.configuration.showOnlyCurrentActivity = checked;
}
PlasmaComponents.CheckBox {
id: showOnlyCurrentActivity
text: i18n("Show only tasks from the current activity")
onCheckedChanged: {
plasmoid.configuration.showOnlyCurrentActivity = checked;
Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentActivity;
}
Component.onCompleted: checked = plasmoid.configuration.showOnlyCurrentActivity;
}
}

Loading…
Cancel
Save