settings: more icons

This commit is contained in:
end-4
2025-09-01 22:19:16 +02:00
parent cdc38f7e6e
commit 9f69b8815a
19 changed files with 522 additions and 240 deletions
@@ -11,6 +11,7 @@ ContentPage {
forceWidth: true
ContentSection {
icon: "volume_up"
title: Translation.tr("Audio")
ConfigSwitch {
@@ -47,8 +48,11 @@ ContentPage {
}
}
}
ContentSection {
icon: "neurology"
title: Translation.tr("AI")
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("System prompt")
@@ -63,6 +67,7 @@ ContentPage {
}
ContentSection {
icon: "battery_android_full"
title: Translation.tr("Battery")
ConfigRow {
@@ -114,7 +119,9 @@ ContentPage {
}
ContentSection {
icon: "cell_tower"
title: Translation.tr("Networking")
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("User agent (for services that require it)")
@@ -127,7 +134,9 @@ ContentPage {
}
ContentSection {
icon: "memory"
title: Translation.tr("Resources")
ConfigSpinBox {
text: Translation.tr("Polling interval (ms)")
value: Config.options.resources.updateInterval
@@ -141,6 +150,7 @@ ContentPage {
}
ContentSection {
icon: "search"
title: Translation.tr("Search")
ConfigSwitch {
@@ -158,7 +168,6 @@ ContentPage {
title: Translation.tr("Prefixes")
ConfigRow {
uniform: true
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("Action")
@@ -187,6 +196,37 @@ ContentPage {
}
}
}
ConfigRow {
uniform: true
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("Math")
text: Config.options.search.prefix.math
wrapMode: TextEdit.Wrap
onTextChanged: {
Config.options.search.prefix.math = text;
}
}
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("Shell command")
text: Config.options.search.prefix.shellCommand
wrapMode: TextEdit.Wrap
onTextChanged: {
Config.options.search.prefix.shellCommand = text;
}
}
MaterialTextArea {
Layout.fillWidth: true
placeholderText: Translation.tr("Web search")
text: Config.options.search.prefix.webSearch
wrapMode: TextEdit.Wrap
onTextChanged: {
Config.options.search.prefix.webSearch = text;
}
}
}
}
ContentSubsection {
title: Translation.tr("Web search")
@@ -203,6 +243,7 @@ ContentPage {
}
ContentSection {
icon: "nest_clock_farsight_analog"
title: Translation.tr("Time")
ContentSubsection {