Upscale the d-pad arrows globally (#934)

This commit is contained in:
Devy Ballard 2024-06-30 00:35:12 -06:00 committed by GitHub
parent f7d82b9589
commit 57b99e27b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 75 additions and 45 deletions

View file

@ -24,11 +24,6 @@ fun createToolbarKey(context: Context, keyboardAttr: TypedArray, key: ToolbarKey
val contentDescriptionId = context.resources.getIdentifier(key.name.lowercase(), "string", context.packageName)
if (contentDescriptionId != 0)
button.contentDescription = context.getString(contentDescriptionId)
if (key == LEFT || key == RIGHT || key == UP || key == DOWN) {
// arrows look a little awkward when not scaled
button.scaleX = 1.2f
button.scaleY = 1.2f
}
button.isActivated = !when (key) {
INCOGNITO -> Settings.readAlwaysIncognitoMode(DeviceProtectedUtils.getSharedPreferences(context))
ONE_HANDED -> Settings.getInstance().current.mOneHandedModeEnabled