style: improve black theme colors
Improve the black theme selection color by merging it with the dark theme selection coler. This makes the selection color both more noticable and reduces the style complexity that came from having to manage two different selection colors.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.oxycblt.auxio.settings.ui
|
||||
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import org.oxycblt.auxio.R
|
||||
|
||||
class IntListPrefDialog(private val pref: IntListPreference) : LifecycleDialog() {
|
||||
override fun onConfigDialog(builder: AlertDialog.Builder) {
|
||||
|
||||
@@ -10,7 +10,6 @@ import androidx.fragment.app.DialogFragment
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import org.oxycblt.auxio.R
|
||||
import org.oxycblt.auxio.ui.resolveAttr
|
||||
import org.oxycblt.auxio.ui.toDrawable
|
||||
|
||||
/**
|
||||
* A wrapper around [DialogFragment] that allows the usage of the standard Auxio lifecycle
|
||||
|
||||
@@ -129,6 +129,7 @@ fun @receiver:DrawableRes Int.toAnimDrawable(context: Context) =
|
||||
/**
|
||||
* Resolve this int into a color as if it was an attribute
|
||||
*/
|
||||
@ColorInt
|
||||
fun @receiver:AttrRes Int.resolveAttr(context: Context): Int {
|
||||
// Convert the attribute into its color
|
||||
val resolvedAttr = TypedValue()
|
||||
|
||||
Reference in New Issue
Block a user