Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

ThemeListener or the access to create our own

Engineer
Joined
Jul 28, 2013
Messages
2,776
Arbiter 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.
 
Joined
Dec 10, 2014
Messages
3,339
Arbiter 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.
By "Create our own" I meant create our own ThemeListener, not Themes :p

It would be appreciated, I'm currently detecting Theme changes a pretty horrible way xD
 
Joined
Nov 3, 2013
Messages
609
By "Create our own" I meant create our own ThemeListener, not Themes :p

It would be appreciated, I'm currently detecting Theme changes a pretty horrible way xD
Your own listener is easy, just check if the string returned by Themes#getCurrentStylesheet() changes.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Your 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.
 
First Bot Author
Joined
Aug 7, 2013
Messages
262
Not to mention it's probably very easy to locally inject new themes... but I'm gonna crawl back in my corner now :p
 
Top