Gnurou / tagainijisho

A free Japanese dictionary and learning assistant
http://www.tagaini.net
GNU General Public License v3.0
358 stars 51 forks source link

Dark background - see nothing #113

Closed eyemiru closed 7 years ago

eyemiru commented 10 years ago

Hey guys, a friend of mine recommended this program, so I wanted to test it.

Sadly, due the cause of my dark background I can't see anything. I wish backgrounds (the type field as well like in JGlossator) and font colours could be customizable ... that would be really great.

Thanks

Pic of program: http://puu.sh/a8WVP/a4132f5494.png http://puu.sh/a8XYP/e55c5f77cc.png

somini commented 10 years ago

Well, Tagaini uses QT, so there's always http://qt-project.org/doc/qt-4.8/stylesheet.html. It should be easy to use a custom file stored in ~/.config/Tagaini Jisho/qt.css or something.

eyemiru commented 10 years ago

Unfortunately the path doesn't exist on Windows.

All I get is: detailed_default.css (makes no changes) detailed_jmdict.css (is an empty file) detailed_kanjidic2.css (made it #white, but no change is made)

somini commented 10 years ago

It probably needs something changed in the program itself, since you want the change to be reflected in the UI itself. I'm not exactly a QT expert, not sure where one would start doing it.

guillaumecl commented 10 years ago

I have a similar issue with dark background, but not exactly the same output (I'm on Linux and the original poster seems to be on Windows)

Here is what I see with a dark background:

dark_bg

In my case, tagaini jisho is mostly good except for the bottom parts of the meaning view (Components, Homographs, Notes, etc)

The list widget is good because it forces the text color as well as the background color for me.

somini commented 10 years ago

What kind of setup do you have to show it like that and what can I do to get it? :D

guillaumecl commented 10 years ago

I mainly modified the colors using qtconfig. Typically this can also be done by changing the theme in the settings (in KDE, gnome, etc)

To use the same settings as I did, you can modify your $HOME/.config/Trolltech.conf file this way:

https://gist.github.com/guillaumecl/edce7a0776696b4a094b

guillaumecl commented 10 years ago

After looking at the EntryFormatter code, it appears that we can already tweak the configuration of the entries using a file called detailed_default.css.

This file is currently searched from the current directory, a distribution specific system directory, then directly inside the application.

By modifying this file a bit, I have much this more readable look:

dark_bg_2

For reference, the detailed_default.css file I used is as follows:

https://gist.github.com/guillaumecl/7799422878516e280871

This does not address the problem reported by the original poster, though, because only the HTML part in the entries view can be customized this way.

somini commented 10 years ago

Thanks a lot, it changes the color scheme for all Qt-apps, like vlc and Skype. Never thought it was so easy.

somini commented 10 years ago

As for the detailed_default.css, it should really be read first from ~/.config/tagaini.net

igyftos commented 9 years ago

The detailed_default.css works for me properly as well, however it does not seem to work from ~/.config/tagaini.net/detailed_default.css, but rather from /usr/share/tagainijisho/detailed_default.css for some reason.

:+1:

Gnurou commented 7 years ago

Ok, so I had to switch to a dark theme myself to seriously address this issue. >_< I have pushed a few commits that fix this in the qt5 branch. They make everything look good with both light and dark color schemes and will be included in the next release. Was I less neglectful with my use of colors, this problem would not have happened at all - apologies for that and for taking 2 years to fix such a trivial issue.