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

Fix updating colors on theme change #1870

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Conversation

myxmaster
Copy link
Contributor

Description

This fixes #1659 by moving themeColor() calls from static style objects to render methods.

Remove color from RoutingHeader completely as it has no effect.

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Configuration change
  • Locales update
  • Quality assurance
  • Other

Checklist

  • I’ve run yarn run tsc and made sure my code compiles correctly
  • I’ve run yarn run lint and made sure my code didn’t contain any problematic patterns
  • I’ve run yarn run prettier and made sure my code is formatted correctly
  • I’ve run yarn run test and made sure all of the tests pass

Testing

If you modified or added a utility file, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms (please specify OS version and phone model/VM):

  • Android
  • iOS

I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):

  • Embedded LND
  • LND (REST)
  • LND (Lightning Node Connect)
  • Core Lightning (c-lightning-REST)
  • LndHub
  • [DEPRECATED] Core Lightning (Spark)
  • [DEPRECATED] Eclair

Locales

  • I’ve added new locale text that requires translations
  • I’m aware that new translations should be made on the ZEUS Transfix page and not directly to this repo

Third Party Dependencies and Packages

  • Contributors will need to run yarn after this PR is merged in
  • 3rd party dependencies have been modified:
    • verify that package.json and yarn.lock have been properly updated
    • verify that dependencies are installed for both iOS and Android platforms

Other:

  • Changes were made that require an update to the README
  • Changes were made that require an update to onboarding

@myxmaster myxmaster force-pushed the fix-theme-change branch 2 times, most recently from cd3623e to 3bba480 Compare November 25, 2023 12:32
@myxmaster
Copy link
Contributor Author

Created a script and workflow to ensure static styles don't contain themeColor() calls. Also extended PR template.

Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I be able to use yarn run check-styles now? Or do I need to do something differently here? Please let me know.

Screenshot 2023-11-27 at 8 22 04 PM

@kaloudis
Copy link
Contributor

Should I be able to use yarn run check-styles now? Or do I need to do something differently here? Please let me know.
Screenshot 2023-11-27 at 8 22 04 PM

I bet we're hitting an issue w/ Windows/UNIX differences

@myxmaster myxmaster force-pushed the fix-theme-change branch 2 times, most recently from 13d2cf4 to 7a852d7 Compare November 27, 2023 21:40
- [ ] Other

## Checklist
- [ ] I’ve run `yarn run tsc` and made sure my code compiles correctly
- [ ] I’ve run `yarn run lint` and made sure my code didn’t contain any problematic patterns
- [ ] I’ve run `yarn run prettier` and made sure my code is formatted correctly
- [ ] I’ve run `yarn run test` and made sure all of the tests pass
- [ ] I’ve run `yarn run check-styles` and made sure all of the static styles don't contain themeColor() calls
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is now covered by yarn run lint, we can remove this here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, done

Copy link
Contributor

@kaloudis kaloudis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK - have tested this with lint errors and the newly added theme/style errors. Have also tested this against our Docker build script

Very nice addition, will help us a good bit I think as evidenced by all the instances found. Nice work.

@kaloudis kaloudis merged commit 7c0322a into ZeusLN:master Nov 27, 2023
3 checks passed
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.

Theme colors sometimes incorrect
3 participants