forked from Shinonome/dots-hyprland
overview: allow disabling overview (showing search only)
This commit is contained in:
@@ -212,6 +212,7 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
property JsonObject overview: JsonObject {
|
property JsonObject overview: JsonObject {
|
||||||
|
property bool enable: true
|
||||||
property real scale: 0.18 // Relative to screen size
|
property real scale: 0.18 // Relative to screen size
|
||||||
property real rows: 2
|
property real rows: 2
|
||||||
property real columns: 5
|
property real columns: 5
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ Scope {
|
|||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: overviewLoader
|
id: overviewLoader
|
||||||
active: GlobalStates.overviewOpen
|
active: GlobalStates.overviewOpen && (Config?.options.overview.enable ?? true)
|
||||||
sourceComponent: OverviewWidget {
|
sourceComponent: OverviewWidget {
|
||||||
panelWindow: root
|
panelWindow: root
|
||||||
visible: (root.searchingText == "")
|
visible: (root.searchingText == "")
|
||||||
|
|||||||
@@ -351,6 +351,13 @@ ContentPage {
|
|||||||
|
|
||||||
ContentSection {
|
ContentSection {
|
||||||
title: Translation.tr("Overview")
|
title: Translation.tr("Overview")
|
||||||
|
ConfigSwitch {
|
||||||
|
text: Translation.tr("Enable")
|
||||||
|
checked: Config.options.overview.enable
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.overview.enable = checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
ConfigSpinBox {
|
ConfigSpinBox {
|
||||||
text: Translation.tr("Scale (%)")
|
text: Translation.tr("Scale (%)")
|
||||||
value: Config.options.overview.scale * 100
|
value: Config.options.overview.scale * 100
|
||||||
|
|||||||
Reference in New Issue
Block a user