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

7.3 KiB

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, 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

Now, go to Fonts & Color Tab.

Select the Fonts & Colors tab in the preferences section for changing colors

From there, you can change the color scheme. You can see how all these color schemes look in the screenshots below.

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.

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

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

From the resulting file browser, select the downloaded theme file and click OK.

"Neon", a newly installed theme

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

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.0directory, 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

This will delete that particular color scheme.

Some good looking Gedit themes

The below screenshots give some suggestions from my side.

Blackboard

Blackboard (gmate)

Catppuccin

Catppuccin is a dark Gedit them, good if you use any similar GTK theme.

Catppuccin

Lowlight

Lowlight theme from gmate

Midnight

Midnight (gmate)

Monakai

Monakai (gmate)

Neopro

Neopro theme from gmate

Plastic Code Wrap

Plastic Code Wrap theme from gmate

Slate

Slate (gmate)

Vibrant Fun

Vibrant Fun (gmate / mig)

You can get more themes by searching on GitHub topics and repositories.

More Gedit tweaks

That's just one of the many ways you can tweak Gedit. Here are some more for you to explore.

Enjoy Gedit in more colors :)


via: https://itsfoss.com/gedit-themes/

作者:Sreenath 选题:lkxed 译者:译者ID 校对:校对者ID

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