+ Reply to Thread
Results 1 to 6 of 6

Thread: How to completely disable dark mode in general rainbow

  1. #1
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    248

    How to completely disable dark mode in general rainbow

    Hello,

    How do I completely disable dark mode in general_rainbow? Light mode by default, and remove the mode icon. I check the setting.tpl in the template folder and set dark_mode as false but some colors are off, not the same as light mode, and the icon still there

    Thanks

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    It's enough to hide the icon because complete disabling dark mode will require making many changes

    go to templates > tpl > user_navbar.tpl > comment out this code block:

    Code:
    Only registered members can view the code.

  3. #3
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    248
    Quote Originally Posted by Rudi View Post
    Hello,

    It's enough to hide the icon because complete disabling dark mode will require making many changes

    go to templates > tpl > user_navbar.tpl > comment out this code block:

    Code:
    Only registered members can view the code.
    Thanks Rudi,

    But I noticed that the theme goes dark mode by default, I think because the browser choose it as its default dark mode on both my browser and my os setting. Is there anyway we can toggle this to light mode.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Actualy, it's light by defaut

    you need to clear your browser cookie to make it "light"

  5. #5
    Master
    Join Date
    Apr 2021
    Location
    USA
    Posts
    248
    Quote Originally Posted by Rudi View Post
    Actualy, it's light by defaut

    you need to clear your browser cookie to make it "light"
    Hi Rudi,

    I did clear cache and checked. Turned out the default will be determined by browser setting. I tried Opera and Safari, and set these browser theme as dark. After clear cache and refresh the general rainbow theme will show according to browser theme. I guess your browser theme was light that's why after refresh you see light rainbow, in my case I have my browser theme as dark, so as default it will show me dark general rainbow.

    I wanna force light rainbow no matter what theme of the user browser.

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Try to remove this code from templates > js > lib.js > this.themeSwitcher:

    Code:
    Only registered members can view the code.

+ Reply to Thread