openhab / openhab-android

openHAB client for Android
https://play.google.com/store/apps/details?id=org.openhab.habdroid
Eclipse Public License 2.0
600 stars 315 forks source link

White temporary placeholders used in dark mode #3768

Open dilyanpalauzov opened 3 months ago

dilyanpalauzov commented 3 months ago

I have OpenHAB-Android 3.14.7 in Dark mode. Some items in the sitemap have no icons. When I pull down to make explicit refresh, OH-Android shows white squares for those icons, probably until it fetches from the server information, that there are no icons. Eventually black (transparent) icons are put. The period, when there are white squares as placeholders is short (1s or so).

To be precise, this happens consistently for:

Text item=ri_power label="Помпа Петя" visibility=[ri_online==OPEN] valuecolor=[ri_color=="green"="green", ri_color=="lime"="lime", ri_color=="red"="red", ri_color=="maroon"="maroon"] { bound to Number:Power ri_power "Помпа Петя Мощност" (gReletaWatts, gPompaI) ["Power", "Measurement"] {channel="mqtt:topic:ri:ri_power", unit="VA"}

and others, but not for

Text item=CPU_Load5 bound to Number:Dimensionless CPU_Load5 "Натоварване" {channel="systeminfo:computer:rp3:cpu#load5"}

Aha, when the icon is explicitly <none> then this effect does not happen, but when there is implicitly no icon, then the effect happens.

When I load a chart, until the chart is loaded, white background is shown. Later the chart itself has black background. When waiting for the chart to load, the background from the allocated space should be black, not white.

dilyanpalauzov commented 3 months ago

Screenshot_20240720_092520