Skip to content

feat: Add material theme for preview that adapts between light and dark - #864

Merged
LunarX merged 1 commit into
mainfrom
add-material-dark-and-light-preview-theme
Sep 22, 2026
Merged

LunarX merged 1 commit into
mainfrom
add-material-dark-and-light-preview-theme

Conversation

@LunarX

@LunarX LunarX commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@LunarX LunarX self-assigned this Sep 22, 2026
Copilot AI balanced review requested due to automatic review settings September 22, 2026 06:46
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused preview utility is correct and consistent with existing Compose preview behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a reusable Material 3 preview theme that follows the preview’s light or dark configuration.

Changes:

  • Selects the default light or dark Material color scheme automatically.
  • Documents the theme as preview-only.
File Description
Ui/​Compose/​Theme/​src/​main/​kotlin/​com/​infomaniak/​core/​ui/​compose/​theme/​MaterialPreviewTheme.kt Adds the adaptive preview theme.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@LunarX
LunarX merged commit d93a73f into main Sep 22, 2026
11 checks passed
@LunarX
LunarX deleted the add-material-dark-and-light-preview-theme branch September 22, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants