From 997bd9eed85516cd13b79ddb9c68a2d9280b56b4 Mon Sep 17 00:00:00 2001 From: Shuming Liu Date: Sun, 30 Aug 2026 08:32:31 +0800 Subject: [PATCH] optimized playing process bar --- .../java/cn/learningpad/oraltrainer/sample/MainActivity.kt | 5 +++-- ios/OralTrainer/Views/FullscreenPlayerView.swift | 2 +- ios/OralTrainer/Views/Theme.swift | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/sample-app/src/main/java/cn/learningpad/oraltrainer/sample/MainActivity.kt b/android/sample-app/src/main/java/cn/learningpad/oraltrainer/sample/MainActivity.kt index 079ddcb..008864d 100644 --- a/android/sample-app/src/main/java/cn/learningpad/oraltrainer/sample/MainActivity.kt +++ b/android/sample-app/src/main/java/cn/learningpad/oraltrainer/sample/MainActivity.kt @@ -619,7 +619,7 @@ class MainActivity : Activity() { return LinearLayout(this).apply { orientation = LinearLayout.VERTICAL if (translucent) { - background = rounded(COLOR_OVERLAY, 0f, null) + background = rounded(COLOR_OVERLAY_FAINT, 0f, null) setPadding(18.dp, 14.dp, 18.dp, 16.dp) } addView(lessonTitleText) @@ -1545,7 +1545,7 @@ class MainActivity : Activity() { setTextColor(Color.WHITE) textSize = 13f typeface = Typeface.DEFAULT_BOLD - background = rounded(COLOR_OVERLAY, 8f) + background = rounded(COLOR_OVERLAY_FAINT, 8f) setPadding(10.dp, 6.dp, 10.dp, 6.dp) gravity = Gravity.CENTER } @@ -1660,6 +1660,7 @@ class MainActivity : Activity() { val COLOR_PROGRESS_TRACK_DARK: Int = Color.rgb(55, 62, 70) val COLOR_LIGHT_BORDER: Int = Color.rgb(218, 226, 232) 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_MUTED: Int = Color.rgb(151, 162, 174) val COLOR_TEXT_SUBTLE: Int = Color.rgb(88, 98, 108) diff --git a/ios/OralTrainer/Views/FullscreenPlayerView.swift b/ios/OralTrainer/Views/FullscreenPlayerView.swift index 6a90a1a..6aaec85 100644 --- a/ios/OralTrainer/Views/FullscreenPlayerView.swift +++ b/ios/OralTrainer/Views/FullscreenPlayerView.swift @@ -31,7 +31,7 @@ struct FullscreenPlayerView: View { } .padding(18) .frame(maxWidth: .infinity, alignment: .leading) - .background(Theme.overlay) + .background(Theme.overlayFaint) } VStack { Spacer() diff --git a/ios/OralTrainer/Views/Theme.swift b/ios/OralTrainer/Views/Theme.swift index 14c2649..fd53041 100644 --- a/ios/OralTrainer/Views/Theme.swift +++ b/ios/OralTrainer/Views/Theme.swift @@ -13,6 +13,7 @@ enum Theme { static let progressTrackDark = Color(hex: 0x373E46) 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 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 textMuted = Color(hex: 0x97A2AE) static let textSubtle = Color(hex: 0x58626C)