Element-web: Default theme isn't picked up correctly from config.json

Created on 16 Nov 2017  路  12Comments  路  Source: vector-im/element-web

Repro steps:

  • Set default theme to 'status' in config.json
  • Load login page
  • See a weird hybrid 'light' theme CSS mixed with the HTML from the status theme (implying that LoginPage.js is seeing the theme correctly as 'status').
bug cosmetic theming

Most helpful comment

well, that'll teach me to trust @turt2live when he says he's fixed something 馃槢

All 12 comments

screen shot 2017-11-16 at 16 47 36

This was caused by the index.js not checking the config.json value at all (in fact, the config wasn't even loaded fully at the time of the check), but MatrixChat found a different value for the theme. This meant that the basic login components got light, but the rest of the UI got status.

In other words, https://github.com/vector-im/riot-web/pull/5630 fixes this by loading the config fully ahead of asking for the theme.

@ara4n this should be fixed now

closing because @turt2live says it's fixed ;)

i'm not entirely sure that it is fixed tbh - @lampholder was saying that we now pick themes at random at startup...

That sounds bad... Is there any more information I can get?

well, that'll teach me to trust @turt2live when he says he's fixed something 馃槢

I'm trying to use this to set the dark theme as the default. This does not work.

@skylord123 what are you seeing instead?

@turt2live uses the light theme instead: https://chat.skylar.tech

@skylord123 that looks like a different bug that hasn't been reported yet. At first glance, your Riot setup looks correct for what you're trying to achieve. Are you able to open a new issue? Including a copy of your config.json in the issue would be appreciated.

Yes I will open a new issue. Thanks for clarifying :)

Was this page helpful?
0 / 5 - 0 ratings