ControlLook: style changes only

whitespace
indent fix (tiny)
This commit is contained in:
John Scipione
2016-03-22 12:00:35 -07:00
parent 59e1b2f4ce
commit 5b2aa7f856
+8 -6
View File
@@ -1777,7 +1777,7 @@ BControlLook::DrawLabel(BView* view, const char* label, BRect rect,
const BAlignment& alignment, const rgb_color* textColor) const BAlignment& alignment, const rgb_color* textColor)
{ {
DrawLabel(view, label, NULL, rect, updateRect, base, flags, alignment, DrawLabel(view, label, NULL, rect, updateRect, base, flags, alignment,
textColor); textColor);
} }
@@ -1795,9 +1795,9 @@ BControlLook::DrawLabel(BView* view, const char* label, const rgb_color& base,
&& view->Parent()->Parent() == NULL && view->Parent()->Parent() == NULL
&& (flags & B_IGNORE_OUTLINE) == 0; && (flags & B_IGNORE_OUTLINE) == 0;
rgb_color low; rgb_color low;
rgb_color color; rgb_color color;
rgb_color glowColor; rgb_color glowColor;
if (textColor != NULL) if (textColor != NULL)
glowColor = *textColor; glowColor = *textColor;
@@ -1822,14 +1822,16 @@ BControlLook::DrawLabel(BView* view, const char* label, const rgb_color& base,
drawing_mode oldMode = view->DrawingMode(); drawing_mode oldMode = view->DrawingMode();
if (isDesktop) { if (isDesktop) {
// Enforce proper use of desktop label colors. // enforce proper use of desktop label colors
if(low.Brightness() < 100) { if (low.Brightness() < 100) {
if (textColor == NULL) if (textColor == NULL)
color = make_color(255, 255, 255); color = make_color(255, 255, 255);
glowColor = make_color(0, 0, 0); glowColor = make_color(0, 0, 0);
} else { } else {
if (textColor == NULL) if (textColor == NULL)
color = make_color(0, 0, 0); color = make_color(0, 0, 0);
glowColor = make_color(255, 255, 255); glowColor = make_color(255, 255, 255);
} }