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

Use Title Large as base for Label Extra Large #5588

Merged
merged 2 commits into from
May 17, 2023

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented May 16, 2023

Closes #5583

What has been done to verify that this works as intended?

Verified manually.

Why is this the best possible solution? Were any other approaches considered?

I could have just modified the font weight of the existing style, but it seemed like everyone was happier with what they'd seen with textAppearanceTitleLarge and a modified size, so I did that instead. I think we want to keep our custom style as we're still very much introducing a repeated text style that doesn't fit in to Material 3's typographic tokens.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Not much risk here. This can be merged after a quick visual review rather than any QA.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@seadowg seadowg changed the title Use title large as base for label extra large Use Title Large as base for Label Extra Large May 16, 2023
@seadowg seadowg marked this pull request as ready for review May 16, 2023 07:34
@@ -44,7 +44,7 @@
<item name="android:textColor">?colorPrimary</item>
</style>

<style name="TextAppearanceLabelExtraLarge" parent="TextAppearance.Material3.LabelLarge">
<style name="TextAppearance.Collect.LabelExtraLarge" parent="TextAppearance.Material3.TitleLarge">
Copy link
Member

Choose a reason for hiding this comment

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

If now it extends TitleLarge wouldn't it be better to update the title too?
textAppearanceLabelExtraLarge -> textAppearanceTitleLarge
TextAppearance.Collect.LabelExtraLarge - > TextAppearance.Collect.TitleLarge

Copy link
Member Author

Choose a reason for hiding this comment

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

We're not actually changing ?textAppearanceTitleLarge though - just using it as the base for our custom "Label Extra Large" style.

@seadowg seadowg requested a review from grzesiek2010 May 17, 2023 13:10
@grzesiek2010 grzesiek2010 merged commit 2d9db06 into getodk:master May 17, 2023
6 checks passed
@seadowg seadowg deleted the main-menu-buttons branch May 17, 2023 14:23
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.

Decrease boldness of main menu buttons
2 participants