mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
fix(settings): battery tab items not in search (#2794)
(cherry picked from commit 4bdb7d17b2)
This commit is contained in:
@@ -134,6 +134,7 @@ TAB_INDEX_MAP = {
|
||||
"DefaultAppsTab.qml": 34,
|
||||
"UsersTab.qml": 35,
|
||||
"AutoStartTab.qml": 36,
|
||||
"BatteryTab.qml": 42,
|
||||
}
|
||||
|
||||
TAB_CATEGORY_MAP = {
|
||||
@@ -178,6 +179,7 @@ TAB_CATEGORY_MAP = {
|
||||
39: "Network",
|
||||
40: "Network",
|
||||
41: "Network",
|
||||
42: "Power & Security",
|
||||
43: "Dank Dash",
|
||||
}
|
||||
|
||||
|
||||
@@ -9419,24 +9419,363 @@
|
||||
],
|
||||
"icon": "vpn_key"
|
||||
},
|
||||
{
|
||||
"section": "batteryAutoPowerSaver",
|
||||
"label": "Auto Power Saver",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"auto",
|
||||
"automatically",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"hibernate",
|
||||
"power",
|
||||
"profile",
|
||||
"reboot",
|
||||
"restart",
|
||||
"saver",
|
||||
"security",
|
||||
"shutdown",
|
||||
"sleep",
|
||||
"suspend",
|
||||
"turn"
|
||||
],
|
||||
"description": "Automatically turn on Power Saver profile when battery is low."
|
||||
},
|
||||
{
|
||||
"section": "batteryAlerts",
|
||||
"label": "Battery Alerts",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"alerts",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"considered",
|
||||
"percentage",
|
||||
"power",
|
||||
"security"
|
||||
],
|
||||
"icon": "notifications",
|
||||
"description": "Set the percentage at which the battery is considered low."
|
||||
},
|
||||
{
|
||||
"section": "batteryChargeLimit",
|
||||
"label": "Battery Charge Limit",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"extend",
|
||||
"level",
|
||||
"lifespan",
|
||||
"limit",
|
||||
"maximum",
|
||||
"power",
|
||||
"security"
|
||||
],
|
||||
"description": "Limit the maximum battery charge level to extend lifespan."
|
||||
},
|
||||
{
|
||||
"section": "batteryProtection",
|
||||
"label": "Battery Protection",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"extend",
|
||||
"level",
|
||||
"lifespan",
|
||||
"limit",
|
||||
"maximum",
|
||||
"power",
|
||||
"protection",
|
||||
"security"
|
||||
],
|
||||
"icon": "tune",
|
||||
"description": "Limit the maximum battery charge level to extend lifespan."
|
||||
},
|
||||
{
|
||||
"section": "batteryStatusCard",
|
||||
"label": "Battery Status",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"power",
|
||||
"security",
|
||||
"status"
|
||||
],
|
||||
"icon": "battery_charging_full"
|
||||
},
|
||||
{
|
||||
"section": "batteryNotifyCritical",
|
||||
"label": "Critical Battery Notifications",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"alert",
|
||||
"alerts",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"critical",
|
||||
"level",
|
||||
"notif",
|
||||
"notifications",
|
||||
"notifs",
|
||||
"power",
|
||||
"reaches",
|
||||
"security",
|
||||
"show",
|
||||
"urgent"
|
||||
],
|
||||
"description": "Show an urgent alert when battery reaches critical level."
|
||||
},
|
||||
{
|
||||
"section": "batteryCriticalThreshold",
|
||||
"label": "Critical Threshold",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"alert",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"critical",
|
||||
"percentage",
|
||||
"power",
|
||||
"security",
|
||||
"threshold",
|
||||
"trigger"
|
||||
],
|
||||
"description": "Battery percentage to trigger a critical alert."
|
||||
},
|
||||
{
|
||||
"section": "batteryNotifyLow",
|
||||
"label": "Low Battery Notifications",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"alert",
|
||||
"alerts",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"low",
|
||||
"notif",
|
||||
"notifications",
|
||||
"notifs",
|
||||
"popup",
|
||||
"power",
|
||||
"running",
|
||||
"security",
|
||||
"show",
|
||||
"warning"
|
||||
],
|
||||
"description": "Show a warning popup when battery is running low."
|
||||
},
|
||||
{
|
||||
"section": "batteryLowThreshold",
|
||||
"label": "Low Battery Threshold",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"considered",
|
||||
"low",
|
||||
"percentage",
|
||||
"power",
|
||||
"security",
|
||||
"threshold"
|
||||
],
|
||||
"description": "Set the percentage at which the battery is considered low."
|
||||
},
|
||||
{
|
||||
"section": "batteryChargeLimitNotificationType",
|
||||
"label": "Notification Type",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"alert",
|
||||
"charge",
|
||||
"choose",
|
||||
"limit",
|
||||
"notif",
|
||||
"notification",
|
||||
"notified",
|
||||
"power",
|
||||
"reached",
|
||||
"security",
|
||||
"type"
|
||||
],
|
||||
"description": "Choose how to be notified when charge limit is reached."
|
||||
},
|
||||
{
|
||||
"section": "batteryCriticalNotificationType",
|
||||
"label": "Notification Type",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"about",
|
||||
"alert",
|
||||
"alerts",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"choose",
|
||||
"critical",
|
||||
"notif",
|
||||
"notification",
|
||||
"notified",
|
||||
"power",
|
||||
"security",
|
||||
"type"
|
||||
],
|
||||
"description": "Choose how to be notified about critical battery alerts."
|
||||
},
|
||||
{
|
||||
"section": "batteryLowNotificationType",
|
||||
"label": "Notification Type",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"about",
|
||||
"alert",
|
||||
"alerts",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"choose",
|
||||
"notif",
|
||||
"notification",
|
||||
"notified",
|
||||
"power",
|
||||
"security",
|
||||
"type"
|
||||
],
|
||||
"description": "Choose how to be notified about low battery alerts."
|
||||
},
|
||||
{
|
||||
"section": "batteryNotifyChargeLimit",
|
||||
"label": "Notify when limit is reached",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"alert",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"limit",
|
||||
"notif",
|
||||
"notification",
|
||||
"notify",
|
||||
"power",
|
||||
"reached",
|
||||
"reaches",
|
||||
"security",
|
||||
"show"
|
||||
],
|
||||
"description": "Show a notification when battery reaches the charge limit."
|
||||
},
|
||||
{
|
||||
"section": "_tab_42",
|
||||
"label": "Power & Security",
|
||||
"tabIndex": 42,
|
||||
"category": "Settings",
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"hibernate",
|
||||
"power",
|
||||
"reboot",
|
||||
"restart",
|
||||
"security",
|
||||
"settings",
|
||||
"shutdown",
|
||||
"sleep",
|
||||
"suspend"
|
||||
],
|
||||
"icon": "security"
|
||||
},
|
||||
{
|
||||
"section": "powerProfilesSaving",
|
||||
"label": "Power Profiles & Saving",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"automatically",
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"hibernate",
|
||||
"power",
|
||||
"profile",
|
||||
"profiles",
|
||||
"reboot",
|
||||
"restart",
|
||||
"saver",
|
||||
"saving",
|
||||
"security",
|
||||
"shutdown",
|
||||
"sleep",
|
||||
"suspend",
|
||||
"turn"
|
||||
],
|
||||
"icon": "power",
|
||||
"description": "Automatically turn on Power Saver profile when battery is low."
|
||||
},
|
||||
{
|
||||
"section": "acProfileName",
|
||||
"label": "Profile when Plugged In (AC)",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"(ac)",
|
||||
"connected",
|
||||
"hibernate",
|
||||
"plugged",
|
||||
"power",
|
||||
"profile",
|
||||
"reboot",
|
||||
"restart",
|
||||
"security",
|
||||
"shutdown",
|
||||
"sleep",
|
||||
"suspend"
|
||||
],
|
||||
"description": "Power profile to use when AC power is connected."
|
||||
},
|
||||
{
|
||||
"section": "batteryProfileName",
|
||||
"label": "Profile when on Battery",
|
||||
"tabIndex": 42,
|
||||
"category": "Power & Security",
|
||||
"keywords": [
|
||||
"battery",
|
||||
"charge",
|
||||
"charging",
|
||||
"hibernate",
|
||||
"power",
|
||||
"profile",
|
||||
"reboot",
|
||||
"restart",
|
||||
"running",
|
||||
"security",
|
||||
"shutdown",
|
||||
"sleep",
|
||||
"suspend"
|
||||
],
|
||||
"description": "Power profile to use when running on battery power."
|
||||
},
|
||||
{
|
||||
"section": "_tab_43",
|
||||
"label": "Widgets & Notifications",
|
||||
|
||||
Reference in New Issue
Block a user