optimized playing process bar

This commit is contained in:
2026-08-30 08:32:31 +08:00
parent 856aa38026
commit 997bd9eed8
3 changed files with 5 additions and 3 deletions

View File

@@ -619,7 +619,7 @@ class MainActivity : Activity() {
return LinearLayout(this).apply { return LinearLayout(this).apply {
orientation = LinearLayout.VERTICAL orientation = LinearLayout.VERTICAL
if (translucent) { if (translucent) {
background = rounded(COLOR_OVERLAY, 0f, null) background = rounded(COLOR_OVERLAY_FAINT, 0f, null)
setPadding(18.dp, 14.dp, 18.dp, 16.dp) setPadding(18.dp, 14.dp, 18.dp, 16.dp)
} }
addView(lessonTitleText) addView(lessonTitleText)
@@ -1545,7 +1545,7 @@ class MainActivity : Activity() {
setTextColor(Color.WHITE) setTextColor(Color.WHITE)
textSize = 13f textSize = 13f
typeface = Typeface.DEFAULT_BOLD typeface = Typeface.DEFAULT_BOLD
background = rounded(COLOR_OVERLAY, 8f) background = rounded(COLOR_OVERLAY_FAINT, 8f)
setPadding(10.dp, 6.dp, 10.dp, 6.dp) setPadding(10.dp, 6.dp, 10.dp, 6.dp)
gravity = Gravity.CENTER gravity = Gravity.CENTER
} }
@@ -1660,6 +1660,7 @@ class MainActivity : Activity() {
val COLOR_PROGRESS_TRACK_DARK: Int = Color.rgb(55, 62, 70) val COLOR_PROGRESS_TRACK_DARK: Int = Color.rgb(55, 62, 70)
val COLOR_LIGHT_BORDER: Int = Color.rgb(218, 226, 232) val COLOR_LIGHT_BORDER: Int = Color.rgb(218, 226, 232)
val COLOR_OVERLAY: Int = Color.argb(178, 9, 12, 16) val COLOR_OVERLAY: Int = Color.argb(178, 9, 12, 16)
val COLOR_OVERLAY_FAINT: Int = Color.argb(51, 9, 12, 16)
val COLOR_TEXT_DARK: Int = Color.rgb(18, 24, 31) val COLOR_TEXT_DARK: Int = Color.rgb(18, 24, 31)
val COLOR_TEXT_MUTED: Int = Color.rgb(151, 162, 174) val COLOR_TEXT_MUTED: Int = Color.rgb(151, 162, 174)
val COLOR_TEXT_SUBTLE: Int = Color.rgb(88, 98, 108) val COLOR_TEXT_SUBTLE: Int = Color.rgb(88, 98, 108)

View File

@@ -31,7 +31,7 @@ struct FullscreenPlayerView: View {
} }
.padding(18) .padding(18)
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.background(Theme.overlay) .background(Theme.overlayFaint)
} }
VStack { VStack {
Spacer() Spacer()

View File

@@ -13,6 +13,7 @@ enum Theme {
static let progressTrackDark = Color(hex: 0x373E46) static let progressTrackDark = Color(hex: 0x373E46)
static let lightBorder = Color(hex: 0xDAE2E8) static let lightBorder = Color(hex: 0xDAE2E8)
static let overlay = Color(red: 9.0 / 255.0, green: 12.0 / 255.0, blue: 16.0 / 255.0, opacity: 0.7) static let overlay = Color(red: 9.0 / 255.0, green: 12.0 / 255.0, blue: 16.0 / 255.0, opacity: 0.7)
static let overlayFaint = Color(red: 9.0 / 255.0, green: 12.0 / 255.0, blue: 16.0 / 255.0, opacity: 0.2)
static let textDark = Color(hex: 0x12181F) static let textDark = Color(hex: 0x12181F)
static let textMuted = Color(hex: 0x97A2AE) static let textMuted = Color(hex: 0x97A2AE)
static let textSubtle = Color(hex: 0x58626C) static let textSubtle = Color(hex: 0x58626C)