Bug 473630 - dark foreground color from KColorScheme for dark themed gnome3 on rhel8
Summary: dark foreground color from KColorScheme for dark themed gnome3 on rhel8
Status: REPORTED
Alias: None
Product: frameworks-kconfigwidgets
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.96.0
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-22 10:31 UTC by Teodor Petrov
Modified: 2023-08-23 10:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Unreadable charts (76.78 KB, image/png)
2023-08-22 10:31 UTC, Teodor Petrov
Details
Unreadable framegraph (8.55 KB, image/png)
2023-08-22 10:31 UTC, Teodor Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
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