Bug 473630

Summary: dark foreground color from KColorScheme for dark themed gnome3 on rhel8
Product: [Frameworks and Libraries] frameworks-kconfigwidgets Reporter: Teodor Petrov <fuscated>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.96.0   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Unreadable charts
Unreadable framegraph

Description Teodor Petrov 2023-08-22 10:31:00 UTC
Created attachment 161107 [details]
Unreadable charts

I am using local build from 19552f5f62f5946b5bdcf136f3876c05cf757b75
The OS is Rocky Linux 8.8.
I'm using Gnome 3 (potentially 3.36.1).
The Adwaita-dark theme.
kdiagram-2.8.0
Qt 5.15.3
kf5-* libs are 5.96.0-1

The charts and the flame graphs are hardly readable. See the screenshots.
Comment 1 Teodor Petrov 2023-08-22 10:31:21 UTC
Created attachment 161108 [details]
Unreadable framegraph
Comment 2 Milian Wolff 2023-08-23 08:15:51 UTC
this is probably an issue due to KColorScheme not detecting a dark system theme for such a configuration setup. I'm not sure how to fix this, we just do:

```
    KColorScheme scheme(QPalette::Active, KColorScheme::Window);
    QPen foreground(scheme.foreground().color());
```

I guess this is wrong for your setup - it would have to be fixed somehow within KColorScheme I guess. Suggestions welcome, but I won't be spending time on fixing this as I don't use such a setup myself.
Comment 3 Teodor Petrov 2023-08-23 08:37:09 UTC
Could you redirect this issue to KColorScheme people?
Comment 4 Milian Wolff 2023-08-23 09:49:51 UTC
reassigning
Comment 5 Milian Wolff 2023-08-23 10:09:20 UTC
apparently this got work-arounded in recent gnome versions, see https://github.com/FedoraQt/QGnomePlatform/pull/132