Gnome Mines custom themes

This custom theme plays well with dark gtk themes and is easier to the eye!

Gnome Mines is a minesweeper clone bundled with the Gnome Desktop for GNU/Linux. While the game is addicting as always, the default themes can be a little hard on the eyes.

The problem with Gnome mines default themes

Gnome-Mines default appearance with a light gtk theme
Gnome-Mines default appearance with a dark GTK theme

In the screenshots above, the large border between the tiles can cause some people to experience visual artifacts due to a grid illusion. The default themes also use the window background color to fill the space between the tiles, so changing your desktop environment’s GTK theme can drastically change the appearance of your minefield!

Happily we can fix this easily with a custom theme.

A theme easier to the eye

Narrower gaps between the tiles
Gnome-Minefield colors do not change with GTK theme

I slightly tweaked the default theme to have narrower gaps between the tiles, thus greatly reducing the grid illusion effect. I also changed the colors to be independent from the GTK theme.

How to install this custom theme

  1. Download the files : smooth.zip
  2. Extract the zip file to your computer, for example in ~/.themes/gnome-mines
  3. In a terminal, execute the following command :
    gsettings set org.gnome.Mines theme '/path/to/folder/smooth/'
    Don’t forget to change the path to match the location of the theme files. The folder specified in the command should be the one containing the svg and css files.
  4. Start Gnome Mines, et voilĂ  !

Please note: if you change the theme via the theme selector in Gnome Mines, you will have to execute the command above again to go back to the custom theme.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.