Skip to content

library: new effect module.#321

Open
HChenX wants to merge 5 commits into
compose-miuix-ui:mainfrom
HChenX:effect
Open

library: new effect module.#321
HChenX wants to merge 5 commits into
compose-miuix-ui:mainfrom
HChenX:effect

Conversation

@HChenX
Copy link
Copy Markdown
Contributor

@HChenX HChenX commented May 8, 2026

No description provided.

@HChenX HChenX changed the title library: New effect module. library: new effect module. May 8, 2026
HChenX added 4 commits May 9, 2026 11:39
- Introduced `ContainerHighlight` for responsive highlights based on container size and device tilt.
- Added `HighlightConfig` for managing highlight presets based on container size and theme.
- Implemented `CombinedBackdrop` to layer multiple backdrops for enhanced visual effects.
- Created `InnerShadow` modifier for simulating inner shadows within shapes.
- Developed `Lens` effect for rounded-rectangle refraction with optional chromatic aberration.
- Added `Vibrancy` effect to enhance backdrop color saturation, mimicking liquid glass aesthetics.
# Conflicts:
#	docs/.vitepress/locales/en_US.ts
#	docs/.vitepress/locales/zh_CN.ts
#	example/shared/build.gradle.kts
#	example/shared/src/commonMain/kotlin/component/liquid/LiquidGlassNavigationBar.kt
#	settings.gradle.kts
Introduce the background effect system, providing an animated gradient
background using GPU-accelerated shaders.

- Add `BgEffectBackground` composable for rendering animated gradients
  with Perlin noise and color cycling.
- Add `DeviceType` enum to support different device form factors (PHONE, PAD).
- Add `Compat.kt` to provide deprecated typealiases and a compatibility
  layer for the new package structure.
- Implement graceful degradation for platforms without runtime shader support.
Move `BgEffectBackground` and `DeviceType` from the root `effect` package to the `effect.bg` subpackage to improve modularity and prepare for future effect types.

- Relocate `BgEffectBackground` and `DeviceType` to `top.yukonga.miuix.kmp.effect.bg`
- Update imports in `example/shared` and documentation
- Update `miuix-effect/build.gradle.kts` with toolchain, spotless, and source set hierarchy
- Update `CLAUDE.md` and guide documentation to reflect new package structure
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.

1 participant