From 0c002682ddb006217185001e57372d5efb705ae6 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Mon, 4 Sep 2017 16:13:40 +0100 Subject: [PATCH] Change the way negative-numbers class was defined in CSS After testing with Gtk3.10, needed to change the way the negative numbers class was defined. --- gnucash/gnome-utils/ui/gnucash-fallback.css | 9 ++------- gnucash/gnome-utils/ui/gnucash.css | 10 ++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gnucash/gnome-utils/ui/gnucash-fallback.css b/gnucash/gnome-utils/ui/gnucash-fallback.css index 8da155d3c5..b08a722211 100644 --- a/gnucash/gnome-utils/ui/gnucash-fallback.css +++ b/gnucash/gnome-utils/ui/gnucash-fallback.css @@ -33,13 +33,8 @@ } /* Negative value label colors */ -.default-color { - color: currentColor; -} - -.negative-numbers { - color: rgb(75%, 0%, 0%); -} +@define-color default-color currentColor; +@define-color negative-numbers rgb(75%, 0%, 0%); /* Change font color by mixing with grey */ .lighter-grey-mix { diff --git a/gnucash/gnome-utils/ui/gnucash.css b/gnucash/gnome-utils/ui/gnucash.css index e4a985aa52..57c897d161 100644 --- a/gnucash/gnome-utils/ui/gnucash.css +++ b/gnucash/gnome-utils/ui/gnucash.css @@ -2,6 +2,16 @@ unless they have been named or have style classes added. Only the widget type can be configured unless they are named in code */ + +/* Negative value label colors */ +.default-color { + color: @default-color; +} + +.negative-numbers { + color: @negative-numbers; +} + /* Register Cursor padding settings, make sure entry matches sheet.h */ cursor entry { padding: 2px 5px 2px 5px;