Small code simplication cleanup and add comment.
This commit is contained in:
@@ -1948,13 +1948,13 @@ BControlLook::_DrawButtonFrame(BView* view, BRect& rect,
|
|||||||
view->StrokeRoundRect(rect, leftTopRadius, leftTopRadius);
|
view->StrokeRoundRect(rect, leftTopRadius, leftTopRadius);
|
||||||
rect.InsetBy(1, 1);
|
rect.InsetBy(1, 1);
|
||||||
} else {
|
} else {
|
||||||
|
cornerBgColor = background;
|
||||||
if ((flags & B_BLEND_FRAME) != 0) {
|
if ((flags & B_BLEND_FRAME) != 0) {
|
||||||
cornerBgColor = (rgb_color){ background.red, background.blue,
|
// set the background color to transparent for the case
|
||||||
background.green, 0 };
|
// that we are on the desktop
|
||||||
|
cornerBgColor.alpha = 0;
|
||||||
view->SetDrawingMode(B_OP_ALPHA);
|
view->SetDrawingMode(B_OP_ALPHA);
|
||||||
} else
|
}
|
||||||
cornerBgColor = background;
|
|
||||||
|
|
||||||
edgeLightColor = _EdgeLightColor(background,
|
edgeLightColor = _EdgeLightColor(background,
|
||||||
contrast * ((flags & B_DISABLED) != 0 ? 0.0 : 1.0),
|
contrast * ((flags & B_DISABLED) != 0 ? 0.0 : 1.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user