I can't change the Telegram Mini App Background Color. #425
-
Now I am building a telegram mini app using @telegram-apps/sdk-react library. And I have a problem with telegram mini app background. By default, the background color is white. Now I want to change it to something else(for example, black). I tried to use miniApp api, but it doesn't work. This is the code snippet.
Please help me to fix this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Mini Apps 6.9 supports specifying a specific color. Passed color key ( miniApp.setHeaderColor('#ffffff'); |
Beta Was this translation helpful? Give feedback.
-
You can change style of mainLayout. |
Beta Was this translation helpful? Give feedback.
Mini Apps 6.9 supports specifying a specific color. Passed color key (
bg_color
orsecondary_bg_color
) refers to a theme palette color, not the actual value in theminiApp
instance.