Restored pin icon color for material style (#196)

* Pin icon uses accent color for both styles
This commit is contained in:
BlackyHawky 2023-10-17 12:23:24 +02:00 committed by GitHub
parent 4baca025f9
commit a5fde31ca2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -68,7 +68,7 @@ class ClipboardAdapter(
}
clipboardLayoutParams.setItemProperties(view)
val colors = Settings.getInstance().current.mColors
pinnedIconView.colorFilter = colors.clipboardPinFilter
pinnedIconView.colorFilter = colors.accentColorFilter
}
fun setContent(historyEntry: ClipboardHistoryEntry?) {

View file

@ -56,8 +56,6 @@ class Colors (
val accentColorFilter: ColorFilter
/** color filter for the white action key icons in material theme, switches to gray if necessary for contrast */
val actionKeyIconColorFilter: ColorFilter?
/** color filter for the clipboard pin, used only in holo theme */
val clipboardPinFilter: ColorFilter?
private val backgroundStateList: ColorStateList
private val keyStateList: ColorStateList
@ -77,12 +75,10 @@ class Colors (
navBar = darkerBackground
keyboardBackground = GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, intArrayOf(background, darkerBackground))
spaceBarText = keyText
clipboardPinFilter = accentColorFilter
} else {
navBar = background
keyboardBackground = null
spaceBarText = keyHintText
clipboardPinFilter = null
}
// create color filters, todo: maybe better / simplify