Skip to content

kcms/nightcolor: Fix DayNightView on edge cases

Ismael Asensio requested to merge work/iasensio/nightview-edgecases into master

Improve the DayNightView model for some edge cases where the transition ends on the next day than it starts

  • Hide the edge icon when a transition overflows
  • Calculate better if the middle icon represents day or night
  • Move the gradient stop for position 0 to the end of the list, to avoid other stops overriding it at the same position.

BUG: 482032
FIXED-IN: 6.0.1

These screenshots include some debugging elements that are not present in the MR

BEFORE AFTER
Night transition overflow nightoverflow0_before nightoverflow0_after
Day transition overflow dayoverflow_before dayoverflow_after
Edited by Ismael Asensio

Merge request reports