JetBrains / jewel

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

Define a theme key/name #351

Closed rock3r closed 5 months ago

rock3r commented 5 months ago

Sometimes, when in the IDE you switch between two dark-but-not-identical themes (e.g., Dark and Darcula), parts of the Jewel components such as Markdown don't get properly invalidated, since they're remembered against isDark as a proxy for the theme.

We need a theme "name" that can be used as key to properly cause recomposition when moving between themes with the same isDark