You are not logged in.

#1 2019-01-08 12:07:13

mountaineerbr
Banned
Registered: 2018-12-08
Posts: 48

[ Solved ] Arc-gtk-theme Compile from Source Code w/ GTK v3.24?

Hello everyone!

I am an Arch user for about 9 months now, so it was around time I ought to get expelled from the comfortable womb of 'follow-default-settings' and try myself in the wild Code World! What I mean is, I finally got to do some serious personalisation on my system to make it look good & hot, and leave defaults behind. I hardly care how good something looks or not but its usefulness. Last time I tried to post a screenshot of my DE in /s/unixporn, my theme was the most off: i think I got 3 upvotes at some point only to fall to -2 (which is not bad, thanks unixporn subbreddit community!). After that episode, I realised my desktop themes were so badly configured, how could I show a friend my laptop running Linux and say it rocks if it looked like it got Windows-95-timeabouts bizzare themes?

The fact is, all dark themes are either too dark or, often times, contrast-less and too heavy-looking. Light themes are too light! So I was switching between Adwait and some XFCE default themes, like Xfce-flat, or Xfce-saltlake, Xfce-stellar, Xfce-4.6 and so on...

So now I downloaded the Arc-Dark theme and wish I could make its pallet about 12% more light, plus augment scrollbar size. I did that extracting the gtk-3.0 gtk-main.css from the gresource ball and pointed the gtk.css file to the extracted one with the following line:

@import url("gtk-main.css");

 
From then on, I was able to make tests and change the values I wanted. Unfortunately, when I open some applications, for example, Catfish, windows buttons are not shown, so I believe there is a problem with pixmap or something with not pointing to the whole gresource ball, afterall.

Next, I downloaded the source code with instructions from this github

https://github.com/horst3180/arc-theme

Is anyone familiar with the compile step for the Arc Themes from source? Current GTK is 3.24, and there seems to be a *known* compatibility issue while building with the ./autogen.sh script of the package. On the developer's manual, Note 2:

For GNOME 3.24, use --with-gnome-version=3.22
                           (this works for now, the build system will be improved in the future)

So I tried to  execute:

$ ./autogen.sh --prefix=/usr --with-gnome-version=3.22

It seems that workaround does not work anymore. The error returned is:

configure: error: Invalid GNOME version: 3.24

Does anyone have a tip as to how to make that build?

Last edited by mountaineerbr (2019-01-08 19:53:36)

Offline

#2 2019-01-08 14:03:26

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

Re: [ Solved ] Arc-gtk-theme Compile from Source Code w/ GTK v3.24?

Use this github repo here:

https://github.com/NicoHood/arc-theme

About where I found this, you can see what the PKGBUILD script of the Arch package named "arc-gtk-theme" is doing here:

https://git.archlinux.org/svntogit/comm … -gtk-theme

In the "source=(...)" list, it's building a URL for downloading out of the variables set towards the beginning of the file. To be clear, it's creating this link here (the "makepkg" Arch tool will download it):

https://github.com/NicoHood/arc-theme/2 … 022.tar.xz

In the "prepare()" and "build()" parts of the file you can see what shell commands are being run to compile the code.

Offline

#3 2019-01-08 14:56:44

mountaineerbr
Banned
Registered: 2018-12-08
Posts: 48

Re: [ Solved ] Arc-gtk-theme Compile from Source Code w/ GTK v3.24?

Dear Ropid,

Thanks for the rapid reply! I will try and understand & execute your instructions & instructions on those links you pointed to, and shall give feedback to this thread, later.

----------------

PS: I decided to set this this thread as solved & will give a brief account of some points I think may help anyone arriving here.

The original maintainer of Arc Theme, horst3180, has not updated the theme for a while, so another maintainer NicoHood, got to soft-fork that theme project. Thanks, Ropid, for pointing that out and all the help!

NicoHood has also made a soft-fork of arc-icon-theme, which package seems to be rather outdated in AUR (  v20161122-2 ) ( see https://github.com/NicoHood/arc-icon-theme ).

After NicoHood Arc theme source code is downloaded, I found an important file named 'HACKING.md' with instructions of how the config files are organised, which ones to modify to change gtk2 and gtk3 colours, and also a variety of instructions at NicoHood's GitHub Arc Theme page for compiling the theme from source ( with extra options for disabling certain functions or support ) ; also, do read the README files in order to understand better how the source code is organised.

I found a very nice script called '.change_color.sh' which seems to be useful. I did some tests and it works very nicely but I think a more finely grained customisation calls for the manual edition of gtk-2.0 'gtkrc' and gtk-3.0 '*.scss' files. In those files, which config functions are specified at HACKING.md and at other readmes, it seems to be quite straight forwards to change colours and do the other adjustments, because the files seem to be  organised very well indeed.

A little anecdote, when I begun to customising themes ( 1w ago), I started trying to modify HighContrastInverse, but I got very frustrated after some time because there were certain colours I could not change no matter what I'd do, until I read a header in a file with copyright credits to Havoc Pennington, 2002. It is impressive that some adjustments must have been done from the Xubuntu folks that got a 2002 theme working after so many years, but it is a good idea to try and not delve into outdated code that may respond successfully or not to changes.

Last edited by mountaineerbr (2019-01-08 19:52:53)

Offline

Board footer

Powered by FluxBB