Merge pull request #23849 from geekpi/translating

translated
This commit is contained in:
geekpi 2021-11-17 08:54:22 +08:00 committed by GitHub
commit 0b0cae66a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 100 additions and 100 deletions

View File

@ -1,100 +0,0 @@
[#]: subject: "How to Switch to Dark Mode in Fedora Linux [Beginners Tip]"
[#]: via: "https://itsfoss.com/fedora-dark-mode/"
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
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][1]
On the other side, the dark theme makes it look better.
![Fedora GNOME dark theme][2]
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][3] 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][4]
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][5]
Click on the **Appearance** tab in the left sidebar and click on the Applications under the Themes section.
![Changing theme in Fedora][6]
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][7]
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][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/fedora-gnome-standard-theme.webp?resize=800%2C450&ssl=1
[2]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/fedora-gnome-dark-theme.webp?resize=800%2C450&ssl=1
[3]: https://itsfoss.com/install-gnome-tweaks-fedora/
[4]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/11/install-gnome-tweaks-fedora.webp?resize=800%2C448&ssl=1
[5]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/start-gnome-tweaks-tool-in-Fedora.png?resize=800%2C271&ssl=1
[6]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/change-GTK-theme-Fedora.webp?resize=800%2C532&ssl=1
[7]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/switching-dark-mode-fedora.png?resize=800%2C515&ssl=1

View File

@ -0,0 +1,100 @@
[#]: subject: "How to Switch to Dark Mode in Fedora Linux [Beginners Tip]"
[#]: via: "https://itsfoss.com/fedora-dark-mode/"
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
如何在 Fedora Linux 中切换到深色模式(初学者技巧)
======
与 Ubuntu 不同Fedora 提供的是真正的、原生般的 GNOME 体验。而且效果很好。横向布局,三指滑动,这一切都很好。
我不喜欢的一点是默认的标准主题,它是 Adwaita Light默认主题和深色 shell 的混合。
因此,虽然通知和通知区是深色的,但系统和应用的其他部分是浅色主题。老实说,对我来说,这看起来很沉闷。
![Fedora GNOME standard theme][1]
另一方面,深色主题让它看起来更好。
![Fedora GNOME dark theme][2]
让我告诉你如何在 Fedora 或其他任何使用 GNOME 桌面环境的发行版中开启深色模式。
### 在 Fedora 中切换到深色模式
好了!我将分享命令行的方法,因为它更快。打开一个终端,使用这个命令:
```
gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark
```
完成了。这很容易,对吗?但我也要展示一下 GUI 的方法。
因为我主要使用 Ubuntu所以我始终参照 Ubuntu。Ubuntu 在系统设置中本身就提供了在浅色和深色主题之间切换的选项。
然而,在原生 GNOME 中却没有这样的设置。你必须先[在 Fedora 上安装 GNOME Tweaks 工具][3],然后用它来切换主题。
你可以在软件中心搜索它并点击“安装”按钮:
![Install GNOME Tweaks from the software center in Fedora][4]
或者,你在终端输入以下命令:
```
sudo dnf install gnome-tweaks
```
安装完成后按超级键Windows 键)在系统菜单中搜索它:
![Start GNOME Tweaks][5]
点击左侧边栏的**外观**标签,点击主题部分下的应用。
![Changing theme in Fedora][6]
你会看到这里有几个可用的主题。你应该在这里选择 Adwaita-dark。当你选择了它应用就会切换到深色主题。
![Selecting the Adwaita-dark theme][7]
就是你在 Fedora 中切换到深色模式所需要做的一切。由于 GNOME Shell 已经在使用深色主题,你不需要明确地将它设置为深色模式。所有的通知、信息栏等都是在深色模式下的。
### 总结
你可以找到各种深色 GTK 主题并安装它们来给你的 Fedora 带来不同的深色外观。然而,我注意到,只有系统自己的深色主题才能被网络浏览器识别。
所以,如果你访问一个根据你的系统主题自动启用深色模式的网站,它将与 Adwaita-dark 兼容,但可能与其他深色 GTK 主题不兼容。
这就是使用系统提供的深色主题的一个肯定的优势。
如你所见,在 Fedora 中启用深色模式并不是什么火箭科学。它只是一个了解和发现的过程。
享受深色色彩吧!
--------------------------------------------------------------------------------
via: https://itsfoss.com/fedora-dark-mode/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/fedora-gnome-standard-theme.webp?resize=800%2C450&ssl=1
[2]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/fedora-gnome-dark-theme.webp?resize=800%2C450&ssl=1
[3]: https://itsfoss.com/install-gnome-tweaks-fedora/
[4]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/11/install-gnome-tweaks-fedora.webp?resize=800%2C448&ssl=1
[5]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/start-gnome-tweaks-tool-in-Fedora.png?resize=800%2C271&ssl=1
[6]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/change-GTK-theme-Fedora.webp?resize=800%2C532&ssl=1
[7]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/switching-dark-mode-fedora.png?resize=800%2C515&ssl=1