Currently, if you interact with one of the color temperature sliders
by scrolling, the preview message and full-screen color tint are
activated but never deactivated. This is because the deactivation only
happens in an `onPressedChanged` handler, but with a scroll, there is no
change to the `pressed` property's status, so it never fires and hence
the message and overlay never disappear.
This commit fixes that by using a timer to hide them that only triggers
when a slider is manipulated using a scroll.
BUG: 458675
FIXED-IN: 5.26
Currently we have a situation where in order to change the Night Color mode,
you have to go through Automatic mode first (and thereby make a geolocation
network request) as it's the default setting. With this commit, you turn on
Night Color and choose an activation mode all in a single step using the
combobox, bypassing this issue and simplifying the UI too.
with 362cdd6aff plasma-workspace
disables api deprecated before 5.98, breaking the build on Qt5
As we depend from frameworks new enough now, remove the ifdefs and use only the new api
Until there's conclusive science that color temperature affects eye strain,
KDE should not make any such claims.
There is no scientific evidence that blue light from computer monitors has
anything to do with eye strain or sleep patterns. This is folklore based on
some faulty research from decades ago that somehow made it into the mainstream.
Color temperature ends up being just a matter of personal preference. Actual
studies using lenses showed that blocking blue light did not help people who
suffer from eye strain at all (a TL;DR of many studies is this:
https://pubmed.ncbi.nlm.nih.gov/29044670/).
Some other links, digested for popular science:
- https://onezero.medium.com/blue-light-isnt-as-bad-as-you-think-d9e1e48f0cc6
- https://time.com/5752454/blue-light-sleep/
When using a language that's wordier than English and this label becomes
a two-line string, currently the layout breaks and the string overflows
because the Label item that draws it has no maximum height and elision
mode set.
This commit fixes that by setting them accordingly, and also using a
standard icon size for the icon so that there's actually enough room for
two lines of text.
BUG: 458614
FIXED-IN: 5.24.7
Track the selected GTK theme in the model only. This fixes setting to default when the GTK pages was never opened
Override isSaveNeeded instead of calling setNeedsSave, this fixes the apply button enablement
This fixes that the titlebar does not update its accent color when
switching from transparent to another color.
Test: choose From current color scheme, apply and then choose From
wallpaper, apply.
Use the proper DBus signal to notify the change of
accentColorFromWallpaper.
applyScheme needs the latest accentColor but when it's called from `KCMColors::saveColors()`,
the accent color in kdeglobals is still old, that's why the hack works
by saving the value before `ManagedConfigModule::save()`. Therefore we
can pass the latest accent color value to applyScheme to fix it and
remove the ugly hack.
Now users can modify LC_ADDRESS, LC_IDENTIFICATION, LC_NAME and LC_TELEPHONE from region settings.
See LC_IDENTIFICATION example here: https://lh.2xlibre.net/locale/fi_FI/
BUG: 204525
BUG: 430801