mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +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 bool enable: true
|
||||
property real scale: 0.18 // Relative to screen size
|
||||
property real rows: 2
|
||||
property real columns: 5
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ Scope {
|
|||
|
||||
Loader {
|
||||
id: overviewLoader
|
||||
active: GlobalStates.overviewOpen
|
||||
active: GlobalStates.overviewOpen && (Config?.options.overview.enable ?? true)
|
||||
sourceComponent: OverviewWidget {
|
||||
panelWindow: root
|
||||
visible: (root.searchingText == "")
|
||||
|
|
|
|||
|
|
@ -351,6 +351,13 @@ ContentPage {
|
|||
|
||||
ContentSection {
|
||||
title: Translation.tr("Overview")
|
||||
ConfigSwitch {
|
||||
text: Translation.tr("Enable")
|
||||
checked: Config.options.overview.enable
|
||||
onCheckedChanged: {
|
||||
Config.options.overview.enable = checked;
|
||||
}
|
||||
}
|
||||
ConfigSpinBox {
|
||||
text: Translation.tr("Scale (%)")
|
||||
value: Config.options.overview.scale * 100
|
||||
|
|
|
|||
Loading…
Reference in a new issue