feat: UI 现代化重构 - 暗黑奢华风格 + Lottie 动画
实施基于 Lottie + Material 3 的暗黑奢华 + 玻璃拟态风格的现代化界面重构 主要变更: - 配色方案:深邃黑背景 + 皇家紫强调色 + 翡翠绿状态色 - 依赖升级:Lottie 6.3.0 + Material 3 1.11.0 + Blurry 4.0.1 - Lottie 动画:5 个优化的 JSON 动画文件(状态、加载、成功、刷新、空状态) - 玻璃拟态效果:半透明卡片 + 细腻边框 + 圆角设计 - 布局重构:主页、壁纸预览、相册管理、相册卡片全面重构 - 动画逻辑:HomeFragment 集成 Lottie 状态动画 - 设计规范:统一的尺寸系统(dimens.xml)和 Material 3 暗色主题 技术亮点: - 暗色主题让壁纸预览更突出 - 玻璃拟态创造深度和层次感 - Lottie 动画文件 < 50KB,性能优化 - Material 3 原生暗色主题支持 - 向后兼容旧的配色引用 文档:docs/ui-modernization-summary.md
This commit is contained in:
1 parent
2d98e061cd
commit
aa091c047f
22 files changed
+1321
-178
No files matched your search
@@ -5,9 +5,12 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dp"
|
||||
app:cardElevation="2dp"
|
||||
app:cardCornerRadius="16dp"
|
||||
android:layout_marginBottom="@dimen/spacing_md"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/corner_radius_md"
|
||||
app:cardBackgroundColor="@color/bg_card"
|
||||
app:strokeColor="@color/glass_border"
|
||||
app:strokeWidth="@dimen/glass_border_width"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
@@ -15,7 +18,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
android:padding="@dimen/card_padding">
|
||||
|
||||
<!-- 相册名称和状态 -->
|
||||
<LinearLayout
|
||||
@@ -30,7 +33,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="相册名称"
|
||||
android:textSize="18sp"
|
||||
android:textSize="@dimen/text_size_lg"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/text_primary"
|
||||
android:maxLines="1"
|
||||
@@ -41,14 +44,14 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="当前"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/text_size_xs"
|
||||
android:textColor="@color/white"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingStart="@dimen/spacing_sm"
|
||||
android:paddingEnd="@dimen/spacing_sm"
|
||||
android:paddingTop="@dimen/spacing_xs"
|
||||
android:paddingBottom="@dimen/spacing_xs"
|
||||
android:background="@drawable/badge_background"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginStart="@dimen/spacing_sm"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
@@ -60,15 +63,15 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="3 个文件夹 · 120 张图片"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/text_size_sm"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:layout_marginTop="8dp" />
|
||||
android:layout_marginTop="@dimen/spacing_sm" />
|
||||
|
||||
<!-- 配置信息 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginTop="@dimen/spacing_sm"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
@@ -76,21 +79,21 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="顺序"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/text_size_xs"
|
||||
android:textColor="@color/text_hint"
|
||||
android:drawableStart="@drawable/ic_repeat"
|
||||
android:drawablePadding="4dp" />
|
||||
android:drawablePadding="@dimen/spacing_xs" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvInterval"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="30 分钟"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/text_size_xs"
|
||||
android:textColor="@color/text_hint"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginStart="@dimen/spacing_md"
|
||||
android:drawableStart="@drawable/ic_schedule"
|
||||
android:drawablePadding="4dp" />
|
||||
android:drawablePadding="@dimen/spacing_xs" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -98,7 +101,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginTop="@dimen/spacing_md"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="end">
|
||||
|
||||
@@ -107,12 +110,14 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text="编辑"
|
||||
android:textSize="14sp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:textSize="@dimen/text_size_sm"
|
||||
android:layout_marginEnd="@dimen/spacing_sm"
|
||||
app:icon="@drawable/ic_edit"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="4dp"
|
||||
app:cornerRadius="8dp"
|
||||
app:iconPadding="@dimen/spacing_xs"
|
||||
app:cornerRadius="@dimen/corner_radius_sm"
|
||||
app:strokeColor="@color/accent_secondary"
|
||||
app:strokeWidth="1dp"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
@@ -120,12 +125,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text="切换"
|
||||
android:textSize="14sp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:textSize="@dimen/text_size_sm"
|
||||
android:layout_marginEnd="@dimen/spacing_sm"
|
||||
android:backgroundTint="@color/accent_primary"
|
||||
app:icon="@drawable/ic_swap_horiz"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="4dp"
|
||||
app:cornerRadius="8dp"
|
||||
app:iconPadding="@dimen/spacing_xs"
|
||||
app:cornerRadius="@dimen/corner_radius_sm"
|
||||
style="@style/Widget.Material3.Button" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
@@ -133,15 +139,15 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text="删除"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/text_size_sm"
|
||||
app:icon="@drawable/ic_delete"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="4dp"
|
||||
app:cornerRadius="8dp"
|
||||
app:iconPadding="@dimen/spacing_xs"
|
||||
app:cornerRadius="@dimen/corner_radius_sm"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:textColor="@color/error"
|
||||
app:iconTint="@color/error"
|
||||
app:strokeColor="@color/error" />
|
||||
android:textColor="@color/color_error"
|
||||
app:iconTint="@color/color_error"
|
||||
app:strokeColor="@color/color_error" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in new issue
Block a user