Set the LowColor as ViewColor, so text looks better. Fix a few menufield

position/size issues. Use B_PANEL_BACKGROUND_COLOR instead of the raw 
numbers. Fixes bug #1800.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23996 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-02-18 08:57:35 +00:00
parent 2e0ba90d3f
commit dc0d6e4c0d
6 changed files with 12 additions and 2 deletions

View File

@ -80,6 +80,7 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
fSettings = settings;
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor());
BPopUpMenu* menu = new BPopUpMenu("pick compression");
@ -99,6 +100,9 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression",
"Use Compression:", menu, true);
fCompressionMF->ResizeToPreferred();
fCompressionMF->SetDivider(
fCompressionMF->StringWidth(fCompressionMF->Label()) + 7);
AddChild(fCompressionMF);
}

View File

@ -436,7 +436,8 @@ public:
uint32 flags) :
BView(frame, name, resize, flags)
{
SetViewColor(220,220,220,0);
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor());
mMenu = new BPopUpMenu("Color Space");
mMenu->AddItem(new BMenuItem("None", CSMessage(B_NO_COLOR_SPACE)));
mMenu->AddItem(new BMenuItem("RGB 8:8:8 32 bits", CSMessage(B_RGB32)));
@ -458,6 +459,7 @@ public:
mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits big-endian", CSMessage(B_RGBA15_BIG)));
mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits big-endian", CSMessage(B_RGB16)));
mField = new BMenuField(BRect(10,110,190,130), "Color Space Field", "Input Color Space", mMenu);
mField->SetDivider(mField->StringWidth(mField->Label()) + 7);
mField->SetViewColor(ViewColor());
AddChild(mField);
SelectColorSpace(g_settings.out_space);

View File

@ -78,6 +78,7 @@ SGIView::SGIView(const BRect &frame, const char *name,
fSettings(settings)
{
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor());
BPopUpMenu* menu = new BPopUpMenu("pick compression");

View File

@ -53,6 +53,7 @@ TGAView::TGAView(const BRect &frame, const char *name,
fSettings = settings;
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor());
BMessage *pmsg;
int32 val;

View File

@ -50,7 +50,8 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
uint32 resize, uint32 flags)
: BView(frame, name, resize, flags)
{
SetViewColor(220,220,220,0);
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor());
}
// ---------------------------------------------------------------

View File

@ -44,6 +44,7 @@ WonderBrushView::WonderBrushView(const BRect &frame, const char *name,
fSettings(settings)
{
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowColor(ViewColor());
// figure out where the text ends
font_height fh;