IK: ColumnListView dark mode fix
Change-Id: I19c4ad3f617b6fb9db15a4e8f0a9bae459f61e97 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7934 Haiku-Format: Haiku-format Bot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
32bdd3c01d
commit
d404a2f036
@@ -125,6 +125,8 @@ static const unsigned char kUpSortArrow8x8Invert[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const float kTintedLineTint = 1.04;
|
static const float kTintedLineTint = 1.04;
|
||||||
|
static const float kTintedLineTintDark = 0.90;
|
||||||
|
|
||||||
|
|
||||||
static const float kMinTitleHeight = 16.0;
|
static const float kMinTitleHeight = 16.0;
|
||||||
static const float kMinRowHeight = 16.0;
|
static const float kMinRowHeight = 16.0;
|
||||||
@@ -3372,8 +3374,12 @@ OutlineView::RedrawColumn(BColumn* column, float leftEdge, bool isFirstColumn)
|
|||||||
highColor = fMasterView->Color(B_COLOR_BACKGROUND);
|
highColor = fMasterView->Color(B_COLOR_BACKGROUND);
|
||||||
lowColor = fMasterView->Color(B_COLOR_BACKGROUND);
|
lowColor = fMasterView->Color(B_COLOR_BACKGROUND);
|
||||||
}
|
}
|
||||||
if (tintedLine)
|
if (tintedLine) {
|
||||||
lowColor = tint_color(lowColor, kTintedLineTint);
|
if (lowColor.IsLight())
|
||||||
|
lowColor = tint_color(lowColor, kTintedLineTint);
|
||||||
|
else
|
||||||
|
lowColor = tint_color(lowColor, kTintedLineTintDark);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if DOUBLE_BUFFERED_COLUMN_RESIZE
|
#if DOUBLE_BUFFERED_COLUMN_RESIZE
|
||||||
@@ -3515,8 +3521,12 @@ OutlineView::Draw(BRect invalidBounds)
|
|||||||
lowColor = fMasterView->Color(B_COLOR_NON_FOCUS_SELECTION);
|
lowColor = fMasterView->Color(B_COLOR_NON_FOCUS_SELECTION);
|
||||||
} else
|
} else
|
||||||
lowColor = fMasterView->Color(B_COLOR_BACKGROUND);
|
lowColor = fMasterView->Color(B_COLOR_BACKGROUND);
|
||||||
if (tintedLine)
|
if (tintedLine) {
|
||||||
lowColor = tint_color(lowColor, kTintedLineTint);
|
if (lowColor.IsLight())
|
||||||
|
lowColor = tint_color(lowColor, kTintedLineTint);
|
||||||
|
else
|
||||||
|
lowColor = tint_color(lowColor, kTintedLineTintDark);
|
||||||
|
}
|
||||||
|
|
||||||
for (int columnIndex = 0; columnIndex < numColumns; columnIndex++) {
|
for (int columnIndex = 0; columnIndex < numColumns; columnIndex++) {
|
||||||
BColumn* column = (BColumn*) fColumns->ItemAt(columnIndex);
|
BColumn* column = (BColumn*) fColumns->ItemAt(columnIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user