Bug 487708

Summary: akregator 6.1.0 does not apply dark theme to the article content pane although the desktop uses a Dark Theme.
Product: [Applications] akregator Reporter: whatifgodwasoneofus
Component: internal browserAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: victorhck, whatifgodwasoneofus
Priority: NOR Keywords: qt6
Version: 6.1.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:

Description whatifgodwasoneofus 2024-05-28 19:23:25 UTC
STEPS TO REPRODUCE
1. Set the desktop's them to Breeze Dark
2. open Akregator, select a feed's article

OBSERVED RESULT
The article content is NOT rendered using the dark theme.

EXPECTED RESULT
The article content must be rendered using the dark theme.

SOFTWARE/OS VERSIONS

KDE Plasma Version: 6.0.5
KDE Frameworks Version:  6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
If I launch akregator forcing the dark mode via QT Web Engine env var, it works as expected:
```
QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkModeEnabled=default" akregator
```
However, it should work without this hack. My desktop theme changes during the day (via koi), and I'd like to enjoy this feature "dynamically".

This is a long-awaited feature for akregator, which is available starting from v6.1.5 (24.05.0). Maybe it has not been thoroughly tested on all platforms?
Comment 1 whatifgodwasoneofus 2024-05-28 19:26:37 UTC
(In reply to whatifgodwasoneofus from comment #0)
> QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkModeEnabled=default"

Sorry, the correct cmdline for the workaround is:
QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkModeEnabled=true" akregator
Comment 2 victorhck 2024-06-05 14:05:50 UTC
same issue here:

Operating System: openSUSE Tumbleweed 20240531
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-1-default (64-bit)
Graphics Platform: X11

Even if I run the hack shared, it doesn't works. I get this message:

$ QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkModeEnabled=true" akregator  

Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/libexec/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/libexec/qt6/qtwebengine_dictionaries'
failed to open /usr/lib64/dri/hybrid_drv_video.so
Not using hybrid_drv_video.so