mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-21 02:10:11 +08:00
translating
This commit is contained in:
parent
9af936d69c
commit
759d795c8b
@ -7,30 +7,30 @@
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
Install and Use Additional Gedit Color Themes
|
||||
安装和使用额外的 Gedit 颜色主题
|
||||
======
|
||||
|
||||
Gedit is one of the most popular text editors in the Linux world. It is primarily a text editor but [with some tweaks][1], you can use it for programming as well.
|
||||
Gedit 是 Linux 世界中最流行的文本编辑器之一。它主要是一个文本编辑器,但[经过一些调整][1],你也可以使用它进行编程。
|
||||
|
||||
Now, programmers often prefer a darker theme and Gedit is no stranger to that. It comes with a bunch of themes to choose from.
|
||||
现在,程序员通常更喜欢较暗的主题,Gedit 对此并不陌生。它有很多主题可供选择。
|
||||
|
||||
However, if you are not satisfied with them, you may also install third-party color schemes. If you want, you can even create your own color scheme to make it completely unique.
|
||||
但是,如果你对它们不满意,你也可以安装第三方配色方案。如果需要,你甚至可以创建自己的配色方案,使其完全独一无二。
|
||||
|
||||
Let me show you how to change the default Gedit theme first and then I'll share how you can install additional, third-party themes.
|
||||
首先让我向你展示如何更改默认的 Gedit 主题,然后我将分享如何安装其他第三方主题。
|
||||
|
||||
### Change the default Gedit theme
|
||||
### 更改默认的 Gedit 主题
|
||||
|
||||
As I mentioned earlier, Gedit comes with a few color schemes of its own. You can easily switch to them.
|
||||
正如我之前提到的,Gedit 带有一些自己的配色方案。你可以轻松切换到它们。
|
||||
|
||||
Go to the top right hamburger menu and select _Preferences._
|
||||
转到右上角的菜单并选择_首选项_。
|
||||
|
||||
![Select Preferences from the top-right hamburger menu][2]
|
||||
|
||||
Now, go to Fonts & Color Tab.
|
||||
现在,转到字体和颜色选项卡。
|
||||
|
||||
![Select the Fonts & Colors tab in the preferences section for changing colors][3]
|
||||
|
||||
From there, you can change the color scheme. You can see how all these color schemes look in the screenshots below.
|
||||
在这里,你可以更改配色方案。你可以在下面的截图中看到所有配色方案的外观。
|
||||
|
||||
![][4]
|
||||
|
||||
@ -50,65 +50,65 @@ From there, you can change the color scheme. You can see how all these color sch
|
||||
|
||||
![][12]
|
||||
|
||||
Don't like what you see? Let's explore third-party Gedit themes.
|
||||
不喜欢你所看到的? 让我们探索一下第三方 Gedit 主题。
|
||||
|
||||
### Installing third-party color schemes
|
||||
### 安装第三方配色方案
|
||||
|
||||
You need to download the required color scheme files from the internet first and then add them to Gedit from the Preferences or put them in .local/share/gedit/styles folder.
|
||||
你需要先从互联网下载所需的配色方案文件,然后从首选项将它们添加到 Gedit 或将它们放在 .local/share/gedit/styles 文件夹中。
|
||||
|
||||
#### Step 1: Download color Scheme Files
|
||||
#### 步骤 1:下载配色方案文件
|
||||
|
||||
Third-party Gedit themes are available on various GitHub repositories. For your convenience, I am listing some repos where you can find a lot of scheme files.
|
||||
第三方 Gedit 主题可在各种 GitHub 仓库中找到。为了你的方便,我列出了一些仓库,你可以在其中找到很多方案文件。
|
||||
|
||||
- [Schemes by Mig][13] (better looking)
|
||||
- [Schemes by gmate][14]
|
||||
- [Mig 的方案][13](更好看)
|
||||
- [gmate 的方案][14]
|
||||
- [GNOME Wiki][15]
|
||||
- [Other repos][16]
|
||||
- [Gnome-Look][17]
|
||||
- [其他仓库][16]
|
||||
- [Gnome 外观][17]
|
||||
|
||||
On the above repos, you can find XML files. Open the theme XML files and download them by using the _Save File as Raw Data_ option, as shown below.
|
||||
在上面的仓库中,你可以找到 XML 文件。打开主题 XML 文件并使用_将文件另存为原始数据_选项下载它们,如下所示。
|
||||
|
||||
![Download XML files for Gedit themes][18]
|
||||
|
||||
#### Step 2: Install Individual Theme Files
|
||||
#### 步骤 2:安装单独的主题文件
|
||||
|
||||
If you have handpicked some theme files, you can install them one by one using Gedit Add scheme feature. For this, open the _Preferences > Fonts & Colors_ tab. Now, click on the "+" symbol on the bottom left:
|
||||
如果你精心挑选了一些主题文件,你可以使用 Gedit 添加方案功能一一安装它们。为此,请打开_首选项>字体和颜色_选项卡。现在,单击左下角的 “+” 符号:
|
||||
|
||||
![Click on the "+" sign on Fonts & Colors page for adding individual XML files][19]
|
||||
|
||||
From the resulting file browser, select the downloaded theme file and click OK.
|
||||
从文件浏览器中,选择下载的主题文件,然后单击“确定”。
|
||||
|
||||
!["Neon", a newly installed theme][20]
|
||||
|
||||
This theme will now be visible on the same Fonts & Colors tab, and you can switch by clicking on it.
|
||||
该主题现在将在同一“字体和颜色”选项卡上可见,你可以通过单击它进行切换。
|
||||
|
||||
#### Alternative step 2: Install Themes in Bulk
|
||||
#### 步骤 2 替代:批量安装主题
|
||||
|
||||
Did you download an entire GitHub repo of themes? Then it is not convenient to install themes one by one. Do not worry; Gedit has color theme directories that can be used for bulk installs.
|
||||
你是否下载了整个 GitHub 主题仓库? 那么一一安装主题就不方便了。不用担心,Gedit 有可用于批量安装的颜色主题目录。
|
||||
|
||||
You have to copy and paste all the XML files to `.local/share/gedit/styles`.
|
||||
你必须将所有 XML 文件复制并粘贴到 `.local/share/gedit/styles`。
|
||||
|
||||
After that you will get a thumbnail of all the themes on the _Fonts & Colors_ tab.
|
||||
之后,你将在“字体和颜色”选项卡上获得所有主题的缩略图。
|
||||
|
||||
![Fonts & Colors tab will list all the user installed third partyy themes, that are available for switching][21]
|
||||
|
||||
If there is no _Styles_ directory, create one. Now, the themes will be available for that particular user.
|
||||
如果没有 _Styles_ 目录,请创建一个。现在,主题将可供该特定用户使用。
|
||||
|
||||
💡
|
||||
|
||||
On Linux Mint, you can copy the XML files to`/usr/share/gtksourceview-3.0`directory, which will be accessible for both Gedit and Xed editor.
|
||||
在 Linux Mint 上,你可以将 XML 文件复制到 `/usr/share/gtksourceview-3.0` 目录,Gedit 和 Xed 编辑器都可以访问该目录。
|
||||
|
||||
### Remove a Gedit theme
|
||||
### 删除 Gedit 主题
|
||||
|
||||
If you don't like some themes, you can delete those files from the location. Or, go to the Fonts & Colors section. Now select the theme that you want to delete and press the "-" sign on the bottom left.
|
||||
如果你不喜欢某些主题,可以从该位置删除这些文件。或者,转到字体和颜色部分。现在选择你要删除的主题,然后按左下角的 “-” 号。
|
||||
|
||||
![Select theme that you want to remove from the list and press "-" button][22]
|
||||
|
||||
This will delete that particular color scheme.
|
||||
这将删除该特定的配色方案。
|
||||
|
||||
### Some good looking Gedit themes
|
||||
### 一些好看的 Gedit 主题
|
||||
|
||||
The below screenshots give some suggestions from my side.
|
||||
下面的截图给出了我的一些建议。
|
||||
|
||||
#### Blackboard
|
||||
|
||||
@ -116,7 +116,7 @@ The below screenshots give some suggestions from my side.
|
||||
|
||||
#### Catppuccin
|
||||
|
||||
[Catppuccin][24] is a dark Gedit them, good if you use any similar GTK theme.
|
||||
[Catppuccin][24] 是一个深色的 Gedit,如果你使用任何类似的 GTK 主题,那就太好了。
|
||||
|
||||
![Catppuccin][25]
|
||||
|
||||
@ -148,13 +148,13 @@ The below screenshots give some suggestions from my side.
|
||||
|
||||
![Vibrant Fun (gmate / mig)][32]
|
||||
|
||||
You can get more themes by searching on [GitHub topics][33] and repositories.
|
||||
你可以通过搜索 [GitHub 话题][33]和仓库来获取更多主题。
|
||||
|
||||
### More Gedit tweaks
|
||||
### 更多 Gedit 调整
|
||||
|
||||
That's just one of the many [ways you can tweak Gedit][1]. Here are some more for you to explore.
|
||||
这只是众多[调整 Gedit 的方法][1]之一。这里还有更多内容供你探索。
|
||||
|
||||
Enjoy Gedit in more colors :)
|
||||
享受更多颜色的 Gedit :)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@ -162,7 +162,7 @@ via: https://itsfoss.com/gedit-themes/
|
||||
|
||||
作者:[Sreenath][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
Loading…
Reference in New Issue
Block a user