You are not logged in.

#1 2020-06-30 17:24:39

bedtime
Member
Registered: 2019-02-12
Posts: 68

Where can I find the gtk-3.0 HighContrast theme?

A while back the Gnome team decided to have this theme built into the system. Where can I download the theme file for it?

Offline

#2 2020-07-01 07:25:58

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Where can I find the gtk-3.0 HighContrast theme?

$ pacman -Qo /usr/share/themes/HighContrast
/usr/share/themes/HighContrast/ is owned by gnome-themes-extra 3.28-2

Offline

#3 2020-07-02 21:37:22

bedtime
Member
Registered: 2019-02-12
Posts: 68

Re: Where can I find the gtk-3.0 HighContrast theme?

ondoho wrote:
$ pacman -Qo /usr/share/themes/HighContrast
/usr/share/themes/HighContrast/ is owned by gnome-themes-extra 3.28-2

Since the theme is built in, it doesn't show the actual code. There is code there, but the smallest bit.

I would like the full code.

Offline

#4 2020-07-03 09:43:42

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Where can I find the gtk-3.0 HighContrast theme?

pacman -Qi gnome-themes-extra

You're welcome.

Offline

#5 2020-07-03 12:30:19

bedtime
Member
Registered: 2019-02-12
Posts: 68

Re: Where can I find the gtk-3.0 HighContrast theme?

ondoho wrote:
pacman -Qi gnome-themes-extra

It's already installed.

% cat /usr/share/themes/HighContrast/gtk-3.0/gtk.css                                                               
/* HighContrast is now part of GTK+ 3, this file is no longer used */

As you can see, the theme isn't there but built into Gnome.

I would like the theme's config, so I can edit it.

Offline

#6 2020-07-03 12:46:09

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Where can I find the gtk-3.0 HighContrast theme?

The "pacman -Qi" output has an "URL" line. It leads you to the source, it's here for gnome-themes-extra:

https://gitlab.gnome.org/GNOME/gnome-themes-extra

Offline

#7 2020-07-03 13:22:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,660

Re: Where can I find the gtk-3.0 HighContrast theme?

@Ropid & @ondoho

The underlying problem here seems to be indeed that these files are just dummy files and not actually relevant anymore.

Since you found that file and that line you should have your answer now, no?

https://gitlab.gnome.org/GNOME/gtk/-/tr … ghContrast

Offline

#8 2020-07-03 14:33:30

dkb
Member
Registered: 2020-06-10
Posts: 3

Re: Where can I find the gtk-3.0 HighContrast theme?

bedtime wrote:

...
I would like the theme's config, so I can edit it.

Why not just put your modifications into ~/.config/gtk-3.0/gtk.css (or possibly settings.ini)?

Offline

#9 2020-07-03 21:20:12

bedtime
Member
Registered: 2019-02-12
Posts: 68

Re: Where can I find the gtk-3.0 HighContrast theme?

V1del wrote:

@Ropid & @ondoho

The underlying problem here seems to be indeed that these files are just dummy files and not actually relevant anymore.

Since you found that file and that line you should have your answer now, no?

https://gitlab.gnome.org/GNOME/gtk/-/tr … ghContrast

Thanks for the link. I'm trying to wrap my head around it. The file 'gtk.css' has the following:

@import url("resource:///org/gtk/libgtk/theme/HighContrast/HighContrast.css");

I'm not sure how to extract this.


Why not just put your modifications into ~/.config/gtk-3.0/gtk.css (or possibly settings.ini)?

I've been doing this, though it's quite like fixing a car blind.

Offline

#10 2020-07-04 10:39:13

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Where can I find the gtk-3.0 HighContrast theme?

bedtime wrote:

Thanks for the link.

Glad you were able to find it with some help.

I'm trying to wrap my head around it. The file 'gtk.css' has the following:

@import url("resource:///org/gtk/libgtk/theme/HighContrast/HighContrast.css");

I'm not sure how to extract this.

You have to look at all the files in that folder.
They usually are compiled somehow; my guess is the shell script there does that.
You could start by looking at the HighContrast.scss file.

Offline

Board footer

Powered by FluxBB