You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to sdk-react version 3.0.10, I encountered an issue where the theme parameter:
var(--tg-theme-secondary-bg-colour)
or
themeParams.secondaryBackgroundColour()
does not work correctly on Android. Instead of applying the expected colour, it defaults to black/white depending on the Telegram theme. This problem is not present on a PC with telegram-desktop, where the colours work as expected. Rolling back to sdk-react version 2.x.x solves the problem.
Environment:
SDK Version: 3.0.10
Platform: Android 15
Telegram Version: 11.7.0
Rolling back to sdk-react version 2.x.x fixes the issue.
The problem seems specific to Android, as it works fine on telegram-desktop.
Telegram Application
Telegram for Android
Describe the Bug
After upgrading to sdk-react version 3.0.10, I encountered an issue where the theme parameter:
var(--tg-theme-secondary-bg-colour)
or
themeParams.secondaryBackgroundColour()
does not work correctly on Android. Instead of applying the expected colour, it defaults to black/white depending on the Telegram theme. This problem is not present on a PC with telegram-desktop, where the colours work as expected. Rolling back to sdk-react version 2.x.x solves the problem.
Environment:
Rolling back to sdk-react version 2.x.x fixes the issue.
The problem seems specific to Android, as it works fine on telegram-desktop.
in debug mode on android:
Relevant init Code Snippet:
To Reproduce
Expected Behavior
themeParams.secondaryBackgroundColour()
orvar(--tg-theme-secondary-bg-colour)
should return the correct color.The text was updated successfully, but these errors were encountered: