mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-29 12:53:42 +08:00
optional
This commit is contained in:
@@ -152,6 +152,7 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
||||
{"DevUIInfo", {PERSISTENT | BACKUP, INT, "0"}},
|
||||
{"EnableCopyparty", {PERSISTENT | BACKUP, BOOL}},
|
||||
{"EnableGithubRunner", {PERSISTENT | BACKUP, BOOL}},
|
||||
{"FlatUIState", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||
{"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||
{"GithubRunnerSufficientVoltage", {CLEAR_ON_MANAGER_START , BOOL}},
|
||||
{"HideVEgoUI", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||
|
||||
@@ -81,7 +81,8 @@ class ConfidenceBall(Widget, ConfidenceBallSP):
|
||||
top_dot_color = rl.Color(50, 50, 50, 255)
|
||||
bottom_dot_color = rl.Color(13, 13, 13, 255)
|
||||
|
||||
top_dot_color = bottom_dot_color
|
||||
if ui_state.flat_ui_state:
|
||||
top_dot_color = bottom_dot_color
|
||||
|
||||
draw_circle_gradient(content_rect.x + content_rect.width - status_dot_radius,
|
||||
dot_height, status_dot_radius,
|
||||
|
||||
@@ -73,6 +73,7 @@ class UIStateSP:
|
||||
self.developer_ui = self.params.get("DevUIInfo")
|
||||
self.rainbow_path = self.params.get_bool("RainbowMode")
|
||||
self.chevron_metrics = self.params.get("ChevronInfo")
|
||||
self.flat_ui_state = self.params.get("FlatUIState")
|
||||
|
||||
|
||||
class DeviceSP:
|
||||
|
||||
@@ -289,6 +289,10 @@
|
||||
"title": "Firmware Query Done",
|
||||
"description": ""
|
||||
},
|
||||
"FlatUIState": {
|
||||
"title": "Flat UI State",
|
||||
"description": ""
|
||||
},
|
||||
"ForcePowerDown": {
|
||||
"title": "Force Power Down",
|
||||
"description": ""
|
||||
|
||||
Reference in New Issue
Block a user