1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ThemeListener or the access to create our own

Discussion in 'Client & Site Suggestions' started by SlashnHax, Apr 22, 2015.

  1. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    This would be pretty awesome and useful for a few UI related things :)

    Arbiter says he's fine with ColorPalette being exposed too.

    Pls :D
    @Cloud, @Arbiter
     
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    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.
     
  3. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    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
     
  4. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    Your own listener is easy, just check if the string returned by Themes#getCurrentStylesheet() changes.
     
  5. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    That's exactly what I'm doing at the moment xD Although I do it far too often
     
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    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.
     
    Defeat3d likes this.
  7. Salvation

    Salvation First Bot Author

    Joined:
    Aug 7, 2013
    Messages:
    262
    Likes Received:
    68
    Not to mention it's probably very easy to locally inject new themes... but I'm gonna crawl back in my corner now :p
     
  8. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    It's available in the next release :p
     
    Defeat3d likes this.

Share This Page

Loading...