-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update design tokens #378
Update design tokens #378
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Improve id's naming and add new Titles |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apart from the change in titles, the names of the buttons that ended in "Selected" have also been changed to "Pressed" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,9 @@ fun MisticaTheme( | |
presetSmallButtonFontWeight = brand.buttonFontWeight, | ||
presetLinkFontWeight = brand.linkFontWeight, | ||
presetTitle1FontWeight = brand.title1FontWeight, | ||
presetTitle2FontWeight = brand.title2FontWeight, | ||
presetTitle3FontWeight = brand.title3FontWeight, | ||
presetTitle3FontSize = brand.title3FontSize, | ||
Comment on lines
77
to
+80
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
ℹ️ You will see the same configuration in the XML-side. |
||
presetIndicatorFontWeight = brand.indicatorFontWeight, | ||
presetTabsLabelFontWeight = brand.tabsLabelFontWeight, | ||
presetTabsLabelFontSize = brand.tabsLabelFontSize, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make Title catalog easier to check for each Title type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also make TitlesWithStyleOverriden accept a modifier by parameter and set padding there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but the Composable TitlesWithStyleOverridden does not have a root composable component like Row, Column or Box, so I could not apply this parameterized modifier. I added a Spacer instead to make it as simple as possible with minimal code.