Android supports coloring the navigation bar in API 21+; most application developers color the navigation bar to match the app colors, leading to a very seamless experience. However, that is not the primary reason for this suggestion. The primary reason is that most Android devices utilize (AM)OLED screens these days, and a navigation bar that does not match the color of an application that is opened for long periods of time like Discord, will eventually lead to image retention and burn in.
Some OEMs like Samsung automatically color the navigation bar dark/light based on foreground app colors but Android proper (Pixel devices, Android One, *most* other devices) does not. As a result, Discord ends up with either an entirely white or entirely black navbar depending on device (usually black, but some Android ROMs like OxygenOS used in OnePlus devices have a default white navbar).
The all-black navbar (on Pixels and many other devices that don't use heavily modified Android frameworks) is of particular concern because on (AM)OLED screens, black is displayed by turning pixels off, so the screen will quickly wear unevenly regardless of if Discord is using dark/light theme, leaving noticable navbar retention very quickly, eventually causing permanent burn-in damage to the device.
Doing this programmatically is simplistic; a custom navbar color can be defined in styles.xml as simply as <item name="android:navigationBarColor">@color/theme_color</item> or window.setNavigationBarColor(@ColorInt int color)
Войдите в службу, чтобы оставить комментарий.