Icon-o-Matic: fix variables name 2

* thanks to stippi for pointing out the problem.
This commit is contained in:
Janus
2015-06-09 18:55:46 +02:00
parent c80329fa61
commit ae59605d24
2 changed files with 18 additions and 18 deletions
+9 -9
View File
@@ -96,29 +96,29 @@ public:
// mark // mark
BRect markRect = itemFrame; BRect markRect = itemFrame;
float MarkRectBorderTint = B_DARKEN_1_TINT; float markRectBorderTint = B_DARKEN_1_TINT;
float MarkRectFillTint = 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) {
MarkRectBorderTint = B_LIGHTEN_2_TINT; markRectBorderTint = B_LIGHTEN_2_TINT;
MarkRectFillTint = 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(), MarkRectBorderTint)); 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(), MarkRectFillTint)); 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);
owner->SetHighColor(tint_color(owner->LowColor(), owner->SetHighColor(tint_color(owner->LowColor(),
MarkTint)); markTint));
owner->SetPenSize(2); owner->SetPenSize(2);
owner->StrokeLine(markRect.LeftTop(), markRect.RightBottom()); owner->StrokeLine(markRect.LeftTop(), markRect.RightBottom());
owner->StrokeLine(markRect.LeftBottom(), markRect.RightTop()); owner->StrokeLine(markRect.LeftBottom(), markRect.RightTop());
+9 -9
View File
@@ -99,29 +99,29 @@ public:
// mark // mark
BRect markRect = itemFrame; BRect markRect = itemFrame;
float MarkRectBorderTint = B_DARKEN_1_TINT; float markRectBorderTint = B_DARKEN_1_TINT;
float MarkRectFillTint = 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) {
MarkRectBorderTint = B_LIGHTEN_2_TINT; markRectBorderTint = B_LIGHTEN_2_TINT;
MarkRectFillTint = 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(), MarkRectBorderTint)); 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(), MarkRectFillTint)); 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);
owner->SetHighColor(tint_color(owner->LowColor(), owner->SetHighColor(tint_color(owner->LowColor(),
MarkTint)); markTint));
owner->SetPenSize(2); owner->SetPenSize(2);
owner->StrokeLine(markRect.LeftTop(), markRect.RightBottom()); owner->StrokeLine(markRect.LeftTop(), markRect.RightBottom());
owner->StrokeLine(markRect.LeftBottom(), markRect.RightTop()); owner->StrokeLine(markRect.LeftBottom(), markRect.RightTop());