TranslateProject/sources/tech/20230721.1 ⭐️ Install and Use Additional Gedit Color Themes.md

205 lines
7.3 KiB
Markdown
Raw Normal View History

[#]: subject: "Install and Use Additional Gedit Color Themes"
[#]: via: "https://itsfoss.com/gedit-themes/"
[#]: author: "Sreenath https://itsfoss.com/author/sreenath/"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Install and Use Additional Gedit Color Themes
======
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.
Now, programmers often prefer a darker theme and Gedit is no stranger to that. It comes with a bunch of themes to choose from.
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.
### Change the default Gedit theme
As I mentioned earlier, Gedit comes with a few color schemes of its own. You can easily switch to them.
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]
![][5]
![][6]
![][7]
![][8]
![][9]
![][10]
![][11]
![][12]
Don't like what you see? Let's explore third-party Gedit themes.
### 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.
#### Step 1: Download color Scheme Files
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.
- [Schemes by Mig][13] (better looking)
- [Schemes by gmate][14]
- [GNOME Wiki][15]
- [Other repos][16]
- [Gnome-Look][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.
![Download XML files for Gedit themes][18]
#### Step 2: Install Individual Theme Files
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:
![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
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.
You have to copy and paste all the XML files to `.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.
💡
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.
### Remove a Gedit theme
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
The below screenshots give some suggestions from my side.
#### Blackboard
![Blackboard (gmate)][23]
#### Catppuccin
[Catppuccin][24] is a dark Gedit them, good if you use any similar GTK theme.
![Catppuccin][25]
#### Lowlight
![Lowlight theme from gmate][26]
#### Midnight
![Midnight (gmate)][27]
#### Monakai
![Monakai (gmate)][28]
#### Neopro
![Neopro theme from gmate][29]
#### Plastic Code Wrap
![Plastic Code Wrap theme from gmate][30]
#### Slate
![Slate (gmate)][31]
#### Vibrant Fun
![Vibrant Fun (gmate / mig)][32]
You can get more themes by searching on [GitHub topics][33] and repositories.
### More Gedit tweaks
That's just one of the many [ways you can tweak Gedit][1]. Here are some more for you to explore.
Enjoy Gedit in more colors :)
--------------------------------------------------------------------------------
via: https://itsfoss.com/gedit-themes/
作者:[Sreenath][a]
选题:[lkxed][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/sreenath/
[b]: https://github.com/lkxed/
[1]: https://itsfoss.com/gedit-tweaks/
[2]: https://itsfoss.com/content/images/2023/07/select-preferences.png
[3]: https://itsfoss.com/content/images/2023/07/Fonts-and-Colors-tab-change-default-themes.png
[4]: https://itsfoss.com/content/images/2023/07/Default-Classic.png
[5]: https://itsfoss.com/content/images/2023/07/Default-Cobalt.png
[6]: https://itsfoss.com/content/images/2023/07/Default-Kate.png
[7]: https://itsfoss.com/content/images/2023/07/Default-Oblivion.png
[8]: https://itsfoss.com/content/images/2023/07/Default-Solarized-Dark.png
[9]: https://itsfoss.com/content/images/2023/07/default-Solarized-Light.png
[10]: https://itsfoss.com/content/images/2023/07/Default-tango.png
[11]: https://itsfoss.com/content/images/2023/07/Default-Yaru.png
[12]: https://itsfoss.com/content/images/2023/07/Default-Yaru-Dark.png
[13]: https://github.com:443/mig/gedit-themes
[14]: https://github.com:443/gmate/gmate/tree/master/styles
[15]: https://wiki.gnome.org:443/Projects/GtkSourceView/StyleSchemes
[16]: https://github.com:443/topics/gedit-theme
[17]: https://www.gnome-look.org:443/browse?cat=279&ord=latest
[18]: https://itsfoss.com/content/images/2023/07/save-raw-data-1.png
[19]: https://itsfoss.com/content/images/2023/07/Select-plus-sign-to-add-schemes.png
[20]: https://itsfoss.com/content/images/2023/07/newly-installed-theme.png
[21]: https://itsfoss.com/content/images/2023/07/multiple-installed-themes.png
[22]: https://itsfoss.com/content/images/2023/07/remove-a-theme.png
[23]: https://itsfoss.com/content/images/2023/07/Blackboard.png
[24]: https://github.com:443/catppuccin/gedit
[25]: https://itsfoss.com/content/images/2023/07/Catppuccin-macchiato.png
[26]: https://itsfoss.com/content/images/2023/07/Lowlight.png
[27]: https://itsfoss.com/content/images/2023/07/Midnight.png
[28]: https://itsfoss.com/content/images/2023/07/Monakai.png
[29]: https://itsfoss.com/content/images/2023/07/Neopro.png
[30]: https://itsfoss.com/content/images/2023/07/Plastic-code-wrap.png
[31]: https://itsfoss.com/content/images/2023/07/slate.png
[32]: https://itsfoss.com/content/images/2023/07/Vibrant-fun.png
[33]: https://github.com:443/topics/gedit-theme