From 3e37b879977c94e1e1a2fd23e50ef5f031a2a0c2 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 15 Jul 2018 16:35:33 +0100 Subject: [PATCH] Bug 796669 - Dark Theme Text Colors Hard to Read 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. --- gnucash/register/register-gnome/gnucash-sheet.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnucash/register/register-gnome/gnucash-sheet.c b/gnucash/register/register-gnome/gnucash-sheet.c index 3b54bb4d9c..d3f68aca6c 100644 --- a/gnucash/register/register-gnome/gnucash-sheet.c +++ b/gnucash/register/register-gnome/gnucash-sheet.c @@ -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: