translated

This commit is contained in:
2022-04-12 10:42:14 +08:00 committed by GitHub
parent 7077bae140
commit 0e3994e6a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 123 additions and 125 deletions

View File

@ -1,125 +0,0 @@
[#]: subject: "Create Your Own Custom Light and Dark Wallpaper for GNOME"
[#]: via: "https://www.debugpoint.com/2022/04/custom-light-dark-wallpaper-gnome/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lujun9972"
[#]: translator: "robsean"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Create Your Own Custom Light and Dark Wallpaper for GNOME
======
AN EASY GUIDE ON HOW TO CREATE YOUR CUSTOM LIGHT AND DARK WALLPAPER
FOR the GNOME desktop.
the GNOME desktop.
[GNOME 42][1] brings the much-awaited light and dark theme to GNOME Desktop. It also brings the light and dark version of wallpaper, which automatically changes when you switch between light and dark themes.
So, by default, GNOME gives you a set of pre-configured light and dark wallpapers. But what if you want a different wallpaper that changes automatically when the theme changes?
Heres how to configure and create your own custom wallpaper for both light and dark themes in GNOME.
### How to create custom light and dark wallpaper for GNOME
Firstly, make sure you have two versions of wallpaper handy with you. In general, they should be standard PNG or JPG images. For example, we used below two wallpapers for this demo.
![Sample light and dark wallpaper for demo][2]
But if you do not have proper light and dark wallpaper and looking for more, I will let you know how to get them or prepare for your own at the end of this guide. Stay with me.
Second, we need to create a schema file for our own. The automatic changing of wallpaper is handled by an XML file called adwaita.xml, which defines specific light and dark backgrounds tags. So, we will create our XML file for the wallpapers.
To do that, copy the contents of adwaita.xml from GitLab, and create a new XML file (the link is down below). You should see two tags inside this file “filename” and “filename-dark”. These two XML tags contain the fully qualified path of both the wallpapers. Now, add the path to your images under these two tags, as I have shown below.
[Download the XML file from here (adwaita.xml.in)][3]
![Change the XML file][4]
Third, save this file to with any name you want. If the “gnome-background-properties” are not there, create it. For this example, I used my_cool_backgrounds.xml.
![Save the file][5]
And you are all set. Finally, open the settings and go to the Appearance tab, and you should see the new wallpapers are visible as an option.
[][6]
SEE ALSO:   New GNOME Text Editor - Everything You Need to Know
Select your own custom light and dark wallpaper and enjoy.
![Appearance tab has now your own custom light and dark wallpaper][7]
### How to download or make your own dynamic wallpaper
Definitely, you must think, who has the time to find and create both day and night versions of wallpaper? There are several websites that give you dynamic wallpapers ready-made that you can easily download and install.
One website I would recommend is [dynamicwallpaper.club][8] which has some excellent high-quality wallpapers up to 6K for macOS. And you can easily download them.
Additionally, if you plan to download from the above website, remember that the sites images are in [heic format][9] because the website is for macOS. The High-Efficiency Video Coding (HEIC) is Apples proprietary version of the HEIF or High-Efficiency Image File format.
So, how to convert them in Linux systems? Well, you need a driver to view and convert the dynamic heic images in Ubuntu or Fedora Linux. Open a terminal and run the below commands to install the driver.
users
```
sudo apt install heif-gdk-pixbuf
```
Fedora users
```
sudo dnf install libheif
```
(without this plugin, Plasma apps cant open heic images)
```
sudo apt install qt-heif-image-plugin
sudo dnf install qt-heif-image-plugin
```
Finally, open the heic image with your favourite image viewer and save it as JPG/PNG.
Last of all, dont forget to let me know down below in the comment section whether you are able to create your own custom dark and light wallpaper for GNOME.
![Custom Light and Dark wallpaper in GNOME transition][10]
Cheers.
* * *
We bring the latest tech, software news and stuff that matters. Stay in touch via [Telegram][11], [Twitter][12], [YouTube][13], and [Facebook][14] and never miss an update!
--------------------------------------------------------------------------------
via: https://www.debugpoint.com/2022/04/custom-light-dark-wallpaper-gnome/
作者:[Arindam][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://www.debugpoint.com/author/admin1/
[b]: https://github.com/lujun9972
[1]: https://www.debugpoint.com/2022/03/gnome-42-release/
[2]: https://www.debugpoint.com/wp-content/uploads/2022/04/Sample-light-and-dark-wallpaper-for-demo.jpg
[3]: https://gitlab.gnome.org/GNOME/gnome-backgrounds/-/tree/main/backgrounds
[4]: https://www.debugpoint.com/wp-content/uploads/2022/04/Change-the-XML-file-1024x568.jpg
[5]: https://www.debugpoint.com/wp-content/uploads/2022/04/Save-the-file-1024x548.jpg
[6]: https://www.debugpoint.com/2021/12/gnome-text-editor/
[7]: https://www.debugpoint.com/wp-content/uploads/2022/04/Apperance-tab-has-now-your-own-custom-light-and-dark-wallpaper-1024x657.jpg
[8]: https://dynamicwallpaper.club
[9]: https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
[10]: https://www.debugpoint.com/wp-content/uploads/2022/04/Custom-Light-and-Dark-wallpaper-in-GNOME-transition-1024x556.gif
[11]: https://t.me/debugpoint
[12]: https://twitter.com/DebugPoint
[13]: https://www.youtube.com/c/debugpoint?sub_confirmation=1
[14]: https://facebook.com/DebugPoint

View File

@ -0,0 +1,123 @@
[#]: subject: "Create Your Own Custom Light and Dark Wallpaper for GNOME"
[#]: via: "https://www.debugpoint.com/2022/04/custom-light-dark-wallpaper-gnome/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lujun9972"
[#]: translator: "robsean"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
创建你自己的自定义的 GNOME 的明暗壁纸
======
一份简单的指南 如何针对 GNOME 桌面环境来创建你的自定义明暗壁纸。
[GNOME 42][1] 将备受期待的明暗主题到 GNOME 桌面环境。它也带来壁纸的明暗版本,当你切换明暗主题时,它会自动地转换。
因此默认情况下GNOME 给予你一套预配置的明暗壁纸。但是如果你想要在主题更改时自动地转换成另一种不同的壁纸要怎么做呢?
这里是如何在 GNOME 中配置和创建你自己的明暗壁纸的方法。
### 如何针对 GNOME 桌面环境来创建自定义的明暗壁纸
第一,确保你手边有两个版本的壁纸。一般来说,它们应该是标准的 PNG 或 JPG 图像文件。例如,我们针对这个示例使用下面的两张壁纸。
![Sample light and dark wallpaper for demo][2]
但是,如果你没有合适的明暗壁纸,或者正在查找更多的壁纸,在这篇指南的结尾,我将让你知道如何获取它们,或者如何自己准备它们。请与我同行。
第二, 我们需要为我们自己创建一个 schema 文件。The automatic changing of wallpaper is handled by an XML file called adwaita.xml, 它定义了特殊的明暗背景标记。因此,我们将为壁纸创建我们自己的 XML 文件。
为做到这一点,从 GitLab 复制 adwaita.xml 的内容,并创建一个新的 XML 文件 (链接在下面)。你能够会在这个文件中看到两个标记 “filename” 和 “filename-dark”。这两个 XML 标记包含这两个壁纸的完整的限定的路径。现在,在这两个标记下添加你的图像文件的路径,如我下图所示。。
[从这里下载 XML 文件 (adwaita.xml)][3]
![Change the XML file][4]
第三,使用你想要的任意名称保存这个文件。如果这里没有 “gnome-background-properties”创建它。针对这个示例我使用 my_cool_backgrounds.xml 。
![Save the file][5]
与此同时,你就准备好了所有的东西。最后,打开 settings 并转到 Appearance 标签页,你应该会看到一个新的可视的壁纸选项。
[][6]
请参考:新的 GNOME 文本编辑器 - 你需要知晓的一切
选择你自己的自定义的明暗壁纸,尽情享受。
![Appearance tab has now your own custom light and dark wallpaper][7]
### 如何下载或制作你自己的动态壁纸
当然,你必然会想,谁有时间去查找和创建壁纸的日夜版本?这里有一些网站来向你提供预制好的动态壁纸,你可以轻松地下载和安装。
我推荐的一个网站是 [dynamicwallpaper.club][8] ,针对 macOS 来说,它有一些高达 6K 的极好的高质量的壁纸。你可以轻松地下载它们。
此外,如果你打算从上述网站下载,请记住该网站的图像文件是 [heic][9] 格式的,因为这个网站是针对 macOS 的。高效视频编码 (HEIC) 是苹果的专有的 HEIF (High-Efficiency Image File) 的格式版本。
那么,如何在 Linux 系统中转换它们? 好吧,在 Ubuntu 或 Fedora Linux 中,你需要一个驱动程序来查看和转换动态的 heic 图像文件。打开一个终端,运行下面的命令开安装驱动程序。
Ubuntu 用户
```
sudo apt install heif-gdk-pixbuf
```
Fedora 用户
```
sudo dnf install libheif
```
(没有这个插件的帮助Plasma 应用程序就不能打开 heic 格式的图像文件)
```
sudo apt install qt-heif-image-plugin
sudo dnf install qt-heif-image-plugin
```
最后,使用你喜欢的图像查看器打开 heic 图像文件,并将其保存为 JPG/PNG 图像文件。
最好,不要忘记在下面的评论区告诉我,你是否能够针对 GNOME 桌面环境来创建你自己的自定义的明暗壁纸了。
![Custom Light and Dark wallpaper in GNOME transition][10]
谢谢。
* * *
我们带来最新的科技、软件新闻和重要的题材。通过 [Telegram][11]、[Twitter][12][YouTube][13] 和 [Facebook][14] 保持联系、不错过一次更新!
--------------------------------------------------------------------------------
via: https://www.debugpoint.com/2022/04/custom-light-dark-wallpaper-gnome/
作者:[Arindam][a]
选题:[lujun9972][b]
译者:[robsean](https://github.com/robsean)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://www.debugpoint.com/author/admin1/
[b]: https://github.com/lujun9972
[1]: https://www.debugpoint.com/2022/03/gnome-42-release/
[2]: https://www.debugpoint.com/wp-content/uploads/2022/04/Sample-light-and-dark-wallpaper-for-demo.jpg
[3]: https://gitlab.gnome.org/GNOME/gnome-backgrounds/-/tree/main/backgrounds
[4]: https://www.debugpoint.com/wp-content/uploads/2022/04/Change-the-XML-file-1024x568.jpg
[5]: https://www.debugpoint.com/wp-content/uploads/2022/04/Save-the-file-1024x548.jpg
[6]: https://www.debugpoint.com/2021/12/gnome-text-editor/
[7]: https://www.debugpoint.com/wp-content/uploads/2022/04/Apperance-tab-has-now-your-own-custom-light-and-dark-wallpaper-1024x657.jpg
[8]: https://dynamicwallpaper.club
[9]: https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
[10]: https://www.debugpoint.com/wp-content/uploads/2022/04/Custom-Light-and-Dark-wallpaper-in-GNOME-transition-1024x556.gif
[11]: https://t.me/debugpoint
[12]: https://twitter.com/DebugPoint
[13]: https://www.youtube.com/c/debugpoint?sub_confirmation=1
[14]: https://facebook.com/DebugPoint