Yes, that worked. Odd that the code itself isn't generating the red
text when using the dark theme unless the built-in style sheet missed
it. At least the external CSS is available in this instance.
On 2022-01-09 17:46, Glenn Fowler wrote:
Right,
You have to add any overrides. Try:
/* Negative number color */
.gnc-class-negative-numbers {
color: red;
}
This may help as well to tweak other things:
https://github.com/Gnucash/gnucash/blob/maint/doc/gtk-3.0.css
https://wiki.gnucash.org/wiki/GTK3#Cascading_Style_Sheets_.28CSS.29
On Sun, Jan 9, 2022 at 8:10 PM AC <gnuc...@acarver.net> wrote:
Right, I already have that file for other items but I don't have
anything in there that's controlling the font color. That's why I asked
if there is indeed a CSS class for negative numbers or if that's hard
coded into Gnucash itself.
On 2022-01-09 17:06, Glenn Fowler wrote:
On my Windows 10 machine I had to add "gtk-3.0.css" to
..\AppData\Roaming\GnuCash to override any defaults
On Sun, Jan 9, 2022 at 7:21 PM AC <gnuc...@acarver.net> wrote:
As part of trying to get a dark theme for Gnucash I enabled GTK's dark
theme:
gtk-application-prefer-dark-theme=true
But with that enabled negative numbers no longer show up in red, they're
all in white. I don't have any customized CSS that selects for a font
color so it shouldn't be that.
Is this a CSS accessible property or a direct code-driven property? If
it's code driven why is it not overriding the theme?
Where did the GTK themes get stashed on Windows? I can't find a theme
anywhere in APPDATA (Local or Roaming), and nothing obvious in Program
Files (x86).
_______________________________________________
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.