From 5b5b829f2c5fe7daac5737694076b8eb3aec7416 Mon Sep 17 00:00:00 2001 From: Zardshard <0azrune6@zard.anonaddy.com> Date: Tue, 15 Aug 2023 08:03:06 -0400 Subject: [PATCH] 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 Tested-by: Commit checker robot --- src/apps/icon-o-matic/gui/GradientControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/icon-o-matic/gui/GradientControl.cpp b/src/apps/icon-o-matic/gui/GradientControl.cpp index 0ebf38acb4..b3fe78dce4 100644 --- a/src/apps/icon-o-matic/gui/GradientControl.cpp +++ b/src/apps/icon-o-matic/gui/GradientControl.cpp @@ -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;