mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-04 13:47:19 +03:00
add filters for plasmoid into configuration
This commit is contained in:
parent
e54cbb7213
commit
8e4cd1ce88
@ -87,5 +87,14 @@
|
||||
<entry name="showWindowActions" type="Bool">
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry name="showOnlyCurrentScreen" type="Bool">
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry name="showOnlyCurrentDesktop" type="Bool">
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry name="showOnlyCurrentActivity" type="Bool">
|
||||
<default>true</default>
|
||||
</entry>
|
||||
</group>
|
||||
</kcfg>
|
||||
|
@ -106,6 +106,10 @@ DragDrop.DropArea {
|
||||
property bool showGlow: plasmoid.configuration.showGlow
|
||||
property bool showToolTips: plasmoid.configuration.showToolTips
|
||||
property bool showWindowActions: plasmoid.configuration.showWindowActions
|
||||
property bool showOnlyCurrentScreen: plasmoid.configuration.showOnlyCurrentScreen
|
||||
property bool showOnlyCurrentDesktop: plasmoid.configuration.showOnlyCurrentDesktop
|
||||
property bool showOnlyCurrentActivity: plasmoid.configuration.showOnlyCurrentActivity
|
||||
|
||||
property bool smartLaunchersEnabled: plasmoid.configuration.smartLaunchersEnabled
|
||||
property bool threeColorsWindows: plasmoid.configuration.threeColorsWindows
|
||||
|
||||
|
@ -98,6 +98,9 @@ Item {
|
||||
property bool reverseLinesPosition: nowDockPanel ? nowDockPanel.reverseLinesPosition : plasmoid.configuration.reverseLinesPosition
|
||||
property bool dotsOnActive: nowDockPanel ? nowDockPanel.dotsOnActive : plasmoid.configuration.dotsOnActive
|
||||
property bool showGlow: nowDockPanel ? nowDockPanel.showGlow : plasmoid.configuration.showGlow
|
||||
property bool showOnlyCurrentScreen: nowDockPanel ? nowDockPanel.showOnlyCurrentScreen : plasmoid.configuration.showOnlyCurrentScreen
|
||||
property bool showOnlyCurrentDesktop: nowDockPanel ? nowDockPanel.showOnlyCurrentDesktop : plasmoid.configuration.showOnlyCurrentDesktop
|
||||
property bool showOnlyCurrentActivity: nowDockPanel ? nowDockPanel.showOnlyCurrentActivity : plasmoid.configuration.showOnlyCurrentActivity
|
||||
property bool showPreviews: nowDockPanel ? nowDockPanel.showToolTips : plasmoid.configuration.showToolTips
|
||||
property bool showWindowActions: nowDockPanel ? nowDockPanel.showWindowActions : plasmoid.configuration.showWindowActions
|
||||
property bool smartLaunchersEnabled: nowDockPanel ? nowDockPanel.smartLaunchersEnabled : plasmoid.configuration.smartLaunchersEnabled
|
||||
@ -266,9 +269,9 @@ Item {
|
||||
// screen: plasmoid.screen
|
||||
activity: activityInfo.currentActivity
|
||||
|
||||
filterByVirtualDesktop: plasmoid.configuration.showOnlyCurrentDesktop
|
||||
filterByScreen: plasmoid.configuration.showOnlyCurrentScreen
|
||||
filterByActivity: plasmoid.configuration.showOnlyCurrentActivity
|
||||
filterByVirtualDesktop: root.showOnlyCurrentDesktop
|
||||
filterByScreen: root.showOnlyCurrentScreen
|
||||
filterByActivity: root.showOnlyCurrentActivity
|
||||
|
||||
launchInPlace: true
|
||||
separateLaunchers: false
|
||||
|
@ -26,8 +26,6 @@ PlasmaComponents.Page{
|
||||
text: i18n("Appearance")
|
||||
}
|
||||
|
||||
|
||||
|
||||
PlasmaComponents.CheckBox {
|
||||
id: showGlow
|
||||
text: i18n("Show glow around windows points")
|
||||
@ -79,10 +77,9 @@ PlasmaComponents.Page{
|
||||
spacing: 0.8*theme.defaultFont.pointSize
|
||||
|
||||
Header{
|
||||
text: i18n("Behavior")
|
||||
text: i18n("Interaction")
|
||||
}
|
||||
|
||||
|
||||
PlasmaComponents.CheckBox {
|
||||
id: showPreviewsChk
|
||||
text: i18n("Preview windows on hovering")
|
||||
@ -127,5 +124,46 @@ PlasmaComponents.Page{
|
||||
Component.onCompleted: checked = plasmoid.configuration.smartLaunchersEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
/*******Filters*******/
|
||||
Column{
|
||||
width:parent.width
|
||||
spacing: 0.8*theme.defaultFont.pointSize
|
||||
|
||||
Header{
|
||||
text: i18n("Filters")
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user