Skip to content

Commit

Permalink
Linux: fixed popupmenu background when there's no compositor
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 10, 2023
1 parent c3fe927 commit f79715e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/LookAndFeel.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ struct PlugDataLook : public LookAndFeel_V4 {
shadowPath.addRoundedRectangle(Rectangle<float>(0.0f, 0.0f, width, height).reduced(10.0f), Constants::defaultCornerRadius);
StackShadow::renderDropShadow(g, shadowPath, Colour(0, 0, 0).withAlpha(0.6f), 10, { 0, 2 });

if(!Desktop::canUseSemiTransparentWindows()) {
g.fillAll(findColour(PlugDataColour::canvasBackgroundColourId));
}

// Add a bit of alpha to disable the opaque flag
auto background = findColour(PlugDataColour::popupMenuBackgroundColourId);
g.setColour(background);
Expand Down

0 comments on commit f79715e

Please sign in to comment.