Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.

Commit 1a3876f

Browse files
authored
Merge pull request #147 from misaka10032w/develop
[Fix] 修复颜色表现
2 parents 3e00f9b + 6b9f949 commit 1a3876f

7 files changed

Lines changed: 25 additions & 6 deletions

File tree

app/src/main/java/com/yenaly/han1meviewer/ui/adapter/HanimeVideoRvAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class HanimeVideoRvAdapter(
8282
holder.getView<TextView>(R.id.title).text = item.title
8383
holder.getView<ImageView>(R.id.cover).load(item.coverUrl) {
8484
crossfade(true)
85+
placeholder(R.drawable.akarin)
8586
}
8687
holder.getView<TextView>(R.id.is_playing).isVisible = item.isPlaying
8788
holder.getView<TextView>(R.id.duration).text = item.duration

app/src/main/java/com/yenaly/han1meviewer/ui/fragment/home/preview/PreviewFragment.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import com.yenaly.han1meviewer.util.colorTransition
5252
import com.yenaly.han1meviewer.util.toColorStateList
5353
import com.yenaly.yenaly_libs.base.YenalyFragment
5454
import com.yenaly.yenaly_libs.utils.appScreenWidth
55-
import com.yenaly.yenaly_libs.utils.getThemeColor
5655
import com.yenaly.yenaly_libs.utils.unsafeLazy
5756
import com.yenaly.yenaly_libs.utils.view.AppBarLayoutStateChangeListener
5857
import com.yenaly.yenaly_libs.utils.view.innerRecyclerView

app/src/main/java/com/yenaly/han1meviewer/ui/fragment/home/subscription/SubscriptionItem.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,13 @@ fun VideoCardItem(
8989
),
9090
shape = RoundedCornerShape(12.dp),
9191
tonalElevation = 2.dp,
92+
shadowElevation = 1.dp,
9293
color = MaterialTheme.colorScheme.surface,
9394
contentColor = MaterialTheme.colorScheme.onSurface
9495
) {
9596
Column(
9697
horizontalAlignment = Alignment.CenterHorizontally,
97-
modifier = Modifier.background(MaterialTheme.colorScheme.surface)
98+
modifier = Modifier.fillMaxWidth()
9899
) {
99100
Box(
100101
modifier = Modifier
@@ -106,7 +107,7 @@ fun VideoCardItem(
106107
contentDescription = videoItem.title,
107108
modifier = Modifier
108109
.fillMaxSize(),
109-
placeholder = painterResource(R.drawable.baseline_data_usage_24),
110+
placeholder = painterResource(R.drawable.akarin),
110111
error = painterResource(android.R.drawable.stat_notify_error),
111112
contentScale = ContentScale.Crop
112113
)
9.25 KB
Loading

app/src/main/res/layout/item_hanime_video.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
android:layout_height="match_parent"
4242
android:contentDescription="@null"
4343
android:scaleType="centerCrop"
44-
app:shapeAppearanceOverlay="@style/RoundCornerImageView" />
44+
app:shapeAppearanceOverlay="@style/TopRoundCornerImageView" />
4545

4646
<TextView
4747
android:id="@+id/is_playing"
@@ -58,7 +58,7 @@
5858
android:layout_width="match_parent"
5959
android:layout_height="25dp"
6060
android:layout_gravity="bottom"
61-
android:background="@drawable/gradient_black_transparent_90"
61+
android:background="@drawable/linear_gradient_90_notrans"
6262
android:paddingStart="4dp"
6363
android:paddingEnd="4dp"
6464
android:paddingBottom="4dp">

app/src/main/res/layout/item_hanime_video_simplified.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
android:layout_width="match_parent"
4242
android:layout_height="match_parent"
4343
android:contentDescription="@null"
44-
app:shapeAppearanceOverlay="@style/RoundCornerImageView" />
44+
app:shapeAppearanceOverlay="@style/TopRoundCornerImageView" />
4545

4646
</FrameLayout>
4747

app/src/main/res/values/themes.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,24 @@
7777
<item name="cornerFamily">rounded</item>
7878
<item name="cornerSize">8dp</item>
7979
</style>
80+
81+
<style name="TopRoundCornerImageView" parent="">
82+
<!-- 上左圆角 -->
83+
<item name="cornerFamilyTopLeft">rounded</item>
84+
<item name="cornerSizeTopLeft">8dp</item>
85+
86+
<!-- 上右圆角 -->
87+
<item name="cornerFamilyTopRight">rounded</item>
88+
<item name="cornerSizeTopRight">8dp</item>
89+
90+
<!-- 下左直角 -->
91+
<item name="cornerFamilyBottomLeft">cut</item>
92+
<item name="cornerSizeBottomLeft">0dp</item>
93+
94+
<!-- 下右直角 -->
95+
<item name="cornerFamilyBottomRight">cut</item>
96+
<item name="cornerSizeBottomRight">0dp</item>
97+
</style>
8098
<!-- 启动页面专用主题 -->
8199
<style name="Theme.Hanime1.Splash" parent="Theme.SplashScreen">
82100
<!-- 背景颜色 -->

0 commit comments

Comments
 (0)