optimized playing process bar
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -31,7 +31,7 @@ struct FullscreenPlayerView: View {
|
||||
}
|
||||
.padding(18)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(Theme.overlay)
|
||||
.background(Theme.overlayFaint)
|
||||
}
|
||||
VStack {
|
||||
Spacer()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user