From a221b53b75783659ff7859dcffcc15668b119f29 Mon Sep 17 00:00:00 2001 From: kolo Date: Sat, 21 Mar 2026 11:35:32 +0300 Subject: [PATCH] update --- .../widgets/color_editor_overlay.dart | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/lib/features/dashboard/widgets/color_editor_overlay.dart b/lib/features/dashboard/widgets/color_editor_overlay.dart index 12e5a78..c66b28d 100644 --- a/lib/features/dashboard/widgets/color_editor_overlay.dart +++ b/lib/features/dashboard/widgets/color_editor_overlay.dart @@ -30,7 +30,7 @@ class _FullScreenBlurOverlayState extends State { final mq = MediaQuery.of(widget.context); final cardTop = mq.padding.top + kToolbarHeight + 16; const cardHeight = 220.0; - final panelTop = cardTop + cardHeight + 82; + final panelTop = cardTop + cardHeight + 65; const panelHeight = 410.0; return Material( @@ -116,7 +116,7 @@ class _FullScreenBlurOverlayState extends State { : dash.tempSecondaryHSV; return Padding( - padding: const EdgeInsets.fromLTRB(16, 14, 16, 14), + padding: const EdgeInsets.fromLTRB(16, 14, 16, 22), child: Column( mainAxisSize: MainAxisSize.max, crossAxisAlignment: CrossAxisAlignment.start, @@ -168,15 +168,10 @@ class _FullScreenBlurOverlayState extends State { ), ), GestureDetector( - onTap: () { + onTap: isSolid ? null : () { dash.setState(() { - if (isSolid) { - dash.tempGradientType = GradientType.linear; - // keep editingPrimary as is when turning off - } else { - dash.tempGradientType = GradientType.solid; - dash.editingPrimary = true; // ALWAYS switch to primary when entering Solid - } + dash.tempGradientType = GradientType.solid; + dash.editingPrimary = true; }); setPanelState(() {}); dash.overlayEntry?.markNeedsBuild(); @@ -237,7 +232,7 @@ class _FullScreenBlurOverlayState extends State { Expanded( child: LayoutBuilder( builder: (lbCtx, constraints) { - const reservedBelow = 66.0; + const reservedBelow = 70.0; final spectrumH = (constraints.maxHeight - reservedBelow).clamp( 40.0, double.infinity); @@ -258,11 +253,12 @@ class _FullScreenBlurOverlayState extends State { ), ), const SizedBox(height: 8), - ClipRect( - child: SizedBox( - height: 24, - child: ClipRRect( - borderRadius: BorderRadius.circular(6), + Padding( + padding: const EdgeInsets.only(bottom: 6), + child: ClipRRect( + borderRadius: BorderRadius.circular(6), + child: SizedBox( + height: 22, child: ColorPickerSlider( TrackType.hue, currentHSV,