TranslateProject/sources/tech/20211113 How to Switch to Dark Mode in Fedora Linux -Beginner-s Tip.md
2021-11-15 08:44:52 +08:00

4.4 KiB
Raw Blame History

How to Switch to Dark Mode in Fedora Linux [Beginners Tip]

Unlike Ubuntu, Fedora offers the actual, vanilla GNOME experience. And that works pretty well. The horizontal layout, the three finger swipe, its all good.

The one thing I dont like is the default standard theme which is a mix of Adwaita Light (default) theme and the dark shell.

So, while the notifications and notification area are dark, rest of the system and applications have light theme. And quite honestly, it looks dull for my taste.

Fedora GNOME standard theme

On the other side, the dark theme makes it look better.

Fedora GNOME dark theme

Let me show you how to turn the dark mode on in Fedora or any other distribution that uses GNOME desktop environment.

Switch to dark mode in Fedora

Alright! Ill share the command line method because it is quicker. Open a terminal and use this command:


    gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark

Thats it. It was easy, right? But Ill also show the GUI method.

Since I use Ubuntu primarily, my reference point is always Ubuntu. Ubuntu provides the option to switch between the light and dark theme in the system settings itself.

However, there is no such settings in the vanilla GNOME. Youll have to install GNOME Tweaks tool on Fedora first and then use it to switch themes.

You could either search for it in the software center and click the Install button:

Install GNOME Tweaks from the software center in Fedora

Or, you type the following command in the terminal:


    sudo dnf install gnome-tweaks

Once installed, search for it in the system menu by pressing the super key (Windows key):

Start GNOME Tweaks

Click on the Appearance tab in the left sidebar and click on the Applications under the Themes section.

Changing theme in Fedora

Youll see a few available themes here. You should select Adwaita-dark here. As soon as you select it, the application will switch to dark theme.

Selecting the Adwaita-dark theme

And thats all you need to do to switch to dark mode in Fedora. Since the GNOME Shell is already using dark theme, you dont need to explicitly set it to dark mode. All the notifications, message tray etc. are in dark mode always.

Conclusion

You can find various dark GTK themes and install them to give your Fedora a different dark look. However, I have noticed that it is only the systems own dark theme that is recognized by web browsers.

So, if you visit a website that automatically enables dark mode based on your system theme, it will work with Adwaita-dark but may not work with other dark GTK themes.

Thats one sure shot advantage of using dark theme provided by the system.

As you can see, its not a rocket science to enable dark mode in Fedora. Its just a matter of knowing and finding things.

Enjoy the dark colors!


via: https://itsfoss.com/fedora-dark-mode/

作者:Abhishek Prakash 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出