Skip to content

kcms/nightcolor: fix timing strings with narrow window widths

These labels lived in an item that had anchors.centerIn: parent set on it, which makes it have no maximum width and it can overflow. Clearly it was the intent to avoid that, because all the child items had their properties set up correctly for it.

To fix this, instead anchor to the parent's size and center the contents, and then make the parent fill the available width.

Resolves plasma-mobile#244 (closed)

No visual change with a desktop-sized window. With a mobile window, it's another story:

Before After
Before After

cc @teams/plasma-mobile @bharadwaj-raju

Merge request reports