From c80329fa61d30d05cacbb237864b42c07e16de99 Mon Sep 17 00:00:00 2001 From: Janus Date: Tue, 9 Jun 2015 18:08:32 +0200 Subject: [PATCH] Icon-O-Matic: fix variables name --- src/apps/icon-o-matic/gui/PathListView.cpp | 12 ++++++------ src/apps/icon-o-matic/gui/StyleListView.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/apps/icon-o-matic/gui/PathListView.cpp b/src/apps/icon-o-matic/gui/PathListView.cpp index 41a52ce24a..01bad1b93d 100644 --- a/src/apps/icon-o-matic/gui/PathListView.cpp +++ b/src/apps/icon-o-matic/gui/PathListView.cpp @@ -96,24 +96,24 @@ public: // mark BRect markRect = itemFrame; - float MarkRectFillTint = B_DARKEN_1_TINT; - float MarkRectBorderTint = 1.04; + float MarkRectBorderTint = B_DARKEN_1_TINT; + float MarkRectFillTint = 1.04; float MarkTint = B_DARKEN_4_TINT; // Dark Themes rgb_color lowColor = owner->LowColor(); if (lowColor.red + lowColor.green + lowColor.blue < 128 * 3) { - MarkRectFillTint = B_LIGHTEN_2_TINT; - MarkRectBorderTint = 0.85; + MarkRectBorderTint = B_LIGHTEN_2_TINT; + MarkRectFillTint = 0.85; MarkTint = 0.1; } markRect.left += kBorderOffset; markRect.right = markRect.left + kMarkWidth; markRect.top = (markRect.top + markRect.bottom - kMarkWidth) / 2.0; markRect.bottom = markRect.top + kMarkWidth; - owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint)); + owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint)); owner->StrokeRect(markRect); markRect.InsetBy(1, 1); - owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint)); + owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint)); owner->FillRect(markRect); if (fMarked) { markRect.InsetBy(2, 2); diff --git a/src/apps/icon-o-matic/gui/StyleListView.cpp b/src/apps/icon-o-matic/gui/StyleListView.cpp index c3986a5288..bc9f6dbedb 100644 --- a/src/apps/icon-o-matic/gui/StyleListView.cpp +++ b/src/apps/icon-o-matic/gui/StyleListView.cpp @@ -99,24 +99,24 @@ public: // mark BRect markRect = itemFrame; - float MarkRectFillTint = B_DARKEN_1_TINT; - float MarkRectBorderTint = 1.04; + float MarkRectBorderTint = B_DARKEN_1_TINT; + float MarkRectFillTint = 1.04; float MarkTint = B_DARKEN_4_TINT; // Dark Themes rgb_color lowColor = owner->LowColor(); if (lowColor.red + lowColor.green + lowColor.blue < 128 * 3) { - MarkRectFillTint = B_LIGHTEN_2_TINT; - MarkRectBorderTint = 0.85; + MarkRectBorderTint = B_LIGHTEN_2_TINT; + MarkRectFillTint = 0.85; MarkTint = 0.1; } markRect.left += kBorderOffset; markRect.right = markRect.left + kMarkWidth; markRect.top = (markRect.top + markRect.bottom - kMarkWidth) / 2.0; markRect.bottom = markRect.top + kMarkWidth; - owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint)); + owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint)); owner->StrokeRect(markRect); markRect.InsetBy(1, 1); - owner->SetHighColor(tint_color(owner->LowColor(), MarkRectBorderTint)); + owner->SetHighColor(tint_color(owner->LowColor(), MarkRectFillTint)); owner->FillRect(markRect); if (fMarked) { markRect.InsetBy(2, 2);