Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default theme isn't picked up correctly from config.json #5623

Closed
ara4n opened this issue Nov 16, 2017 · 13 comments
Closed

Default theme isn't picked up correctly from config.json #5623

ara4n opened this issue Nov 16, 2017 · 13 comments
Labels

Comments

@ara4n
Copy link
Member

ara4n commented Nov 16, 2017

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').
@ara4n
Copy link
Member Author

ara4n commented Nov 16, 2017

screen shot 2017-11-16 at 16 47 36

@turt2live
Copy link
Member

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, #5630 fixes this by loading the config fully ahead of asking for the theme.

@turt2live
Copy link
Member

@ara4n this should be fixed now

@uhoreg
Copy link
Member

uhoreg commented Dec 15, 2017

closing because @turt2live says it's fixed ;)

@uhoreg uhoreg closed this as completed Dec 15, 2017
@ara4n
Copy link
Member Author

ara4n commented Dec 15, 2017

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

@ara4n ara4n reopened this Dec 15, 2017
@turt2live
Copy link
Member

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

@uhoreg
Copy link
Member

uhoreg commented Dec 15, 2017

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

@skylord123
Copy link

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

@turt2live
Copy link
Member

@skylord123 what are you seeing instead?

@skylord123
Copy link

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

@turt2live
Copy link
Member

@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.

@skylord123
Copy link

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

@ara4n
Copy link
Member Author

ara4n commented Jul 20, 2021

i just tested this (setting "default_theme": "dark" and it worked.

@ara4n ara4n closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants