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

Loading…
Cancel
Save