Share

Gnome Inform 7

Tracker: Bugs

5 Changing the GTK color scheme while running gi7 - ID: 2860691
Last Update: Comment added ( abka )

I tend to change the GTK color scheme quite a lot from a light (black on
white) to a dark one (white on black), for I need good contrast because of
my bad eyesight.

When using a dark color scheme, the cursor in the source pane is invisible
it appears white on white.

The General Documentation is always white on black (due to the hard-coded
<font color="#xxxxxx"> tags in the HTML files under
/usr/share/gnome-inform/Documentation). While the Documentation for
Installed Extensions does respect the color scheme, the colors remain in
the initial color scheme after updating the color scheme.

I would find it nice to have the option to switch between a light and dark
color setting in the preferences.

In the documentation one would have to change all the colors and keep the
light and dark version in different folders (e.g.
/usr/share/gnome-inform/Documentation/dark/index.html) as I did in the perl
hack attached. This would make keeping track of history hard though, I
suppose.

As for the source pane, there could be another facet for color for the
styles (e.g. psychedelic-color-dark-styling or
subdued-somecolor-light-styling). I tried changing the color scheme in
several change style-restart-cycles and this works nicely.


konstantin baierer ( abka ) - 2009-09-17 13:56

5

Open

Accepted

P.F. Chimento

Interface

None

Public


Comments ( 3 )




Date: 2009-09-28 14:37
Sender: abka

For all those who have this problem with dark gtk2 color schemes and
gnome-inform7, you can make gi7 explicitly use a light color scheme by
creating a little script somewhere in your $PATH (i.e. ~/bin/gi7):

#!/bin/sh

GTK2_RC_FILES=/usr/share/themes/Clearlooks gnome-inform7

This way you should be able to read the documentation.


Date: 2009-09-28 14:30
Sender: abka

I'm looking forward to the development version, that's for sure :)

You are right about the cursor color, it was a bug in the color scheme I
used.

I understand that you don't want to distribute two versions of the
documentation, that would be quite a hack indeed. I wrote Graham a mail
about the HTML files, maybe he will find the time to change his
documentation generator to a CSS-based approach.


Date: 2009-09-17 18:36
Sender: pchimentoProject Admin

In the development version that you must be tired of hearing about by now,
you can use any color scheme installed on your system in the Source panel.
Basically any color scheme that you can pick in Gedit's preferences, plus
the traditional Inform schemes. The Game panel will also respect the
desktop theme-- this isn't implemented yet but it's planned.

The cursor color seems to depend on your desktop theme. I only have one
light-on-dark theme installed on my system, and it makes the cursor blue on
white in the Source panel.

The documentation remains a problem. I have had many requests from users
on this subject. The HTML files are generated automatically from a master
documentation file, but the tool that Graham Nelson wrote for this task has
not been released as open source yet. I'm not going to distribute two
versions of the documentation because it would almost double the size of
the download. I know little about HTML and nothing about CSS, but shouldn't
it be possible to change the color scheme of the documentation with a CSS
file? You might try reporting this issue to Graham Nelson. In the meantime,
I will think about possible solutions.


Log in to comment.

Attached File ( 1 )

Filename Description Download
bw2wb.pl changes the colors of the Documentation Download

Changes ( 2 )

Field Old Value Date By
resolution_id None 2009-09-17 18:36 pchimento
File Added 343330: bw2wb.pl 2009-09-17 13:56 abka