trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: June 2018

Re: [trinity-users] system colors & permission problems

From: "E. Liddell" <ejlddll@...>
Date: Sat, 23 Jun 2018 18:46:39 -0400
On Fri, 22 Jun 2018 16:50:26 -0700
William Morder <doctor_contendo@...> wrote:

> On Friday 22 June 2018 14:30:09 E. Liddell wrote:
> > On Fri, 22 Jun 2018 09:17:34 -0700
> >
> > William Morder <doctor_contendo@...> wrote:  

> > > TDE
> > > Trinity Control Center/Colors
> > > x Apply colors to non-TDE applications
> > >
> > > KDE4
> > > System Settings/Application Appearance/Colors/Options
> > > x Apply colors to non-KDE4 applications
> > >
> > > I don't so much care if they use the KDE4 settings or the TDE color
> > > settings, just so long as it's not white. This isn't just that I hate
> > > that my pretty desktop is spoiled; I started using these settings because
> > > a white screen triggers a migraine - especially when I am working late at
> > > night in a dark room. I impose dark screen settings on my default
> > > browsers and other applications, too, for this reason. Also, there is a
> > > practical reason: whenever I see a white screen, this usually reminds me
> > > that I have opened that application as root, so that I am sure to be
> > > careful I don't really mess up or delete stuff.  
> >
> > Yeah, sounds about right--I've been setting up my desktops with white text
> > on black/blue for more than twenty years for similar reasons.
> >
> > Try unchecking those two boxes you mention first.  Then create a file
> > .gtkrc-2.0 in your user's home directory and put the following in it:  
> 
> I already did that. I checked and unchecked them numerous times; checked one 
> but not the other, restarted after changing them, etc.; but no changes. 

What those checkboxes do (or at least, what the TDE one used to do) is
write an additional configuration for GTK widgets that tries to give them similar
settings to your QT widgets.  Unchecking them should cause the system to
revert to the normal GTK theming system, which can then be messed with to
produce more reliable results.

> > gtk-color-scheme = "bg_color: #000044\nfg_color: #fff\nbase_color:
> > #000\ntext_color: #fff\nselected_bg_color: #0ff\nselected_fg_color:
> > #000\ntooltip_bg_color: #0ff\ntooltip_fg_color: #000"
> >
> > If that causes an abrupt colour change in your browser chrome, it should be
> > easy enough to work it into a more standard colour scheme by adjusting the
> > hex.  If not, we may have a little more work to do (my file is actually a
> > lot more extensive and defines a variation on the standard Industrial
> > style, because that was the easiest way to get usable scrollbars with such
> > dark colours).
> >
> > Styling GTK3 is not that easy, unfortunately--it took me just under 400
> > lines of CSS to get something I could live with.  I can hand my file over
> > to you to play with if it turns out you need it (the colour information is
> > exposed at the top, so fairly easy to change).  
> 
> Yes, please. From what you have given me here, it looks like something I could 
> use. I could just change it to suit my own needs. And 400 lines doesn't scare 
> me. 

Okay, I've attached both my GTK2 and GTK3 style files.  I also tossed in a
screenshot showing what Seamonkey looks like when themed with this mess
(the screwed-up tab bar is due to a malfunctioning browser extension, though).
I guarantee it is not white. ;)

.gtkrc-2.0 is a GTK2 style.  Pale Moon (as of 27.9.3) and SeaMonkey (as of
2.49.7.0) still use GTK2.  Place this file in your user's home directory.  Unfortunately,
it is not neat or tidy and has colour definitions scattered all over the file.  It also needs
the Industrial GTK2 "engine" in order to function properly.  For me, Industrial is located
in the package x11-themes/gtk-engines-2.20.2.  I don't know where it may be for
your distro.

gtk.css is a GTK3 style, and you would place it in .config/gtk-3.0/ .  It's somewhat
more neatly written, with all the colour definitions at the top.  The style is mildly
skeuomorphic if functioning properly (slightly raised borders around buttons, etc.)
I have a separate settings.ini file in that directory, but I don't think it's relevant.

Oh, and if you have any other files of the form .gtkrc-2.0-x or similar in your home
directory, rename them to get them out of the way.

E. Liddell

Attachments: