Icon-O-Matic: fix variables name
This commit is contained in:
parent
14f0e6d73d
commit
c80329fa61
@ -96,24 +96,24 @@ public:
|
|||||||
|
|
||||||
// mark
|
// mark
|
||||||
BRect markRect = itemFrame;
|
BRect markRect = itemFrame;
|
||||||
float MarkRectFillTint = B_DARKEN_1_TINT;
|
float MarkRectBorderTint = B_DARKEN_1_TINT;
|
||||||
float MarkRectBorderTint = 1.04;
|
float MarkRectFillTint = 1.04;
|
||||||
float MarkTint = B_DARKEN_4_TINT;
|
float MarkTint = B_DARKEN_4_TINT;
|
||||||
// Dark Themes
|
// Dark Themes
|
||||||
rgb_color lowColor = owner->LowColor();
|
rgb_color lowColor = owner->LowColor();
|
||||||
if (lowColor.red + lowColor.green + lowColor.blue < 128 * 3) {
|
if (lowColor.red + lowColor.green + lowColor.blue < 128 * 3) {
|
||||||
MarkRectFillTint = B_LIGHTEN_2_TINT;
|
MarkRectBorderTint = B_LIGHTEN_2_TINT;
|
||||||
MarkRectBorderTint = 0.85;
|
MarkRectFillTint = 0.85;
|
||||||
MarkTint = 0.1;
|
MarkTint = 0.1;
|
||||||
}
|
}
|
||||||
markRect.left += kBorderOffset;
|
markRect.left += kBorderOffset;
|
||||||
markRect.right = markRect.left + kMarkWidth;
|
markRect.right = markRect.left + kMarkWidth;
|
||||||
markRect.top = (markRect.top + markRect.bottom - kMarkWidth) / 2.0;
|
markRect.top = (markRect.top + markRect.bottom - kMarkWidth) / 2.0;
|
||||||
markRect.bottom = markRect.top + kMarkWidth;
|
markRect.bottom = markRect.top + kMarkWidth;
|
||||||
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint));
|
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint));
|
||||||
owner->StrokeRect(markRect);
|
owner->StrokeRect(markRect);
|
||||||
markRect.InsetBy(1, 1);
|
markRect.InsetBy(1, 1);
|
||||||
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint));
|
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint));
|
||||||
owner->FillRect(markRect);
|
owner->FillRect(markRect);
|
||||||
if (fMarked) {
|
if (fMarked) {
|
||||||
markRect.InsetBy(2, 2);
|
markRect.InsetBy(2, 2);
|
||||||
|
@ -99,24 +99,24 @@ public:
|
|||||||
|
|
||||||
// mark
|
// mark
|
||||||
BRect markRect = itemFrame;
|
BRect markRect = itemFrame;
|
||||||
float MarkRectFillTint = B_DARKEN_1_TINT;
|
float MarkRectBorderTint = B_DARKEN_1_TINT;
|
||||||
float MarkRectBorderTint = 1.04;
|
float MarkRectFillTint = 1.04;
|
||||||
float MarkTint = B_DARKEN_4_TINT;
|
float MarkTint = B_DARKEN_4_TINT;
|
||||||
// Dark Themes
|
// Dark Themes
|
||||||
rgb_color lowColor = owner->LowColor();
|
rgb_color lowColor = owner->LowColor();
|
||||||
if (lowColor.red + lowColor.green + lowColor.blue < 128 * 3) {
|
if (lowColor.red + lowColor.green + lowColor.blue < 128 * 3) {
|
||||||
MarkRectFillTint = B_LIGHTEN_2_TINT;
|
MarkRectBorderTint = B_LIGHTEN_2_TINT;
|
||||||
MarkRectBorderTint = 0.85;
|
MarkRectFillTint = 0.85;
|
||||||
MarkTint = 0.1;
|
MarkTint = 0.1;
|
||||||
}
|
}
|
||||||
markRect.left += kBorderOffset;
|
markRect.left += kBorderOffset;
|
||||||
markRect.right = markRect.left + kMarkWidth;
|
markRect.right = markRect.left + kMarkWidth;
|
||||||
markRect.top = (markRect.top + markRect.bottom - kMarkWidth) / 2.0;
|
markRect.top = (markRect.top + markRect.bottom - kMarkWidth) / 2.0;
|
||||||
markRect.bottom = markRect.top + kMarkWidth;
|
markRect.bottom = markRect.top + kMarkWidth;
|
||||||
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint));
|
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint));
|
||||||
owner->StrokeRect(markRect);
|
owner->StrokeRect(markRect);
|
||||||
markRect.InsetBy(1, 1);
|
markRect.InsetBy(1, 1);
|
||||||
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint));
|
owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint));
|
||||||
owner->FillRect(markRect);
|
owner->FillRect(markRect);
|
||||||
if (fMarked) {
|
if (fMarked) {
|
||||||
markRect.InsetBy(2, 2);
|
markRect.InsetBy(2, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user