Latest topics
» Dark Mode + Another Question
by Wolfuryo Today at 09:58

» make the topic a color
by Wolfuryo Today at 09:52

» Recent Topic with Avatar problem
by Wolfuryo Today at 09:44

» Forum text has changed to bold
by tillytiger99 Today at 05:02

» Request a Username Change
by mr.blake214 Today at 01:30

» Display a preview of the user profile on hover
by HoeGy48 Yesterday at 16:51

» Hai Guys~
by mr.blake214 Yesterday at 13:48

» Forumactif Messenger - Instant Message Application for Forumotion
by DDril Yesterday at 10:25

» Donation Box
by Ange Tuteur Yesterday at 09:59

» Custom Award Problem (Profile Field)
by Ange Tuteur Yesterday at 09:39

» IconSkouliki
by skouliki Mon 14 Aug 2017, 13:01

» Category Tabs
by SLGray Sat 12 Aug 2017, 22:45

» Forum Titles not in line
by Wolfuryo Fri 11 Aug 2017, 12:55

» Notifications not showing
by tillytiger99 Thu 10 Aug 2017, 04:14

» option download with image resizer
by Ange Tuteur Wed 09 Aug 2017, 10:42

Recent Tutorials
Who is online?
In total there are 7 users online :: 1 Registered, 0 Hidden and 6 Guests :: 1 Bot

Wolfuryo

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Dark Mode

View previous topic View next topic Go down

avatar
Joost
Member
Title :
Gender : Male
Age : 25
Posts : 16
Points : 538
Reputation : 4
Location : The Netherlands
Language : Dutch
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostJoost on Tue 27 Jun 2017, 12:58

Hello,


How do I turn off the Dark Mode? Rolling Eyes
Thank you for your help.

Regards, Joost


Last edited by Joost on Tue 27 Jun 2017, 14:20; edited 1 time in total
avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 20
Posts : 3621
Points : 4643
Reputation : 350
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/https://twitter.com/Valoishx3

PostValoish on Tue 27 Jun 2017, 13:24

@Joost if you wanna remove dark mode completely try finding the coding Ange posted here and removing it o;

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS
avatar
Wolfuryo

Gender : Male
Posts : 217
Points : 1103
Reputation : 72
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostWolfuryo on Tue 27 Jun 2017, 14:13

Hi,

In the ALL.JS file(in the javascript management part of the ACP), look for this code and remove it:
Code:
(function() {
  window.fae_lightSwitchMode = my_getcookie('fae_light-switch-mode') || 'dark';

  document.write('<style type="text/css">#fae_light-switch-container{margin:6px 0}#fae_light-switch-label{font-weight:700;vertical-align:middle}#fae_light-switch{background-color:rgba(0,0,0,.25);vertical-align:middle;display:inline-block;position:relative;height:26px;width:56px;border-radius:20px;cursor:pointer;overflow:hidden}#fae_light-switch>input{display:none}#fae_light-switch>div{background-color:rgba(255,255,255,.5);position:absolute;top:3px;left:3px;height:20px;width:20px;border-radius:20px;transition:.4s;font-size:13px;font-weight:700;line-height:22px}#fae_light-switch>div:before{content:"ON";margin-left:-24px;color:transparent;transition:.4s}#fae_light-switch>div:after{content:"OFF";margin-left:30px;color:rgba(255,255,255,.5);transition:.4s}#fae_light-switch>input:checked+div{background-color:#FFF;left:33px}#fae_light-switch>input:checked+div:before{color:#FFF}#fae_light-switch>input:checked+div:after{color:transparent}</style>');

  var footer = '.footer-links.left',

      cookie = my_getcookie('fae_light-switch'),
      rgb,
      button,
      container,

      changeTheme = function (cookie) {
        var button = document.querySelector('#fae_light-switch input');

        if ((button && button.checked) || cookie == 'on') {
          my_setcookie('fae_light-switch', 'on', true);

          if (window.sessionStorage && window.sessionStorage.faeLightSwitch) {
            $('head').append('<style type="text/css" id="fae_light-switch-css">' + window.sessionStorage.faeLightSwitch + '</style>');
          } else {
            $.get('https://raw.githubusercontent.com/SethClydesdale/forumactif-edge/master/css/dark-mode/' + fae_lightSwitchMode + '-mode.min.css', function (d) {
              $('head').append('<style type="text/css" id="fae_light-switch-css">' + d + '</style>');

              if (window.sessionStorage) {
                window.sessionStorage.faeLightSwitch = d;
              }
            });
          }

        } else {
          var css = document.getElementById('fae_light-switch-css');

          my_setcookie('fae_light-switch', 'off', true);

          if (css) {
            document.head.removeChild(css);
          }
        }
      };

  cookie && changeTheme(cookie);

  $(function() {
    if (!my_getcookie('fae_light-switch-mode')) {
      rgb = window.getComputedStyle(document.body, null).getPropertyValue('background-color').replace(/rgb\(|\)|\s/g, '').split(',');
      fae_lightSwitchMode = Math.round(((parseInt(rgb[0]) * 299) + (parseInt(rgb[1]) * 587) + (parseInt(rgb[2]) * 114)) /1000) > 125 ? 'dark' : 'light';

      my_setcookie('fae_light-switch-mode', fae_lightSwitchMode, true);
    }

    footer = document.querySelector(footer);

    if (footer) {
      button = document.createElement('LABEL');
      button.id = 'fae_light-switch';
      button.innerHTML = '<input type="checkbox" ' + (cookie == 'on' ? 'checked="true"' : '') + '/><div></div>';
      button.firstChild.onchange = changeTheme;

      container = document.createElement('DIV');
      container.id = 'fae_light-switch-container';
      container.innerHTML = '<span id="fae_light-switch-label">' + (fae_lightSwitchMode == 'dark' ? 'Dark Mode : ' : 'Light Mode : ') + '</span>';

      container.appendChild(button);
      footer.appendChild(container);
    }
  });
}());

avatar
Joost
Member
Title :
Gender : Male
Age : 25
Posts : 16
Points : 538
Reputation : 4
Location : The Netherlands
Language : Dutch
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostJoost on Tue 27 Jun 2017, 14:20

Thanks, it's solved now.
avatar
Wolfuryo

Gender : Male
Posts : 217
Points : 1103
Reputation : 72
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostWolfuryo on Tue 27 Jun 2017, 14:40

You're welcomed
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9682
Reputation : 2330
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 28 Jun 2017, 10:22

Thanks for the help guys. Very good

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum