• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    enable-force-dark does not work

    General
    3
    6
    148
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cavvs
      cavvs last edited by

      How to reproduce the issue:

      1. Go to opera://flags/#enable-force-dark
      2. Choose any option to force enable dark pages and relaunch.
      3. It doesn’t work.

      I've attached the screenshots of opera browser, and also of chrome browser to compare.

      opera.png
      chrome.png

      Reply Quote 0
        leocg 1 Reply Last reply
      • leocg
        leocg Moderator Volunteer @cavvs last edited by

        @cavvs Opera One, Opera GX or Opera Air?

        Reply Quote 0
          cavvs 1 Reply Last reply
        • cavvs
          cavvs @leocg last edited by

          @leocg It's Opera One.
          Did I post the question in the wrong thread?

          Reply Quote 0
            leocg 1 Reply Last reply
          • leocg
            leocg Moderator Volunteer @cavvs last edited by

            @cavvs No

            Reply Quote 0
              1 Reply Last reply
            • Moved from Opera for Windows by  leocg leocg 
            • burnout426
              burnout426 Volunteer last edited by

              That flag is to control how dark mode behaves when you force dark mode for a page. It's not for enabling dark mode on its own.

              For example, goto https://example.com/, click the Easy Setup button and choose "Force dark mode on pages". Then, change the flag to "Enabled simple HSL" for example and restart Opera and see how the example.com page looks.

              If a page is in dark mode, you can right-click and disable dark mode for the page, which will add the site to the disabled list at the URL opera://settings/content/forceDarkMode.

              For the flag, the most common option (if someone decides they need it) is the selective inversion of non-image elements so dark mode doesn't turn images white for example.

              Reply Quote 0
                cavvs 1 Reply Last reply
              • cavvs
                cavvs @burnout426 last edited by

                @burnout426

                That flag is to control how dark mode behaves when you force dark mode for a page. It's not for enabling dark mode on its own.
                

                This is not the behaviour observed in Chrome (also Edge, I just tested it) for the #enable-force-dark option.

                Basically in Chrome or Edge, #enable-force-dark turns ALL WEBPAGES into dark mode regardless of whether they have a dark theme or not.

                Have you ever refreshed a website using dark mode and seen short-lived white flashes during when it loads up? That's the browser's default white background showing up while the rest of the web content is loading. And when I use the #enable-force-dark option in Chrome/Edge, that background is flipped to black and I don't get epilepsy when I visit webpages.

                Reply Quote 0
                  1 Reply Last reply
                • First post
                  Last post

                Computer browsers

                • Opera for Windows
                • Opera for Mac
                • Opera for Linux
                • Opera beta version
                • Opera USB

                Mobile browsers

                • Opera for Android
                • Opera Mini
                • Opera Touch
                • Opera for basic phones

                • Add-ons
                • Opera account
                • Wallpapers
                • Opera Ads

                • Help & support
                • Opera blogs
                • Opera forums
                • Dev.Opera

                • Security
                • Privacy
                • Cookies Policy
                • EULA
                • Terms of Service

                • About Opera
                • Press info
                • Jobs
                • Investors
                • Become a partner
                • Contact us

                Follow Opera

                • Opera - Facebook
                • Opera - Twitter
                • Opera - YouTube
                • Opera - LinkedIn
                • Opera - Instagram

                © Opera Software 1995-