| Summary: | New Day/Night color: Scrolling over the color temperature sliders makes the screen change colors permanently until you click on them. | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | guimarcalsilva |
| Component: | kcm_nightcolor | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kwin-bugs-null, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/d8be398bd149a69199b001bc3a3e6d6c6dff9b7d | Version Fixed/Implemented In: | 5.26 |
| Sentry Crash Report: | |||
|
Description
guimarcalsilva
2022-09-03 21:51:40 UTC
Can reproduce. Probably changing the color back is done in an onReleased: signal handler, but the released signal never fires when the handle hasn't been dragged. Yep, the code that hides the preview UI fires in onPressedChanged, which isn't emitted when scrolling. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2098 Git commit d8be398bd149a69199b001bc3a3e6d6c6dff9b7d by Nate Graham. Committed on 10/09/2022 at 15:19. Pushed by ngraham into branch 'master'. kcms/nightcolor: hide preview message after scroll manipulation 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. FIXED-IN: 5.26 M +40 -10 kcms/nightcolor/package/contents/ui/main.qml https://invent.kde.org/plasma/plasma-workspace/commit/d8be398bd149a69199b001bc3a3e6d6c6dff9b7d |