HaikuDepot: Change text view colour in rating window

Sets B_DOCUMENT_BACKGROUND_COLOR for the comment text view.
The former B_PANEL_BACKGROUND_COLOR made it look un-editable.
Unfortunately, I'm unable to set the text colour to
B_DOCUMENT_TEXT_COLOR; it still uses B_PANEL_TEXT_COLOR.
Currently those are both black by default.

There are still a few instances left before closing #11689.
This commit is contained in:
Humdinger 2017-01-18 10:30:36 +01:00
parent f31b1a2faf
commit 28966a1456
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ RatePackageWindow::RatePackageWindow(BWindow* parent, BRect frame,
fRatingText = parser.CreateDocumentFromMarkup(""); fRatingText = parser.CreateDocumentFromMarkup("");
fTextView->SetInsets(10.0f); fTextView->SetInsets(10.0f);
fTextView->SetViewUIColor(B_DOCUMENT_BACKGROUND_COLOR);
fTextView->SetTextDocument(fRatingText); fTextView->SetTextDocument(fRatingText);
fTextView->SetTextEditor(fTextEditor); fTextView->SetTextEditor(fTextEditor);