Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,12 @@ protected void onPaint(PaintEvent e) {
}
private void updateHeaderImage(Color bg, Rectangle bounds, int theight, int realtheight) {
Color gradient = getTitleBarGradientBackground() != null ? getTitleBarGradientBackground() : getBackground();
if (gradient.equals(bg)) {
// Flat look: gradient and background are the same, no image needed
if (gradient.equals(bg) && bg.equals(getBackground())) {
// Section is uniform; the body background already fills everything.
super.setBackgroundImage(null);
return;
}
// Image paints the title bar contrast against the section body.
Image image = FormImages.getInstance().getSectionGradientImage(gradient, bg, realtheight,
theight, marginHeight, getDisplay());
super.setBackgroundImage(image);
Expand Down
Loading