Terminal: apply color preference changes to every tab
Change-Id: I0f7c788403e0d684c24cc5b5e5edfcab674bdb9d Reviewed-on: https://review.haiku-os.org/c/haiku/+/2075 Reviewed-by: Jérôme Duval <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
2cf8f0ee6b
commit
54bac4b789
@@ -945,7 +945,7 @@ TermWindow::MessageReceived(BMessage *message)
|
|||||||
fSavedFrame = Frame();
|
fSavedFrame = Frame();
|
||||||
BScreen screen(this);
|
BScreen screen(this);
|
||||||
|
|
||||||
for (int32 i = fTabView->CountTabs() - 1; i >= 0 ; i--)
|
for (int32 i = fTabView->CountTabs() - 1; i >= 0; i--)
|
||||||
_TermViewAt(i)->ScrollBar()->ResizeBy(0,
|
_TermViewAt(i)->ScrollBar()->ResizeBy(0,
|
||||||
(B_H_SCROLL_BAR_HEIGHT - 1));
|
(B_H_SCROLL_BAR_HEIGHT - 1));
|
||||||
|
|
||||||
@@ -965,7 +965,7 @@ TermWindow::MessageReceived(BMessage *message)
|
|||||||
float mbHeight = fMenuBar->Bounds().Height() + 1;
|
float mbHeight = fMenuBar->Bounds().Height() + 1;
|
||||||
fMenuBar->Show();
|
fMenuBar->Show();
|
||||||
|
|
||||||
for (int32 i = fTabView->CountTabs() - 1; i >= 0 ; i--)
|
for (int32 i = fTabView->CountTabs() - 1; i >= 0; i--)
|
||||||
_TermViewAt(i)->ScrollBar()->ResizeBy(0,
|
_TermViewAt(i)->ScrollBar()->ResizeBy(0,
|
||||||
-(B_H_SCROLL_BAR_HEIGHT - 1));
|
-(B_H_SCROLL_BAR_HEIGHT - 1));
|
||||||
|
|
||||||
@@ -987,8 +987,11 @@ TermWindow::MessageReceived(BMessage *message)
|
|||||||
case MSG_COLOR_CHANGED:
|
case MSG_COLOR_CHANGED:
|
||||||
case MSG_COLOR_SCHEME_CHANGED:
|
case MSG_COLOR_SCHEME_CHANGED:
|
||||||
{
|
{
|
||||||
_SetTermColors(_ActiveTermViewContainerView());
|
for (int32 i = fTabView->CountTabs() - 1; i >= 0; i--) {
|
||||||
_ActiveTermViewContainerView()->Invalidate();
|
TermViewContainerView* container = _TermViewContainerViewAt(i);
|
||||||
|
_SetTermColors(container);
|
||||||
|
container->Invalidate();
|
||||||
|
}
|
||||||
_ActiveTermView()->Invalidate();
|
_ActiveTermView()->Invalidate();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user