Skip to content

Set notification text color so it is always visible with third party themes

Text in the body of notifications is displayed in a TextArea without a background (I'm guessing to allow text selection).
This causes an issue in themes that expect text in textareas to be a different color than ordinary labels; the notification text can end up unreadable.

I'm using my own theme as an example to reproduce the issue:
https://gitlab.com/obnosim/velours/-/blob/plasma5/colors#L31

Plasma picks Colors:View:ForegroundNormal (here, black) for textareas and Colors:Window:ForegroundNormal (here, white) for other labels.

Screenshots
Breeze Light (dark text everywhere) Breeze Dark (light text everywhere) Velours (light text in labels, dark text in textareas)
TextArea Breeze Light textarea Breeze Dark textarea Velours textarea
Notifications before change image image image image image image Black on black, unreadable
Notifications after change image image image image image image

I'm very much a beginner with regards to QtQuick and Plasma development, so it's quite possible that this is not the right solution.

Edited by obno sim

Merge request reports