mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-20 08:50:25 +00:00
Fix buttons colour in one-handed mode (#72)
This commit is contained in:
parent
d480a6321f
commit
5008345e05
1 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@ import android.widget.FrameLayout
|
|||
import android.widget.ImageButton
|
||||
import org.dslul.openboard.inputmethod.keyboard.KeyboardActionListener
|
||||
import org.dslul.openboard.inputmethod.latin.common.Constants
|
||||
import org.dslul.openboard.inputmethod.latin.settings.Settings
|
||||
|
||||
class KeyboardWrapperView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
|
@ -51,6 +52,12 @@ class KeyboardWrapperView @JvmOverloads constructor(
|
|||
|
||||
stopOneHandedModeBtn.setOnClickListener(this)
|
||||
switchOneHandedModeBtn.setOnClickListener(this)
|
||||
|
||||
val colors = Settings.getInstance().current.mColors
|
||||
if (colors.isCustom) {
|
||||
stopOneHandedModeBtn.colorFilter = colors.keyTextFilter
|
||||
switchOneHandedModeBtn.colorFilter = colors.keyTextFilter
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("RtlHardcoded")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue