Skip to content

Commit

Permalink
added app bar color
Browse files Browse the repository at this point in the history
  • Loading branch information
Sal7one committed Mar 13, 2022
1 parent acf0266 commit 0b66cd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.Scaffold
import androidx.compose.ui.graphics.toArgb
import androidx.core.content.ContextCompat
import com.sal7one.musicswitcher.R
import com.sal7one.musicswitcher.compose.ui.theme.AppPrimary_color
import com.sal7one.musicswitcher.compose.ui.theme.MusicSwitcherTheme

class MainUi : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
this.window.statusBarColor = ContextCompat.getColor(this, R.color.appbarColor)
MusicSwitcherTheme {
// A surface container using the 'background' color from the theme
Scaffold(
Expand Down
1 change: 1 addition & 0 deletions Android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="appbarColor">#FF240141</color>
</resources>

0 comments on commit 0b66cd9

Please sign in to comment.