GnuCash
Contact   Instructions
Bug 798202 - Register input ignores theme on KDE rendering black text on black background
Summary: Register input ignores theme on KDE rendering black text on black background
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Register (show other bugs)
Version: 4.4
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: ui
QA Contact: ui
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-30 07:32 EDT by admin
Modified: 2021-06-11 04:12 EDT (History)
6 users (show)

See Also:


Attachments
black on black (9.50 KB, image/jpeg)
2021-05-30 07:32 EDT, admin
no flags Details
default theme black on black (19.88 KB, image/jpeg)
2021-05-30 07:33 EDT, admin
no flags Details

Description admin 2021-05-30 07:32:53 EDT
Created attachment 374081 [details]
black on black

The register input uses black text on a black background, this was a previous work around on 3.10 https://lists.gnucash.org/pipermail/gnucash-devel/2020-February/044606.html but no longer works since upgrading to 4.4.

It doesn't matter if the built in theme is enabled or disabled (see attached).

OS Ubuntu 21.04, Gnucash 4.4 installed from Ubuntu repos.
Comment 1 admin 2021-05-30 07:33:33 EDT
Created attachment 374082 [details]
default theme black on black
Comment 2 admin 2021-05-30 07:49:16 EDT
This is a workaround to make the input background white

.gnc-class-register-foreground.flat {                                                                                                                                                     
    background-color: white;                                                                        
}
Comment 4 John Ralls 2021-06-06 22:59:00 EDT
Bob-IT is there a good place in the register where we can get some hints from the theme and style the register appropriately without requiring the user to override the CSS?
Comment 5 Bob 2021-06-07 04:25:10 EDT
John, There already is some detection, it is used when Adwaita-dark is used so I am a bit confused why it is not working for this.

Also, if the preference "Use Gnucash built-in color theme" is set, why is there not have black on yellow.

Will setup Ubuntu 21.04 VM and have a look.

admin@rwky.net, what theme are you running?
Comment 6 admin 2021-06-07 05:07:27 EDT
I'm using "Breeze Dark" if you install from the KUbuntu ISO this comes with it.

The GTK theme is "Breeze" (again this comes with KUbuntu)
Comment 7 Bob 2021-06-07 12:40:56 EDT
Thank you, I have now setup a KUbuntu VM and downloaded Gnucash, set the theme to Breeze dark and can reproduce this bug.

Will investigate...
Comment 8 Chris Good 2021-06-07 21:26:54 EDT
See also https://lists.gnucash.org/pipermail/gnucash-user/2021-June/096795.html (I didn't like the dark theme. How to force using the default theme ?)
Comment 9 Bob 2021-06-10 09:27:34 EDT
O have pushed a fix to maint and will be in the next release 4.6 which involves adding the appropriate gnucash style class to the GtkEntry of the register.

As I can see it fixed my KUbuntu 21.04 VM will close.
Comment 10 admin 2021-06-11 04:12:23 EDT
Much appreciated!

Note You need to log in before you can comment on or make changes to this bug.