Commit 14e8e10f authored by Huon Imberger's avatar Huon Imberger Committed by Henrik Fehlauer

Fix background color for image view toolbar (crop/red-eye)

The slide-in toolbar in image view, used by the crop and red-eye tools, sets its content dynamically.
This content wasn't getting the app's palette, resulting in the background colour being fixed.
This was only a serious problem in light color schemes in fullscreen mode, where the background color of the tool stayed light but the text also went light (due to fullscreen being dark themed).

This patch simply manually sets the toolbar's content's palette when it changes.

Normal, before:

Normal, after:

Fullscreen, before

Fullscreen, after

Test Plan:
First set your color scheme to something light (e.g. Honeycomb, Zion).
Go to {nav View}, press `F4`, click the {nav Operations} tab, click {nav Crop} or {nav Red Eye Reduction}.
Go to fullscreen. The toolbar should be dark.

Reviewers: #gwenview, rkflx, ngraham

Reviewed By: #gwenview, rkflx, ngraham

Subscribers: ngraham

Differential Revision:
parent 00ee923e
......@@ -56,9 +56,7 @@ public:
QPalette pal = palette();
pal.setColor(QPalette::Window, pal.color(QPalette::Window).dark(120));
void setToolWidget(QWidget* widget)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment