Use an application stylesheet
Closed, ResolvedPublic

Description

We currently use Qt stylesheets in some places (mostly positionable tags to my knowledge).
By using a global per-application stylesheet we should be able to make kphotoalbum themeable for users.

johanneszarl triaged this task as Low priority.
johanneszarl closed this task as Resolved.May 18 2020, 10:46 PM
johanneszarl moved this task from Backlog to v5.7 on the KPhotoAlbum board.
johanneszarl claimed this task.

This is possible with 04a3d5e881368111983003ba32d29e1871eebc80. There's now only a single place to define stylesheet information in the application, and the user can override the builtin style.

The only thing remaining is to install a default stylesheet and use that one instead of the hardcoded one in main.cpp.
The API for QWidget::setStylesheet() is not tailored towards reading a file, though, so I will call it a day and leave it as is for now.