Skip to content

Comments

[JEWEL-491] Remove unneeded composable annotation#2997

Closed
rock3r wants to merge 1 commit intoJetBrains:masterfrom
rock3r:sebp/no-need-for-composables
Closed

[JEWEL-491] Remove unneeded composable annotation#2997
rock3r wants to merge 1 commit intoJetBrains:masterfrom
rock3r:sebp/no-need-for-composables

Conversation

@rock3r
Copy link
Collaborator

@rock3r rock3r commented Mar 22, 2025

Since JEWEL-490, standalone styling default factories do not include text styles any longer. Text styles were the only reason we needed these factories to be composable.

In the meantime, some factories had dropped the composable annotation, but most hadn't. This brings them all in line by dropping the annotation everywhere.

Small fix included: SimpleListItemStyle uses JewelTheme.isDark instead of isSystemInDarkMode(), which was technically wrong (the theme can be dark even if the system is not in dark mode).

Since JEWEL-490, standalone styling default factories do not include
text styles any longer. Text styles were the only reason we needed these
factories to be composable.

In the meantime, some factories had dropped the composable annotation,
but most hadn't. This brings them all in line by dropping the annotation
everywhere.

Small fix included: SimpleListItemStyle uses JewelTheme.isDark instead
of isSystemInDarkMode(), which was technically wrong (the theme can be
dark even if the system is not in dark mode).
@rock3r rock3r requested a review from hamen March 22, 2025 10:25
@rock3r rock3r self-assigned this Mar 22, 2025
@rock3r rock3r added the Jewel label Mar 22, 2025
Copy link
Contributor

@hamen hamen left a comment

Choose a reason for hiding this comment

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

Nice clean up.
Tested on Windows11: Standalone and IDE ✅

@rock3r
Copy link
Collaborator Author

rock3r commented Mar 24, 2025

Ready to merge

@rock3r rock3r requested a review from jakub-senohrabek March 24, 2025 10:40
@rock3r rock3r deleted the sebp/no-need-for-composables branch March 27, 2025 16:45
intellij-monorepo-bot pushed a commit that referenced this pull request Apr 14, 2025
Since JEWEL-490, standalone styling default factories do not include
text styles any longer. Text styles were the only reason we needed these
factories to be composable.

In the meantime, some factories had dropped the composable annotation,
but most hadn't. This brings them all in line by dropping the annotation
everywhere.

Small fix included: SimpleListItemStyle uses JewelTheme.isDark instead
of isSystemInDarkMode(), which was technically wrong (the theme can be
dark even if the system is not in dark mode).

closes #2997

(cherry picked from commit 271fbe5530d3b5d2d20f0b7d01e7aaab687a770b)


(cherry picked from commit b20ac746e9e6430a2ac807a7ebd28056a0d51115)

IJ-MR-158649

GitOrigin-RevId: 9de2af25bd7c28fc746e60e542d56a79358ccaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants