Skip to content

Reduce usage of ternaries in Theme file #168

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
Aug 29, 2022

Conversation

jarolrod
Copy link
Member

@jarolrod jarolrod commented Aug 21, 2022

Reduces usage of ternaries in Theme.qml by abstracting definitions of colors and image urls into "Sets" and using the definitions from the appropriate set for the current dark mode setting.

This is a late follow-up to this review by promag: #109 (comment)

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

Copy link
Contributor

@shaavan shaavan left a comment

Choose a reason for hiding this comment

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

ACK 9ff8924

  1. Verified that the colorSet is correctly created with the correct values for light and dark themes.
  2. Verified the proper working of the PR on Ubuntu 22.04

Reduces usage of ternaries in Theme.qml by abstracting definitions of
colors and images into "Sets" and using the definitions from the
appropriate set for the current dark mode setting.

Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
@jarolrod jarolrod force-pushed the theme-avoid-ternaries branch from 9ff8924 to 6e0ee80 Compare August 24, 2022 20:16
@jarolrod
Copy link
Member Author

updated from 9ff8924 to 6e0ee80 Compare

changes: fix leading whitespace issue

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK 6e0ee80, I have reviewed the code and it looks OK, I agree it can be merged.

@hebasto hebasto merged commit 010b734 into bitcoin-core:main Aug 29, 2022
hebasto pushed a commit to hebasto/gui-qml that referenced this pull request Jun 8, 2025
Reduces usage of ternaries in Theme.qml by abstracting definitions of
colors and images into "Sets" and using the definitions from the
appropriate set for the current dark mode setting.

Github-Pull: bitcoin-core#168
Rebased-From: 6e0ee80

Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
hebasto pushed a commit to hebasto/gui-qml that referenced this pull request Jun 8, 2025
Reduces usage of ternaries in Theme.qml by abstracting definitions of
colors and images into "Sets" and using the definitions from the
appropriate set for the current dark mode setting.

Github-Pull: bitcoin-core#168
Rebased-From: 6e0ee80

Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
hebasto pushed a commit to hebasto/gui-qml that referenced this pull request Jun 9, 2025
Reduces usage of ternaries in Theme.qml by abstracting definitions of
colors and images into "Sets" and using the definitions from the
appropriate set for the current dark mode setting.

Github-Pull: bitcoin-core#168
Rebased-From: 6e0ee80

Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
hebasto pushed a commit to hebasto/gui-qml that referenced this pull request Jun 9, 2025
Reduces usage of ternaries in Theme.qml by abstracting definitions of
colors and images into "Sets" and using the definitions from the
appropriate set for the current dark mode setting.

Github-Pull: bitcoin-core#168
Rebased-From: 6e0ee80

Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
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