mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
overview: allow disabling overview (showing search only)
This commit is contained in:
parent
86d2a03a0a
commit
d4b8ded6c8
3 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue