fix(deps): update miuix to v0.9.3#53
Closed
renovate[bot] wants to merge 1 commit into
Closed
Conversation
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.0→0.9.30.9.0→0.9.30.9.0→0.9.30.9.0→0.9.30.9.0→0.9.3Release Notes
compose-miuix-ui/miuix (top.yukonga.miuix.kmp:miuix-navigation3-ui)
v0.9.3English | 中文
Highlights
Tooltipcomponent — plain and rich tooltips shown on hover (desktop/web), long press (touch), or programmatically viaTooltipState, with six anchor positions, automatic flipping, an optional caret, and single-tooltip-at-a-time behavior.Badge/BadgedBoxcomponents — an error-colored dot or short-text pill, plus a newbadgeslot onNavigationBarItem,FloatingNavigationBarItem, andNavigationRailItem.NavigationRailgains expand/collapse — a newNavigationRailState(viarememberNavigationRailState()) drives an animated transition between the compact rail and a 240dp expanded rail with pill-shaped items and a built-in toggle; the old display-mode API is removed (see Breaking Changes).Snackbarredesigned — inverse-surface tone by default (dark bar in light theme, light bar in dark theme), smooth-corner background with a soft shadow, a filled pill-style action button, and layout-driven stack animations.TabRowredesigned — unselected tabs now draw a subtle outline, and the selection indicator snaps to the selected tab instead of tweening.PullToRefreshreworked —isRefreshingis now the source of truth in both directions: setting it totrueshows the indicator programmatically, and the stuck-refresh bug is fixed (#345).miuix-squirclefixes & perf — content taller than the GPU texture limit no longer renders transparent; the SDF mask uploads as an ALPHA_8 texture, is sampled with hardware linear filtering, and per-frame allocations were removed.Homeicon (all five weights), new built-inCloseandSidebaricons, and an optical realignment pass across the 62 extended icons.1.
NavigationRail: display-mode API removed, replaced by an expandable-rail state APINavigationRailwas reworked into an expandable rail. The following were removed with no deprecation shims:mode: NavigationRailDisplayModeparameterNavigationRailDisplayModeenum and theLocalNavigationRailDisplayModeCompositionLocalNavigationRailDefaults.TextOnlyFontSize,TextOnlyVerticalPadding,SelectedPressedAlpha,UnselectedPressedAlpha,UnselectedAlphaA new
state: NavigationRailState? = nullparameter is inserted as the second parameter (right aftermodifier), so fully positional call sites passingheaderor later arguments no longer compile — use named arguments.The classic rail (
state = null) always renders icon + label; the icon-only and text-only presets have no direct replacement. By design, the selected item in the classic layout is now flat (no bold/alpha tint) — the expanded layout's pill is the selection visual — and press feedback comes fromLocalIndication.2. Navigation bars:
TextOnlydisplay mode removedNavigationBarDisplayMode.TextOnlyandNavigationBarDefaults.TextFontSizewere removed: navigation items now anchor badges to their icon, and a text-only item has no icon to anchor to. The enum keepsIconAndText,IconOnly, andIconWithSelectedLabel. Exhaustivewhenbranches over the enum need updating.3.
Snackbar:SnackbarColorsgained a requiredactionContainerColorThe
SnackbarColorsdata class has a new fifth constructor propertyactionContainerColor: Color(background of the new pill-style action button) with no default value. Direct constructions must add it; theSnackbarDefaults.snackbarColors()factory keeps compiling unchanged (the new parameter is trailing with a default).Note the redesigned default appearance:
snackbarColors()defaults switched to an inverse-surface palette,SnackbarDefaults.CornerRadiuschanged 12dp → 16dp, andInsideMarginchanged toPaddingValues(all = 12.dp). Unstyled snackbars look substantially different after upgrading; pass explicit colors/values to keep the old look.4.
TextButton:textStyleparameter inserted mid-signaturetextStyle: TextStyle? = nullwas inserted betweeninsideMarginandinteractionSource. Only fully positional call sites that passinteractionSourceorindicationpositionally are affected; named-argument call sites compile unchanged.5.
PullToRefresh(behavioral):isRefreshingis now the source of truth in both directionsNo signature changed, but the state-sync contract did:
isRefreshing = truewhile the indicator is idle now shows the indicator programmatically (previously a silent no-op) — enabling refresh-on-entry patterns.isRefreshingis alreadytruenow joins the in-progress refresh instead of invokingonRefresha second time.true → falsepulse no longer latches the indicator in the refreshing state forever (#345).Adjust any code that relied on the old edge-triggered semantics.
Binary compatibility note: several public functions gained defaulted parameters (
SnackbarDefaults.snackbarColors,NavigationRail,folmeSpring), which changes their compiled signatures. Libraries precompiled against 0.9.2 should be recompiled against 0.9.3.What's Changed
New Features
Tooltipcomponent by @YuKongA in3eeec39Badgecomponent and navigation item badges by @YuKongA in48bd19832549f8d440ae8Improvements
Components
Snackbarcomponent by @YuKongA inf6f93426c44032efd47bd14cea476979e70a0f7fa399b4fc3miuix-squircle
f7aea86bdebeaa94c98f38c95716Bug Fixes
ab8552df1082148bbd898b36a2fa49ac701Example & Docs
d3f557a6c658e161202bb8c1beb70a49515d2c2c07Dependencies
17583a8Full Changelog: compose-miuix-ui/miuix@v0.9.2...v0.9.3
亮点
Tooltip组件 — 普通与富文本工具提示,支持悬停(桌面/网页)、长按(触屏)或通过TooltipState编程触发;六个锚定方位自动翻转、可选尖角、全局同一时刻仅显示一个。Badge/BadgedBox组件 — 错误色圆点或短文本药丸角标;NavigationBarItem、FloatingNavigationBarItem、NavigationRailItem新增badge插槽。NavigationRail支持展开 / 收起 — 新的NavigationRailState(rememberNavigationRailState())驱动侧栏在紧凑布局与 240dp 展开布局(药丸样式条目 + 内置切换按钮)之间动画过渡;原显示模式 API 已移除(见破坏性更改)。Snackbar重设计 — 默认反色表面配色(浅色主题深色条 / 深色主题浅色条)、平滑圆角背景与柔和投影、药丸样式操作按钮、布局驱动的堆叠动画。TabRow重设计 — 未选中标签改为细描边样式,选择指示器改为直接切换而非补间动画。PullToRefresh重构 —isRefreshing成为双向数据源:置true可编程式展示刷新指示器,并修复卡死在刷新态的问题 (#345)。miuix-squircle修复与性能 — 修复超过 GPU 纹理上限的超高内容渲染透明的问题;SDF 遮罩改用 ALPHA_8 纹理上传、硬件线性过滤采样,并消除每帧分配。Home(全部五个字重)、内置基础图标新增Close与Sidebar,并对 62 个扩展图标完成光学对齐。1.
NavigationRail:显示模式 API 移除,替换为可展开侧栏状态 APINavigationRail重构为可展开侧栏。以下 API 被直接移除(无弃用过渡):mode: NavigationRailDisplayMode参数NavigationRailDisplayMode枚举与LocalNavigationRailDisplayModeCompositionLocalNavigationRailDefaults.TextOnlyFontSize、TextOnlyVerticalPadding、SelectedPressedAlpha、UnselectedPressedAlpha、UnselectedAlpha新增的
state: NavigationRailState? = null参数插入在第二位(紧随modifier),因此以位置参数传入header及之后参数的调用将无法编译——请改用具名参数。经典侧栏(
state = null)始终渲染图标 + 标签;仅图标与仅文本预设没有直接替代。按新设计语言,经典布局下选中项不再加粗 / 透明度着色(展开布局的药丸即选中视觉),按压反馈改由LocalIndication提供。2. 导航栏:
TextOnly显示模式移除NavigationBarDisplayMode.TextOnly与NavigationBarDefaults.TextFontSize已移除:导航项现在将角标锚定到图标上,而仅文本条目没有图标可供锚定。枚举保留IconAndText、IconOnly、IconWithSelectedLabel。对该枚举做穷举when的代码需要更新。3.
Snackbar:SnackbarColors新增必填属性actionContainerColorSnackbarColors数据类新增第五个构造属性actionContainerColor: Color(新药丸样式操作按钮的背景色),无默认值。直接构造SnackbarColors(...)的代码必须补上该参数;SnackbarDefaults.snackbarColors()工厂函数保持源码兼容(新参数位于末尾且带默认值)。另请注意默认外观已重设计:
snackbarColors()的默认值切换为反色表面配色,SnackbarDefaults.CornerRadius由 12dp 改为 16dp,InsideMargin改为PaddingValues(all = 12.dp)。未自定义样式的 Snackbar 升级后观感会明显不同;如需保留旧观感请显式传入颜色与尺寸。4.
TextButton:textStyle参数插入签名中部textStyle: TextStyle? = null插入在insideMargin与interactionSource之间。仅影响以位置参数传入interactionSource/indication的完全位置式调用;具名参数调用不受影响。5.
PullToRefresh(行为变更):isRefreshing成为双向数据源签名未变,但状态同步契约改变:
isRefreshing = true现在会编程式展示刷新指示器(此前静默忽略)——支持进入页面即刷新等模式。isRefreshing已为true时松开下拉手势会并入进行中的刷新,不再第二次调用onRefresh。true → false脉冲不再导致指示器永久卡死在刷新态 (#345)。依赖旧的边沿触发语义的代码需要调整。
二进制兼容性说明:若干公开函数新增了带默认值的参数(
SnackbarDefaults.snackbarColors、NavigationRail、folmeSpring),其编译后签名发生变化。基于 0.9.2 预编译的库需针对 0.9.3 重新编译。更新内容
新功能
Tooltipcomponent by @YuKongA in3eeec39Badgecomponent and navigation item badges by @YuKongA in48bd19832549f8d440ae8改进
组件
Snackbarcomponent by @YuKongA inf6f93426c44032efd47bd14cea476979e70a0f7fa399b4fc3miuix-squircle
f7aea86bdebeaa94c98f38c95716Bug 修复
ab8552df1082148bbd898b36a2fa49ac701示例与文档
d3f557a6c658e161202bb8c1beb70a49515d2c2c07依赖更新
17583a8完整更新日志: compose-miuix-ui/miuix@v0.9.2...v0.9.3
v0.9.2English | 中文
Highlights
miuix-shadermodule — a cross-platform runtime shader / render-effect abstraction, extracted frommiuix-blurand now published standalone.miuix-squirclemodule — squircle (smooth rounded corner) shapes with a pre-baked SDF and a globalLocalSquircleEnabledtoggle; now backsmiuix-uisurfaces.SliderPreference/RangeSliderPreference— slider-based preference rows inmiuix-preference.TextgainsColorProduceroverloads — drive a frequently-changing text color from the draw phase without recomposition.miuix-blurrefinements — cross-fade downscale transitions, render-effect/Gaussian-key caching, fewer per-frame allocations; AndroidminSdkbumped 32 → 33.1.
miuix-blur:minSdk32 → 33miuix-blurnow requires Android API 33+. Earlier devices fall back to non-blur rendering automatically (the shader paths are guarded byisRuntimeShaderSupported()).2. Runtime shader / render-effect helpers extracted to
miuix-shaderThe
RuntimeShader/RenderEffectabstraction moved out ofmiuix-blurinto the newmiuix-shadermodule (miuix-blurdepends on it transitively, so no extra dependency is required). For source compatibility,RuntimeShader,asComposeShader(),asBrush(), andisRuntimeShaderSupported()remain available fromtop.yukonga.miuix.kmp.bluras back-compat re-exports; new code should import them fromtop.yukonga.miuix.kmp.shaderinstead:isRenderEffectSupported()now lives only intop.yukonga.miuix.kmp.shader.What's Changed
New Features
85ae46994f1ff968352b1Improvements
Components
eca8ed2a033aee054e2a1f32eece540e474a69894amiuix-blur
5e75455132586a50aa39cf8196d4d6e7c1c073428dBug Fixes
cb3956d4f69c94Example & Docs
f3888d5IconandLocalContentColorinLiquidGlassNavigationBarby @wxxsfxyzm in #327daff7a67daae999a6fdc48c4ca7bdd2fb73c24091c6cef2954c17a46ce892e414e6f36f6b2d80Build
070a96fDependencies
Full Changelog: compose-miuix-ui/miuix@v0.9.1...v0.9.2
亮点
miuix-shader模块 — 跨平台运行时着色器 / 渲染效果抽象,从miuix-blur中拆分并独立发布。miuix-squircle模块 — 平滑圆角(squircle)形状库,内置预烘焙 SDF 与全局LocalSquircleEnabled开关;miuix-ui的圆角表面现已基于它实现。SliderPreference/RangeSliderPreference—miuix-preference中基于滑块的偏好项。Text新增ColorProducer重载 — 在绘制阶段驱动频繁变化的文字颜色,避免重组。miuix-blur优化 — 降采样档位交叉淡化过渡、渲染效果 / 高斯键缓存、减少每帧分配;AndroidminSdk由 32 提升至 33。1.
miuix-blur:minSdk由 32 提升至 33miuix-blur现要求 Android API 33+,低于该版本的设备会自动回退至无模糊渲染(着色器路径由isRuntimeShaderSupported()守卫)。2. 运行时着色器 / 渲染效果工具迁移至
miuix-shaderRuntimeShader/RenderEffect抽象已从miuix-blur拆分到新的miuix-shader模块(miuix-blur会传递依赖它,无需额外添加依赖)。为兼容现有代码,RuntimeShader、asComposeShader()、asBrush()、isRuntimeShaderSupported()仍可从top.yukonga.miuix.kmp.blur以兼容别名导入;新代码请改从top.yukonga.miuix.kmp.shader导入:isRenderEffectSupported()现仅存在于top.yukonga.miuix.kmp.shader。更新内容
新功能
85ae46994f1ff968352b1改进
组件
eca8ed2a033aee054e2a1f32eece540e474a69894amiuix-blur
5e75455132586a50aa39cf8196d4d6e7c1c073428dBug 修复
cb3956d4f69c94示例与文档
f3888d5IconandLocalContentColorinLiquidGlassNavigationBarby @wxxsfxyzm in #327daff7a67daae999a6fdc48c4ca7bdd2fb73c24091c6cef2954c17a46ce892e414e6f36f6b2d80构建
070a96f依赖更新
完整更新日志: compose-miuix-ui/miuix@v0.9.1...v0.9.2
v0.9.1English | 中文
Highlights
miuix-shapesremoved — performance cost outweighed visual gain.OverlayCascadingListPopup,WindowCascadingListPopup,OverlayIconCascadingDropdownMenu,WindowIconCascadingDropdownMenu.miuix-blur—Modifier.drawBackdrop()/Modifier.textureBlur()accept ahighlightparameter for overlay highlight effects.miuix-blurAPI changes — DSLgaussianBlur(...)renamed toblur(...);Modifier.textureBlurblurRadiusis now interpreted as dp (auto density conversion); AndroidminSdkbumped 31 → 32.SpinnerPopupmerged intoOverlayDropdownPopup; per-item callbacks enable multi-select.Button,Surface,TextField,BasicComponent,TabRow,Snackbar,ColorPicker, NavigationBar/Rail, Overscroll.1.
miuix-shapesmodule removedDrop the dependency and switch to
androidx.compose.foundation.shape:2.
miuix-blur:minSdk31 → 32miuix-blurnow requires Android API 32+. Earlier devices fall back to non-blur rendering automatically.3.
miuix-blur: blur DSL renamed,textureBlurradius now dpThe
BackdropEffectScope.gaussianBlur(...)DSL is renamed toblur(...). Parameters and units stay the same (Float pixels):Modifier.textureBlur(blurRadius = ...)keeps theFloattype but its meaning changed from pixels to dp (internally converted using display density). Numeric values should be reduced accordingly:BlurDefaults.BlurRadiusandBlurDefaults.MaxBlurRadiusare also now dp-based (defaults:20f,150f).4.
FloatingNavigationBarsimplified to icon-onlyThe
mode: FloatingNavigationBarDisplayModeparameter is removed; theFloatingNavigationBarDisplayModeenum (and itsIconAndText/TextOnly/IconOnlycases) is deleted. The component is now always icon-only. If you relied onIconAndTextorTextOnly, migrate toNavigationBaror compose a custom layout.5. Dropdown / Spinner unified
SpinnerEntryis now a deprecatedtypealiasforDropdownItem;SpinnerColorsis a deprecatedtypealiasforDropdownColors.SpinnerDefaultsis deprecated — useDropdownDefaultsinstead.DropdownPopup/SpinnerPopupare merged into a singleOverlayDropdownPopup(withOverlayDropdownDialogcovering the dialog mode); the Window-side equivalents live inWindowDropdownPopup/WindowDropdownDialog.WindowDropdownPreference/WindowSpinnerPreference(and theirOverlay*counterparts) now manage their options via the unifiedDropdownEntry/DropdownItemtypes.miuix-preference:OverlayDropdownMenu,OverlayIconDropdownMenu,WindowDropdownMenu,WindowIconDropdownMenu, plus the cascading*IconCascadingDropdownMenuvariants.DropdownItemgains aselected: Booleanfield and an optionalonClick: (() -> Unit)?callback so each row can drive its own selection state, enabling multi-select.What's Changed
New Features
2b1c0f617c0831startActionslot to preference components by @HChenX in #312onExpandedChange(Boolean)in Dropdown and Spinner by @Miuzarte in #297holdDownStateto Card by @YuKongA in #302role/onClickLabelfor accessibility by @YuKongA in [32469d0](https:/Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.