tweaked appearance, snackbar opt-in, color blue changed, fixed API19-

remotes/origin/devel
yattoz 2020-01-12 12:42:54 +01:00
parent 1488d51388
commit 45ffa56fa9
4 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,7 @@ class CustomizeFragment : PreferenceFragmentCompat() {
val snackbarPersistent = preferenceScreen.findPreference<SwitchPreferenceCompat>("snackbarPersistent") val snackbarPersistent = preferenceScreen.findPreference<SwitchPreferenceCompat>("snackbarPersistent")
snackbarPersistent!!.summary = if (preferenceStore.getBoolean("snackbarPersistent", true)) snackbarPersistent!!.summary = if (preferenceStore.getBoolean("snackbarPersistent", false))
getString(R.string.snackbarPersistent) getString(R.string.snackbarPersistent)
else else
getString(R.string.snackbarNonPersistent) getString(R.string.snackbarNonPersistent)

View File

@ -190,7 +190,7 @@ class NowPlayingFragment : Fragment() {
val clipboard = context!!.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager val clipboard = context!!.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val clip = android.content.ClipData.newPlainText("Copied Text", text) val clip = android.content.ClipData.newPlainText("Copied Text", text)
clipboard.setPrimaryClip(clip) clipboard.setPrimaryClip(clip)
val snackBarLength = if (preferenceStore.getBoolean("snackbarPersistent", true)) val snackBarLength = if (preferenceStore.getBoolean("snackbarPersistent", false))
Snackbar.LENGTH_INDEFINITE Snackbar.LENGTH_INDEFINITE
else Snackbar.LENGTH_LONG else Snackbar.LENGTH_LONG
val snackBar = Snackbar.make(it, "", snackBarLength) val snackBar = Snackbar.make(it, "", snackBarLength)

View File

@ -195,7 +195,7 @@
android:id="@+id/text_song_artist_next" android:id="@+id/text_song_artist_next"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="bottom" android:gravity="bottom|center_horizontal"
android:text="" android:text=""
android:textAlignment="center" android:textAlignment="center"
android:textColor="@color/whited3" android:textColor="@color/whited3"
@ -208,7 +208,7 @@
android:id="@+id/text_song_title_next" android:id="@+id/text_song_title_next"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="bottom" android:gravity="bottom|center_horizontal"
android:text="" android:text=""
android:textAlignment="center" android:textAlignment="center"
android:textColor="@color/whited" android:textColor="@color/whited"
@ -264,7 +264,7 @@
android:id="@+id/text_song_title" android:id="@+id/text_song_title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="bottom" android:gravity="bottom|center_horizontal"
android:text="" android:text=""
android:textAlignment="center" android:textAlignment="center"
android:textColor="@color/whited" android:textColor="@color/whited"
@ -276,7 +276,7 @@
android:id="@+id/text_song_artist" android:id="@+id/text_song_artist"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="bottom" android:gravity="bottom|center_horizontal"
android:text="" android:text=""
android:textAlignment="center" android:textAlignment="center"
android:textColor="@color/whited3" android:textColor="@color/whited3"

View File

@ -11,7 +11,7 @@
<color name="whited3">#999999</color> <color name="whited3">#999999</color>
<color name="whited4">#999999</color> <color name="whited4">#999999</color>
<color name="whited5">#7F7F7F</color> <color name="whited5">#7F7F7F</color>
<color name="rblue">#4FC3F7</color> <color name="rblue">#3A7AAF</color>
<color name="bluereq">#527a8e</color> <color name="bluereq">#527a8e</color>
<color name="blueTitle">#527a8e</color> <color name="blueTitle">#527a8e</color>
<color name="reqButtonPressed">#5cb85c</color> <color name="reqButtonPressed">#5cb85c</color>
@ -20,10 +20,10 @@
<color name="seek_bar_background">#585858</color> <color name="seek_bar_background">#585858</color>
<color name="seek_bar_progress">#f58b01</color> <color name="seek_bar_progress">#f58b01</color>
<color name="seek_bar_secondary_progress">#4FC3F7</color> <color name="seek_bar_secondary_progress">#3A7AAF</color>
<color name="progress_bar_background">#585858</color> <color name="progress_bar_background">#585858</color>
<color name="progress_bar_progress">#4FC3F7</color> <color name="progress_bar_progress">#3A7AAF</color>
<color name="progress_bar_secondary_progress">#f58b01</color> <color name="progress_bar_secondary_progress">#f58b01</color>
<color name="white">#FFFFFF</color> <color name="white">#FFFFFF</color>