[haiku-commits] BRANCH looncraz-github.setviewuicolor [5636ce989d00] src/kits/interface

  • From: looncraz-github.setviewuicolor <community@xxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 26 Oct 2015 02:47:00 +0100 (CET)

added 1 changeset to branch 'refs/remotes/looncraz-github/setviewuicolor'
old head: 15c75dfd9bba2bd7f814c18e99ffc3710fc50900
new head: 5636ce989d005749016ff9ff7fc1ce8859fbc5f0
overview: https://github.com/looncraz/haiku/compare/15c75dfd9bba...5636ce989d00

----------------------------------------------------------------------------

5636ce989d00: Set top view color

This is, it seems, the best place to do this. It is also necessary to
keep the _ColorsUpdated() setting for the top view.

Removing this causes the Tracker OpenWith window to have a white border.

Doing this in BWindow means it will only be called once, and at exactly
the proper time and only when the proper conditions are met.

[ looncraz <looncraz@xxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Commit: 5636ce989d005749016ff9ff7fc1ce8859fbc5f0
Author: looncraz <looncraz@xxxxxxxxxxxx>
Date: Mon Oct 26 01:33:40 2015 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+)
src/kits/interface/Window.cpp | 3 +++

----------------------------------------------------------------------------

diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp
index 9aba36c..8973215 100644
--- a/src/kits/interface/Window.cpp
+++ b/src/kits/interface/Window.cpp
@@ -2706,6 +2706,9 @@ BWindow::Run()
void
BWindow::SetLayout(BLayout* layout)
{
+ fTopView->SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
+ fTopView->SetLowUIColor(B_PANEL_BACKGROUND_COLOR);
+ fTopView->SetHighUIColor(B_PANEL_TEXT_COLOR);
fTopView->SetLayout(layout);
}



Other related posts: