overview: allow disabling overview (showing search only)

This commit is contained in:
end-4 2025-08-02 17:35:44 +07:00
parent 86d2a03a0a
commit d4b8ded6c8
3 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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 == "")

View file

@ -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