Fixing GTK Dark Themes on Firefox

The world is a comedy to those that think; a tragedy to those that feel.

— Horace Walpole.

If your using Linux and run Firefox1. One thing you will notice on Firefox when on a dark themed GTK2 based environment in Linux is the HTML content would adapt to the theme color.

And for some reason I don’t know why Firefox still doesn’t fix this stuff. Here is the link related to the issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1527048

UPDATE: Seems this problem has been fixed in Version 67 of Firefox.

Here is the workaround for it:

  1. Open about:config inside Firefox. You should type this in the URL bar.
  2. Right click on the content and click New > String with key widget.content.gtk-theme-override and value Arc-Darker.
  3. Restart Firefox.

The steps above would set Firefox content to adapt to white based theme while retaining chroma theme dark. You could also use Adwaita as value.

So guys, have you ever encountered this bug specifically in Gnome 3 while using Firefox? Hope you guys enjoyed this article and as always live life!


  1. Mozilla Firefox, or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, Mozilla Corporation. Firefox uses the Gecko layout engine to render web pages, which implements current and anticipated web standards. ↩︎
  2. GTK is a free and open-source cross-platform widget toolkit for creating graphical user interfaces. It is licensed under the terms of the GNU Lesser General Public License, allowing both free and proprietary software to use it. ↩︎

Posted

in

by

  • Let’s Explore!

    It’s 04:03am Tuesday, and I’m starting this blog. There are a lot of things currently bothering my mind, and sometimes I’m thinking of what the future will look like. Waiting till 10:00 to get onto my work and start doing some stuff. Let’s find some beautiful place and get lost. – Me I’ve been a… Read More

  • Installing MySQL2 Ruby Gem in macOS Mojave

    Installing MySQL2 gem became a common problem for people who uses macOS to develop Ruby1 based apps that utilized MySQL2 data store. I’ve personally encountered this problem myself back in the days and still encountering this on brand new setup macOS workstation. In this article, we will go through the steps I did to resolved… Read More

  • Changing Xserver Default Applications Using XDG Tools

    XDG (freedesktop.org) which stands for X Desktop Group is a group which develop the X11 and xdg utilities which currently runs as barebones of linux desktop. So how do we change the defaults when opening a file on XServer? Be free, and live life fully. — Caroline Shaw. So how do we configure XDG? Tools… Read More