These are chat archives for chandu0101/scalajs-react-components

20th
Jun 2015
Zach Langbert
@zlangbert
Jun 20 2015 03:08
Anyone having any luck changing theme colors?
Chandra Sekhar Kode
@chandu0101
Jun 20 2015 03:09
i didn’t tried that , have u looked this already ?
Zach Langbert
@zlangbert
Jun 20 2015 03:09
Yeah that's what I've been reading. I'm calling setPalette but it doesn't seem to do anything
Also looks like I should be able to mui.Styles.ThemeManager().setTheme(mui.Styles.ThemeManager().types.DARK) but that also doesn't do anything
Chandra Sekhar Kode
@chandu0101
Jun 20 2015 03:22
did you inspected react component context values in debug ?
use chrome React addon
Zach Langbert
@zlangbert
Jun 20 2015 03:29
I think it's something with setPalette becuase after I call that and then get the current theme, it hasn't changed
Chandra Sekhar Kode
@chandu0101
Jun 20 2015 03:44
i’ll give a shot this evening (in my time) .
Chandra Sekhar Kode
@chandu0101
Jun 20 2015 07:27
@zlangbert it looks we must reuse ThemeManager
get latest code
materialui.ThemeManager.setPalette(json(primary1Color = “red”))
it should work :)
Zach Langbert
@zlangbert
Jun 20 2015 13:39
@chandu0101 Nice! Works great now