feat: Material Design 3 UI 重构#50
Open
Shiho-Patch wants to merge 7 commits into
Open
Conversation
### 主题系统 - 全新暖橘猫品牌色板(Color.kt) - M3 Expressive 排版系统(Type.kt) - M3 Expressive 形状系统(Shape.kt) - 深浅色 + 动态取色(Theme.kt) ### 组件库(新增 6 大家族 - CatCard: Elevated/Filled/Outlined/Clickable + Hero - CatButton: Filled/Tonal/Outlined/Text - CatIcon: 圆形 + 圆角方形 图标容器 - CatTopAppBar: 主顶栏 + 子页带返回键 - CatPullRefresh: M3 原生下拉刷新 - LoadingStates: Loading/Empty/Error/Scanning/Success 五种状态 ### 架构 - MVVM: 3 个 ViewModel(Main/Share/Settings - Navigation Compose: CatNavHost - StateFlow + collectAsStateWithLifecycle ### Activity 精简 - MainActivity 简化为导航容器 - ShareActivity 委托给 ShareScreen - SettingsActivity 委托给 SettingsScreen ### 依赖 - 新增 androidx.navigation:navigation-compose - 新增 androidx.lifecycle:lifecycle-viewmodel-compose ### Bug 修复 - 修复 BLE 扫描的 ViewModel 清理 - 修复 BroadcastReceiver 泄漏 - 修复权限请求回调生命周期
Gradle TOML catalog 将连字符解析为点式嵌套访问,需将 libs.androidx.ui.tooling-preview 改为 libs.androidx.ui.tooling.preview
- Theme.kt: 添加缺失的 androidx.compose.ui.graphics.Color import - MainActivity.kt: 修正 ActivityResultContract.SynchronousResult 嵌套类引用路径 - ShareActivity.kt: 用 listOfNotNull 处理 extractFileInfo 的可空返回值 - ShareViewModel.kt: ParcelUuid 需要通过 .uuid 获取底层 UUID 对象
- app/build.gradle.kts: packaging.jniLibs.keepDebugSymbols += '**/*.so' - MainScreen.kt: 修复 Icons.Filled.BluetoothSearching 弃用警告
Owner
|
怎么还把5G支持给搞丢了( |
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.
主题系统
组件库(新增 6 大家族
架构
Activity 精简
依赖
Bug 修复