properly color the button at the widget config screen
This commit is contained in:
parent
b0a6bcd4d1
commit
889ee5785b
3 changed files with 5 additions and 2 deletions
|
@ -70,7 +70,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:4076fe37ef'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:ef6f95c36e'
|
||||
implementation 'org.greenrobot:eventbus:3.3.1'
|
||||
implementation 'androidx.media:media:1.6.0'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
|
|
|
@ -172,7 +172,7 @@ class TracksActivity : SimpleActivity() {
|
|||
override fun onResume() {
|
||||
super.onResume()
|
||||
updateCurrentTrackBar()
|
||||
setupToolbar(tracks_toolbar, NavigationIcon.Arrow)
|
||||
setupToolbar(tracks_toolbar, NavigationIcon.Arrow, searchMenuItem = searchMenuItem)
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.simplemobiletools.musicplayer.activities
|
|||
import android.app.Activity
|
||||
import android.appwidget.AppWidgetManager
|
||||
import android.content.Intent
|
||||
import android.content.res.ColorStateList
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.widget.RemoteViews
|
||||
|
@ -130,6 +131,7 @@ class WidgetConfigureActivity : SimpleActivity() {
|
|||
mBgColor = mBgColorWithoutTransparency.adjustAlpha(mBgAlpha)
|
||||
config_player.widget_background.applyColorFilter(mBgColor)
|
||||
config_bg_color.setFillWithStroke(mBgColor, mBgColor)
|
||||
config_save.backgroundTintList = ColorStateList.valueOf(getProperPrimaryColor())
|
||||
}
|
||||
|
||||
private fun updateTextColor() {
|
||||
|
@ -137,6 +139,7 @@ class WidgetConfigureActivity : SimpleActivity() {
|
|||
|
||||
song_info_title.setTextColor(mTextColor)
|
||||
song_info_artist.setTextColor(mTextColor)
|
||||
config_save.setTextColor(getProperPrimaryColor().getContrastColor())
|
||||
|
||||
previous_btn.drawable.applyColorFilter(mTextColor)
|
||||
play_pause_btn.drawable.applyColorFilter(mTextColor)
|
||||
|
|
Loading…
Reference in a new issue