By registering with us, you'll be able to discuss, share and private message with other members of our community.
Sign up now!By "Create our own" I meant create our own ThemeListener, not ThemesArbiter should know how complicated it would be to allow users to "install themes" because he designed the system to begin with. In regards to ThemeListener, if it's really wanted it would be easy to setup.
Your own listener is easy, just check if the string returned by Themes#getCurrentStylesheet() changes.By "Create our own" I meant create our own ThemeListener, not Themes
It would be appreciated, I'm currently detecting Theme changes a pretty horrible way xD
That's exactly what I'm doing at the moment xD Although I do it far too oftenYour own listener is easy, just check if the string returned by Themes#getCurrentStylesheet() changes.
Although that's doable, a proper event driven system would push the event when it changes and not have to worry about constantly checking the current return value.Your own listener is easy, just check if the string returned by Themes#getCurrentStylesheet() changes.
We use essential cookies to make this site work, and optional cookies to enhance your experience.