Skip to content

Commit 58c0336

Browse files
committed
fix minor theme issue
1 parent 0a393d5 commit 58c0336

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

new-player/src/main/java/net/newpipe/newplayer/ui/NewPlayerUI.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ private const val TAG = "VideoPlayerUI"
7171
* or views are hidden and only NewPlayerUI is visible. You can read more about this in
7272
* the [NewPlayerViewModel], since the [viewModel] is responsible to tell your UI how to behave
7373
* in such cases.
74+
*
75+
* @param viewModel the NewPlayerViewModel that should control this NewPlayerUi.
76+
* @param lightColorScheme is the color scheme used by non video ui related composables, when the system is in light mode.
77+
* @param darkColorScheme is the color scheme used by the video ui related composables, and the rest of the ui if the system is in dark mode.
78+
* @param the typography used by NewPlayer
7479
*/
7580
@OptIn(UnstableApi::class)
7681
@Composable

new-player/src/main/java/net/newpipe/newplayer/ui/audioplayer/AudioPlayerEmbeddedUI.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ internal fun AudioPlayerEmbeddedUI(viewModel: InternalNewPlayerViewModel, uiStat
119119
top = 0.5.dp,
120120
bottom = 0.5.dp
121121
),
122-
color = MaterialTheme.colorScheme.onBackground,
122+
color = MaterialTheme.colorScheme.onPrimary,
123123
text = getTimeStringFromMs(
124124
uiState.durationInMs,
125125
locale,

test-app/src/main/java/net/newpipe/newplayer/testapp/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ class MainActivity : AppCompatActivity() {
131131
removeSystemInsets()
132132
binding.embeddedPlayer.viewModel = null
133133
binding.fullscreenPlayer.viewModel = newPlayerViewModel
134-
binding.buttonsLayout.visibility = View.GONE
134+
binding.buttonsLayout!!.visibility = View.GONE
135135
binding.embeddedPlayerLayout.visibility = View.GONE
136136
binding.fullscreenPlayer.visibility = View.VISIBLE
137137
} else {
138138
addSystemInsets()
139139
binding.fullscreenPlayer.viewModel = null
140140
binding.embeddedPlayer.viewModel = newPlayerViewModel
141-
binding.buttonsLayout.visibility = View.VISIBLE
141+
binding.buttonsLayout!!.visibility = View.VISIBLE
142142
binding.embeddedPlayerLayout.visibility = View.VISIBLE
143143
binding.fullscreenPlayer.visibility = View.GONE
144144
}

0 commit comments

Comments
 (0)