Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve configuration user experience #369

Merged
merged 17 commits into from
Nov 30, 2023
Merged

Conversation

Master92
Copy link
Contributor

@Master92 Master92 commented Nov 12, 2023

Description

This PR improves the user experience when configuring the goggles. It adds kind of an enabled state for configuration items. That means, when an item is configured to be disabled, navigation skips this item and its text is displayed in a darker shade.
Further, when the first item in a page is disabled or only a label (for which the selection item should be set to disabled), it is skipped when entering that page.

What pages have been changed

In detail the following pages' configuration items are affected:

  • Power
    • Battery cell label is not selectable
    • Cell Count slider can only be modified if Cell Count Mode is Manual
  • Fans
    • Side Fans slider can only be modified if Auto Control is Off
  • Record Option
    • Audio Source can only be switched if Record Audio is On
  • Auto Scan
    • Default selection spans two rows. They are now both highlighted as if they were one
  • ELRS
    • When Backpack is Off, no action can be taken in this page except for turning it on
  • Wifi Module
    • When in AP mode, DHCP and DNS cannot be switched
    • When in Client mode, RF Channel can never be modified and IP-related Netmask and Gateway settings can only be changed if DHCP is Off
  • Head Tracker
    • When Tracking is Off, no action can be taken in this page except for tuning it on

Edit 2023-11-30:

  • Storage
    • When develop.sh or HDZGOGGLE files are detected on sd card, all options are disabled

Example

The Fans page as an example:

Disabled
Disabled Side Fans slider

Enabled
Enabled Side Fans slider

src/ui/page_wifi.c Outdated Show resolved Hide resolved
@ligenxxxx
Copy link
Member

page_storage: When HDZGOGGLE or develop.sh is detected in the SD card, all storage settings are invalid.

@Master92
Copy link
Contributor Author

page_storage: When HDZGOGGLE or develop.sh is detected in the SD card, all storage settings are invalid.

Fixed 👍

@ligenxxxx ligenxxxx merged commit 0f8cabf into hd-zero:main Nov 30, 2023
1 check passed
@Master92 Master92 deleted the disable_items branch November 30, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants