| Summary: | [Feature Request] Allow websites to detect dark or light theme in use | ||
|---|---|---|---|
| Product: | [Applications] Falkon | Reporter: | Sughosha <sughosha.v> |
| Component: | general | Assignee: | David Rosca <nowrep> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hervyqa, maty78485, thomholwerda |
| Priority: | NOR | ||
| Version First Reported In: | 3.1.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/network/falkon/-/commit/4a8236a3ee67a9a88dc8e95baef93eb959df4df5 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | left: falkon, right: firefox | ||
|
Description
Sughosha
2021-07-15 16:28:16 UTC
Created attachment 146694 [details]
left: falkon, right: firefox
I see several websites using CSS Media Feature "prefers-color-scheme" like apps.kde.org. But it doesn't work properly. And falkon:start homepage also needs to support system themes (especially dark theme). This should definitely be an option. Do note that the existing Falkon setting "Force dark mode", listed under Preferences > Browsing, is not the same. This setting, when enabled, will even try to apply custom dark modes to websites that don't have one, which can yield... Problematic results, and is a bit of a brute-force approach when more elegant solutions exist (as mentioned by the OP). Other browsers already do this - Firefox, Chrome, etc. - so I think it's safe to say users expect this. A possibly relevant merge request was started @ https://invent.kde.org/network/falkon/-/merge_requests/103 Git commit 4a8236a3ee67a9a88dc8e95baef93eb959df4df5 by Juraj Oravec. Committed on 20/12/2024 at 22:16. Pushed by jurajo into branch 'master'. Add "Preffer color scheme" option Related: bug 497331 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com> M +37 -13 src/lib/app/mainapplication.cpp M +2 -0 src/lib/app/mainapplication.h M +6 -0 src/lib/app/qzcommon.h M +15 -0 src/lib/preferences/preferences.cpp M +28 -1 src/lib/preferences/preferences.ui https://invent.kde.org/network/falkon/-/commit/4a8236a3ee67a9a88dc8e95baef93eb959df4df5 |