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:
@@ -80,6 +80,7 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
|
|||||||
fSettings = settings;
|
fSettings = settings;
|
||||||
|
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
SetLowColor(ViewColor());
|
||||||
|
|
||||||
BPopUpMenu* menu = new BPopUpMenu("pick compression");
|
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",
|
fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression",
|
||||||
"Use Compression:", menu, true);
|
"Use Compression:", menu, true);
|
||||||
|
fCompressionMF->ResizeToPreferred();
|
||||||
|
fCompressionMF->SetDivider(
|
||||||
|
fCompressionMF->StringWidth(fCompressionMF->Label()) + 7);
|
||||||
AddChild(fCompressionMF);
|
AddChild(fCompressionMF);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -436,7 +436,8 @@ public:
|
|||||||
uint32 flags) :
|
uint32 flags) :
|
||||||
BView(frame, name, resize, 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 = new BPopUpMenu("Color Space");
|
||||||
mMenu->AddItem(new BMenuItem("None", CSMessage(B_NO_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)));
|
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("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)));
|
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 = new BMenuField(BRect(10,110,190,130), "Color Space Field", "Input Color Space", mMenu);
|
||||||
|
mField->SetDivider(mField->StringWidth(mField->Label()) + 7);
|
||||||
mField->SetViewColor(ViewColor());
|
mField->SetViewColor(ViewColor());
|
||||||
AddChild(mField);
|
AddChild(mField);
|
||||||
SelectColorSpace(g_settings.out_space);
|
SelectColorSpace(g_settings.out_space);
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ SGIView::SGIView(const BRect &frame, const char *name,
|
|||||||
fSettings(settings)
|
fSettings(settings)
|
||||||
{
|
{
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
SetLowColor(ViewColor());
|
||||||
|
|
||||||
BPopUpMenu* menu = new BPopUpMenu("pick compression");
|
BPopUpMenu* menu = new BPopUpMenu("pick compression");
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ TGAView::TGAView(const BRect &frame, const char *name,
|
|||||||
fSettings = settings;
|
fSettings = settings;
|
||||||
|
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
SetLowColor(ViewColor());
|
||||||
|
|
||||||
BMessage *pmsg;
|
BMessage *pmsg;
|
||||||
int32 val;
|
int32 val;
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
|
|||||||
uint32 resize, uint32 flags)
|
uint32 resize, uint32 flags)
|
||||||
: BView(frame, name, resize, flags)
|
: BView(frame, name, resize, flags)
|
||||||
{
|
{
|
||||||
SetViewColor(220,220,220,0);
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
SetLowColor(ViewColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ WonderBrushView::WonderBrushView(const BRect &frame, const char *name,
|
|||||||
fSettings(settings)
|
fSettings(settings)
|
||||||
{
|
{
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
SetLowColor(ViewColor());
|
||||||
|
|
||||||
// figure out where the text ends
|
// figure out where the text ends
|
||||||
font_height fh;
|
font_height fh;
|
||||||
|
|||||||
Reference in New Issue
Block a user