Skip to content

MyButton: add disabled text color #3012

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

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

robertlong13
Copy link
Collaborator

Add the ability to set a disabled button text color in a theme. For example
image

At the moment, this is a secret capability, just like button border color currently is. It has to be manually added to the color theme text file by adding

<ThemeColor>
  <strColorItemName>Disabled Button Text</strColorItemName>
  <clrColor Web="#5C5C5C" />
  <strVariableName>ButtonTextColorNotEnabled</strVariableName>
</ThemeColor>

If the color is not set in the theme, it defaults to the button text color.

Alternatively, I'd be happy to amend the PR to fully integrate this to the existing themes and add button border color to them while I'm there.

@meee1 meee1 merged commit e2c9cda into ArduPilot:master Dec 9, 2022
@robertlong13 robertlong13 deleted the mybutton-disabledtextcolor branch February 28, 2023 19:56
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.

2 participants