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 <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Zardshard 2023-08-15 08:03:06 -04:00 committed by waddlesplash
parent 51555e0784
commit 5b5b829f2c

View File

@ -24,7 +24,7 @@
GradientControl::GradientControl(BMessage* message, BHandler* target) 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), B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE),
fGradient(new ::Gradient()), fGradient(new ::Gradient()),
fGradientBitmap(NULL), fGradientBitmap(NULL),
@ -455,7 +455,7 @@ void
GradientControl::GetPreferredSize(float* width, float* height) GradientControl::GetPreferredSize(float* width, float* height)
{ {
if (width != NULL) if (width != NULL)
*width = 259; *width = 100;
if (height != NULL) if (height != NULL)
*height = 19; *height = 19;