JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
634 stars 30 forks source link

Add text colours to GlobalColors #381

Closed rock3r closed 1 month ago

rock3r commented 1 month ago

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

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.

c5inco commented 1 month ago

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.