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

Add text colours to GlobalColors #381

Merged
merged 1 commit into from
May 9, 2024
Merged

Add text colours to GlobalColors #381

merged 1 commit into from
May 9, 2024

Conversation

rock3r
Copy link
Collaborator

@rock3r rock3r commented May 8, 2024

It's practical to have the "base" text colours in GlobalColors:

  • Normal
  • Selected
  • Disabled
  • Info
  • Error

They apply to labels and most components, but not every component (e.g., default buttons have "inverted" text colors).

Note that the text colour is used as content colour, but not directly in the styling. Besides, when initialising the stylings, we can't really read these values as they haven't been init yet.

This is mostly a convenience for users that want to set a content colour (e.g., to visually show some text as disabled/error).

Note: GlobalColors.paneBackground was renamed to panelBackground for consistency with the Swing color key naming.

@rock3r rock3r added the feature New feature or request label May 8, 2024
@rock3r rock3r requested review from devkanro and fscarponi May 8, 2024 15:29
@rock3r rock3r self-assigned this May 8, 2024
@c5inco
Copy link
Collaborator

c5inco commented May 8, 2024

Colors from design POV looks correct to me! Glad this is happening as it has come up recently in Studio to want some of these colors.

Base automatically changed from distinguish-markdown-packages to main May 9, 2024 12:13
It's practical to have the "base" text colours in GlobalColors:

 * Normal
 * Selected
 * Disabled
 * Info
 * Error

They apply to labels and most components, but not every component
(e.g., default buttons have "inverted" text colors).

Note that the text colour is used as content colour, but not directly
in the styling. Besides, when initialising the stylings, we can't
really read these values as they haven't been init yet.

This is mostly a convenience for users that want to set a content colour
(e.g., to visually show some text as disabled/error).

Note: GlobalColors.paneBackground was renamed to panelBackground for
consistency with the Swing color key naming.
@rock3r rock3r force-pushed the global-text-colors branch from 5568d27 to 1739d45 Compare May 9, 2024 12:20
@rock3r rock3r enabled auto-merge (squash) May 9, 2024 12:20
@rock3r rock3r merged commit fc288fc into main May 9, 2024
7 of 8 checks passed
@rock3r rock3r deleted the global-text-colors branch May 9, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants