Icon-O-Matic: Let GradientControl shrink further

This allows Icon-O-Matic to be shrunk further horizontally.

Change-Id: Idd54a51dc0d20dcd981dc1ef10d0d5a7a78979cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6870
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Zardshard
2023-08-23 15:26:21 +00:00
committed by waddlesplash
parent 51555e0784
commit 5b5b829f2c
@@ -24,7 +24,7 @@
GradientControl::GradientControl(BMessage* message, BHandler* target)
: BView(BRect(0, 0, 259, 19), "gradient control", B_FOLLOW_NONE,
: BView(BRect(0, 0, 100, 19), "gradient control", B_FOLLOW_NONE,
B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE),
fGradient(new ::Gradient()),
fGradientBitmap(NULL),
@@ -455,7 +455,7 @@ void
GradientControl::GetPreferredSize(float* width, float* height)
{
if (width != NULL)
*width = 259;
*width = 100;
if (height != NULL)
*height = 19;