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

Compose Convert the base color styles #5198

Merged
merged 11 commits into from
Jan 10, 2025
Merged

Compose Convert the base color styles #5198

merged 11 commits into from
Jan 10, 2025

Conversation

Williamrai
Copy link
Collaborator

@Williamrai Williamrai commented Jan 3, 2025

What does this do?

Convert the base color styles to Compose

Why is this needed?

To make it easier to use our color system with compose.

Phabricator:
https://phabricator.wikimedia.org/T381828
https://phabricator.wikimedia.org/T381910

Testing color base style
#5208

@Williamrai Williamrai added the WIP Work in progress label Jan 3, 2025
@Williamrai Williamrai added Ready to merge PR passed design signoff and ready to be merged. and removed WIP Work in progress labels Jan 8, 2025
Comment on lines 47 to 61
paperColor = ThemeColors.White,
backgroundColor = ThemeColors.Gray100,
borderColor = ThemeColors.Gray200,
inactiveColor = ThemeColors.Gray400,
placeholderColor = ThemeColors.Gray500,
secondaryColor = ThemeColors.Gray600,
primaryColor = ThemeColors.Gray700,
progressiveColor = ThemeColors.Blue600,
successColor = ThemeColors.Green700,
destructiveColor = ThemeColors.Red700,
warningColor = ThemeColors.Yellow700,
highlightColor = ThemeColors.Yellow500,
focusColor = ThemeColors.Orange500,
additionColor = ThemeColors.Blue300_15,
overlayColor = ThemeColors.Black_30
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we have the same order as the WikipediaColor?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

)
}

val lightColors = WikipediaColor(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious: the naming here starts with a lowercase, is there anything special meaning for the colors?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed this, it was a function before converting to val that's why it had lowercase.

@cooltey
Copy link
Collaborator

cooltey commented Jan 9, 2025

Another idea: do we want to move all Compose-related classes to a compose package, for easier access and manage?

@Williamrai
Copy link
Collaborator Author

Another idea: do we want to move all Compose-related classes to a compose package, for easier access and manage?

yes, added a new package called compose

@cooltey cooltey merged commit 29d979d into main Jan 10, 2025
1 check passed
@cooltey cooltey deleted the compose-base-color-styles branch January 10, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge PR passed design signoff and ready to be merged.
Development

Successfully merging this pull request may close these issues.

2 participants