Skip to content

Avoid recreating KColorScheme instances

Nicolas Fella requested to merge work/colorscheme into master

We recreate the same KColorScheme object a lot, which is quite wasteful.

Instead create a helper singleton that gives us access to a cached KColorScheme.

The singleton also reacts to the color scheme setting changing and refreshes the cached instance

Merge request reports

Loading