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

improved color scheme & theming #4507

Merged
merged 6 commits into from
Jun 19, 2024
Merged

improved color scheme & theming #4507

merged 6 commits into from
Jun 19, 2024

Conversation

connyduck
Copy link
Collaborator

@connyduck connyduck commented Jun 12, 2024

Follow up to #3921

  • no more hardcoded tusky_blue, instead the colorPrimary attribute is used. This will help us when adding more themes, e.g a dynamic color one.
  • The colorPrimary of the dark theme is now lighter for more contrast and subsequently the colorOnPrimary is now dark grey instead of white.
  • tusky_red_lighter is now a bit more red than before
  • Tweaked color usage in a few places for better contrast

I think this looks a bit unfamiliar but overall better and the higher contrast makes things noticeably easier to read.

@connyduck connyduck requested review from Tak, Lakoja and charlag June 12, 2024 15:10
@connyduck connyduck requested a review from mcclure June 12, 2024 15:21
* SwipeRefreshLayout does not allow theming of the color scheme,
* so we use this class to still have a single point to change its colors.
*/
class TuskySwipeRefreshLayout @JvmOverloads constructor(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should(n't) this be a style file? And all swipe to refresh have that as "style"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You mean adding the missing styles here and then styling every SwipeRefreshLayout? Since the styling would be all the same and would need quite some additional lines of code I'd rather not.

Copy link
Collaborator

@Lakoja Lakoja Jun 13, 2024

Choose a reason for hiding this comment

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

I was thinking how all the buttons for example are styled with some definition in styles.xml and then a "style=" on every usage.

But I couldn't find now how that might be done.

Copy link
Collaborator

@mcclure mcclure left a comment

Choose a reason for hiding this comment

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

Used this heavily today, light mode, could not tell the difference vs the old one, which says to me it is fine.

@connyduck connyduck merged commit dcbd6d5 into develop Jun 19, 2024
3 checks passed
@connyduck connyduck deleted the color_improvements branch June 19, 2024 14:50
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.

5 participants