Skip to content

Commit

Permalink
Bug 796669 - Dark Theme Text Colors Hard to Read
Browse files Browse the repository at this point in the history
Only add the register-foreground class when using Gnucash built in
colours. When this setting not used, the foreground colour by default
will be what ever the theme has set and will be down to the user to
over ride along with the other register colours.
  • Loading branch information
Bob-IT authored and jralls committed Jul 15, 2018
1 parent 43af50b commit 3e37b87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gnucash/register/register-gnome/gnucash-sheet.c
Expand Up @@ -2451,8 +2451,11 @@ gnucash_get_style_classes (GnucashSheet *sheet, GtkStyleContext *stylectxt,
field_type -= COLOR_NEGATIVE;
}
else
gtk_style_context_add_class (stylectxt, "register-foreground");

{
if (sheet->use_gnc_color_theme) // only add this class if builtin colors used
gtk_style_context_add_class (stylectxt, "register-foreground");
}

switch (field_type)
{
default:
Expand Down

0 comments on commit 3e37b87

Please sign in to comment.