-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Color] Update Color System & Add Design Guide/ Color #84
Open
Sanlorng
wants to merge
6
commits into
dev
Choose a base branch
from
style/update_colors
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
Sanlorng
commented
Nov 17, 2024
- Add Design Guide/ColorScreen.
- Aliging some color name with Design Toolkit.
- Update color system values.
- Add ColorOnImageFill Colors.
- Add FocusBorder Stroke.
…th the Design Toolkit. 1. Add ColorScreen that show the usages of fluent design color system. 2. Aligning some color names with the Design Toolkit.
This commit updates the section headers in the ColorScreen to improve clarity and organization. The following sections have been renamed: - "Control Fill" is now "Control" - "Control Alt Fill" is now "Control Alt" - "Neutral Solid" is now "Control Solid" - "Neutral Strong" is now "Control Strong" - "Subtle Fill" is now "Subtle" - "Accent Fill" is now "Accent" Additionally, the ColorSection composable now accepts an optional `header` parameter to override the section name in the UI. This allows for more flexibility in customizing the display of color groups.
This commit adjusts various Fluent theme colors, including: - Modifying text color values for secondary and tertiary elements in dark mode. - Updating the onAccent color compound for secondary elements in dark mode. - Adjusting control color values for default, secondary, tertiary, and disabled states in both dark and light modes. - Changing subtle fill color values for secondary and tertiary elements in dark mode. - Updating background color values for layer, layerOnMicaBaseAlt, and smoke elements in dark mode. - Modifying border color values and gradients for control, accentControl, circle, textControl, and textControlFocused elements in both dark and light modes.
This commit refactors elevation shadow to use `FluentTheme.colors.borders` instead of hardcoded colors. It also introduces `strokeShadow` parameter to `elevation` modifier, which allows to customize the shadow color. For `CircleShape`, the shadow color is set to `FluentTheme.colors.borders.circle`, and for other shapes, it's set to `FluentTheme.colors.borders.control`. Additionally, the `backgroundSizing` parameter in `Layer` is now optional and defaults to `BackgroundSizing.OuterBorderEdge`.
This commit introduces a new color category, `controlOnImage`, to the Fluent Design System colors. This category is used for controls that appear on top of imagery and includes default, secondary, tertiary, and disabled states. The `controlOnImage` colors provide better contrast and visual hierarchy when controls are placed over images.
This commit introduces focus stroke colors to the Fluent theme. It adds two new color properties to the `Stroke` data class: - `outer`: Represents the outer stroke color used for focus indicators. - `inner`: Represents the inner stroke color used for focus indicators. These color properties provide a visual indication of focus for interactive elements within the Fluent design system. They are intended to be used for components like buttons, input fields, and other interactive elements that require visual focus feedback. The commit also updates the `FluentTheme` object with default values for these new colors, ensuring that focus stroke is applied consistently across the Fluent UI.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.