Terminal: Make Colors window height shorter and font-dependent
Roughly the same height as the Appearance window at 12pt font. Change-Id: Iaa456aecfde6ebe92f4829e3aabca6a29b68bc08 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8847 Tested-by: Commit checker robot <[email protected]> Haiku-Format: Haiku-format Bot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
622853ff8e
commit
4ae0548774
@@ -12,6 +12,7 @@
|
||||
#include <Catalog.h>
|
||||
#include <ColorItem.h>
|
||||
#include <ColorListView.h>
|
||||
#include <ControlLook.h>
|
||||
#include <Directory.h>
|
||||
#include <Entry.h>
|
||||
#include <File.h>
|
||||
@@ -114,7 +115,8 @@ ThemeView::ThemeView(const char* name, const BMessenger& messenger)
|
||||
|
||||
fColorPreview->Parent()->SetExplicitMaxSize(BSize(B_SIZE_UNSET, fPicker->Bounds().Height()));
|
||||
fAttrList->SetSelectionMessage(new BMessage(MSG_COLOR_ATTRIBUTE_CHOSEN));
|
||||
fScrollView->SetExplicitMinSize(BSize(B_SIZE_UNSET, 22 * 16));
|
||||
float minHeight = be_control_look->DefaultItemSpacing() * 20;
|
||||
fScrollView->SetExplicitMinSize(BSize(B_SIZE_UNSET, minHeight));
|
||||
fColorSchemeField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
_MakeColorSchemeMenu();
|
||||
|
||||
Reference in New Issue
Block a user