mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix color selection
This commit is contained in:
@@ -28,6 +28,7 @@ import android.view.ViewGroup
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import androidx.annotation.ColorInt
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.recyclerview.widget.SortedList
|
||||
import androidx.recyclerview.widget.SortedListAdapterCallback
|
||||
@@ -100,9 +101,7 @@ class NodeAdapter (private val context: Context)
|
||||
this.mDatabase = Database.getInstance()
|
||||
|
||||
// Color of content selection
|
||||
val taContentSelectionColor = context.theme.obtainStyledAttributes(intArrayOf(R.attr.textColorInverse))
|
||||
this.mContentSelectionColor = taContentSelectionColor.getColor(0, Color.WHITE)
|
||||
taContentSelectionColor.recycle()
|
||||
this.mContentSelectionColor = ContextCompat.getColor(context, R.color.colorTextInverse)
|
||||
// Retrieve the color to tint the icon
|
||||
val taTextColorPrimary = context.theme.obtainStyledAttributes(intArrayOf(android.R.attr.textColorPrimary))
|
||||
this.mIconGroupColor = taTextColorPrimary.getColor(0, Color.BLACK)
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
tools:targetApi="lollipop"
|
||||
android:elevation="4dp"
|
||||
android:src="@drawable/ic_lock_white_24dp"
|
||||
android:tint="@color/white"
|
||||
android:tint="@color/colorTextInverse"
|
||||
android:layout_gravity="bottom|start"
|
||||
android:contentDescription="@string/menu_lock" />
|
||||
</FrameLayout>
|
||||
@@ -379,7 +379,7 @@
|
||||
</style>
|
||||
<style name="KeepassDXStyle.Special.Button.Stroke" parent="KeepassDXStyle.v21.Button">
|
||||
<item name="android:background">@drawable/btn_special_start_bottom_stroke</item>
|
||||
<item name="backgroundTint">@color/white</item>
|
||||
<item name="backgroundTint">@color/colorTextInverse</item>
|
||||
<item name="backgroundTintMode">src_atop</item>
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user