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

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 26 Oct 2015 11:43:25 +0100

Am 26/10/2015 um 02:47 schrieb looncraz-github.setviewuicolor:

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.
[...]
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);

Why should a call to SetLayout() change the colors of the top view?
How would I explain this to my children? :-)

Bye,
Axel.

Other related posts: