From Adrien Destugues <pulkomandy@xxxxxxxxx>:
Adrien Destugues has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/3561 ;)
Change subject: DeskCalc: Fix text color of expressionview
......................................................................
DeskCalc: Fix text color of expressionview
---
M src/apps/deskcalc/CalcView.cpp
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/61/3561/1
diff --git a/src/apps/deskcalc/CalcView.cpp b/src/apps/deskcalc/CalcView.cpp
index e2b86ec..8d8da20 100644
--- a/src/apps/deskcalc/CalcView.cpp
+++ b/src/apps/deskcalc/CalcView.cpp
@@ -299,6 +299,12 @@
} else {
fExpressionTextColor = ui_color(B_DOCUMENT_TEXT_COLOR);
fButtonTextColor = ui_color(B_PANEL_TEXT_COLOR);
+
+ BFont expressionViewFont;
+ fExpressionTextView->GetFontAndColor(0,
&expressionViewFont);
+ rgb_color fontColor = ui_color(B_DOCUMENT_TEXT_COLOR);
+
fExpressionTextView->SetFontAndColor(&expressionViewFont, B_FONT_ALL,
+ &fontColor);
}
return;
@@ -750,7 +756,7 @@
? fHeight : fHeight * kDisplayScaleY;
BFont font(be_bold_font);
font.SetSize(sizeDisp * kExpressionFontScaleY);
- rgb_color fontColor = fExpressionTextView->HighColor();
+ rgb_color fontColor = ui_color(B_DOCUMENT_TEXT_COLOR);
fExpressionTextView->SetFontAndColor(&font, B_FONT_ALL, &fontColor);
expressionRect.OffsetTo(B_ORIGIN);
--
To view, visit https://review.haiku-os.org/c/haiku/+/3561
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I994036ad5bce4c4fa5d8ac40fbc3481d7dfa8fa4
Gerrit-Change-Number: 3561
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange