# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,68,177)
  Persistent = True
  Arrangement = Arrange.Fill
  { svwImageProperty ScrollView
    MoveScaled(1,1,65,175)
    Arrangement = Arrange.Vertical
    Border = False
    ScrollBar = Scroll.Vertical
    { tabBrush TabPanel
      MoveScaled(1,1,61,53)
      Arrangement = Arrange.Vertical
      Border = False
      Count = 4
      CloseButton = True
      Index = 0
      Text = ("Color")
      { Panel3 Panel
        MoveScaled(2,1,54,38)
        Expand = True
        Arrangement = Arrange.Vertical
        Spacing = True
        Margin = True
        { cchColor ColorChooser
          MoveScaled(0,0,50,37)
          Expand = True
          Border = False
        }
      }
      { Separator8 Separator
        MoveScaled(25,41,28,0)
      }
      { Panel8 Panel
        MoveScaled(3,42,46,6)
        Arrangement = Arrange.Fill
        { palColor ColorPalette
          MoveScaled(0,0,44,6)
          Border = False
        }
      }
      Index = 1
      Text = ("Gradient")
      { Panel4 Panel
        MoveScaled(1,1,55,38)
        Expand = True
        Arrangement = Arrange.Vertical
        Spacing = True
        Margin = True
        { HBox2 HBox
          MoveScaled(1,0,53,4)
          Spacing = True
          { radLinear RadioButton
            MoveScaled(0,0,19,4)
            AutoResize = True
            Text = ("Linear gradient")
            Value = True
          }
          { radRadial RadioButton
            MoveScaled(21,0,19,4)
            AutoResize = True
            Text = ("Radial gradient")
          }
        }
        { Panel2 Panel
          MoveScaled(0,5,47,12)
          Arrangement = Arrange.Vertical
          Border = Border.Plain
          { dwgGradientColor DrawingArea
            MoveScaled(0,0,47,6)
            Expand = True
            Focus = True
          }
          { Separator2 Separator
            MoveScaled(23,7,12,0)
          }
          { HBox1 HBox
            MoveScaled(0,8,47,4)
            { btnAddGradient ToolButton
              MoveScaled(0,0,4,4)
              ToolTip = ("Add gradient stop")
              Picture = Picture["icon:/small/add"]
            }
            { btnRemoveGradient ToolButton
              MoveScaled(4,0,4,4)
              ToolTip = ("Remove gradient stop")
              Picture = Picture["icon:/small/remove"]
            }
            { btnColorGradient ToolButton
              MoveScaled(8,0,4,4)
              ToolTip = ("Select gradient stop color") & "..."
              Picture = Picture["icon:/small/color"]
            }
            { btnExchangeGradient ToolButton
              MoveScaled(12,0,4,4)
              ToolTip = ("Invert gradient")
              Picture = Picture["icon:/small/flip-h"]
            }
            { panRadius HBox
              MoveScaled(18,0,28,4)
              Expand = True
              Spacing = True
              { Separator1 Separator
                MoveScaled(0,0,1,4)
              }
              { btnResetRadius ToolButton
                MoveScaled(2,0,4,4)
                ToolTip = ("Invert gradient")
                Picture = Picture["icon:/small/zoom-normal"]
              }
              { Label3 Label
                MoveScaled(9,0,6,4)
                AutoResize = True
                Text = ("Radius")
              }
              { sldRadius Slider
                MoveScaled(15,0,13,4)
                Expand = True
                Value = 50
              }
            }
          }
        }
        { panGradient Panel
          MoveScaled(0,18,47,20)
          Expand = True
          Spacing = True
          { dwgGradient DrawingArea
            MoveScaled(0,0,35,20)
            Border = Border.Plain
          }
          { panGradientToolbar VBox
            MoveScaled(39,0,4,18)
            { btnRotateR ToolButton
              MoveScaled(0,0,4,4)
              ToolTip = ("Rotate clockwise")
              Picture = Picture["icon:/small/rotate-right"]
            }
            { btnRotateL ToolButton
              MoveScaled(0,4,4,4)
              ToolTip = ("Rotate counter-clockwise")
              Picture = Picture["icon:/small/rotate-left"]
            }
            { btnFlipV ToolButton
              MoveScaled(0,8,4,4)
              ToolTip = ("Vertical flip")
              Picture = Picture["icon:/small/flip-v"]
            }
            { btnFlipH ToolButton
              MoveScaled(0,12,4,4)
              ToolTip = ("Horizontal flip")
              Picture = Picture["icon:/small/flip-h"]
            }
          }
        }
      }
      { Separator7 Separator
        MoveScaled(13,41,17,0)
      }
      { Panel9 Panel
        MoveScaled(5,42,46,6)
        Arrangement = Arrange.Fill
        Margin = True
        { dwgGradientStack DrawingArea
          MoveScaled(0,0,45,4)
          Mouse = Mouse.Pointing
        }
      }
      Index = 2
      Text = ("Clipboard")
      { gvwClipboard GridView
        MoveScaled(1,4,59,19)
        Mouse = Mouse.Pointing
        Expand = True
        Border = False
        Mode = Select.Single
        Grid = False
        ScrollBar = Scroll.Vertical
      }
      Index = 3
      Text = ("Shapes")
      { gvwShape GridView
        MoveScaled(1,4,46,19)
        Mouse = Mouse.Pointing
        Expand = True
        Border = False
        Mode = Select.Single
        Grid = False
        ScrollBar = Scroll.Vertical
      }
      Index = 0
    }
    { Separator6 Separator
      MoveScaled(20,56,15,0)
    }
    { HBox4 HBox
      MoveScaled(2,58,56,4)
      { btnStroke ToolButton btnAction
        Name = "btnStroke"
        MoveScaled(0,0,4,4)
        Tag = "stroke"
        ToolTip = ("Stroke")
        Picture = Picture["icon:/small/pen"]
      }
      { btnFill ToolButton btnAction
        Name = "btnFill"
        MoveScaled(4,0,4,4)
        Tag = "fill"
        ToolTip = ("Fill")
        Picture = Picture["icon:/small/fill"]
      }
      { btnClear ToolButton btnAction
        Name = "btnClear"
        MoveScaled(8,0,4,4)
        Tag = "clear"
        ToolTip = ("Clear")
        Picture = Picture["icon:/small/erase"]
      }
      { Separator9 Separator
        MoveScaled(12,0,1,4)
      }
      { btnColorize ToolButton btnAction
        Name = "btnColorize"
        MoveScaled(13,0,4,4)
        Tag = "colorize"
        ToolTip = ("Colorize")
        Picture = Picture["icon:/small/color"]
      }
      { btnDesaturate ToolButton btnAction
        Name = "btnDesaturate"
        MoveScaled(16,0,4,4)
        Tag = "desaturate"
        ToolTip = ("Desaturate")
        Picture = Picture["icon:/small/saturation"]
      }
      { btnTransparent ToolButton btnAction
        Name = "btnTransparent"
        MoveScaled(20,0,4,4)
        Tag = "transparent"
        ToolTip = ("Make transparent")
        Picture = Picture["icon:/small/transparency"]
      }
      { btnDarkTheme ToolButton btnAction
        Name = "btnDarkTheme"
        MoveScaled(24,0,4,4)
        Tag = "invert"
        ToolTip = ("Invert colors for dark themes")
        Picture = Picture["icon:/small/invert"]
      }
      { Separator5 Separator
        MoveScaled(35,0,1,4)
      }
      { btnLineCap ToolButton
        MoveScaled(37,0,4,4)
        ToolTip = ("Line cap")
      }
      { btnLineJoin ToolButton
        MoveScaled(43,0,4,4)
        ToolTip = ("Line join")
      }
      { btnFillRule ToolButton
        MoveScaled(49,0,4,4)
        ToolTip = ("Fill rule")
      }
    }
    { Separator4 Separator
      MoveScaled(22,66,15,0)
    }
    { panSlider VBox
      MoveScaled(1,67,63,17)
      Margin = True
      { HPanel1 HBox
        MoveScaled(0,0,62,4)
        Spacing = True
        { Label1 Label
          MoveScaled(0,0,15,4)
          Text = ("Opacity")
        }
        { slbOpacity SliderBox
          MoveScaled(18,0,38,4)
          Expand = True
          MaxValue = 255
          Step = 32
          DefaultValue = 255
          Value = 255
        }
      }
      { HPanel2 HBox
        MoveScaled(0,4,62,4)
        Spacing = True
        { Label2 Label
          MoveScaled(0,0,15,4)
          Text = ("Size")
        }
        { slbSize SliderBox
          MoveScaled(18,0,38,4)
          Expand = True
          MaxValue = 256
          Step = 2
        }
      }
      { panTolerance HBox
        MoveScaled(0,8,62,4)
        Spacing = True
        { Label4 Label
          MoveScaled(0,0,15,4)
          Text = ("Tolerance")
        }
        { slbTolerance SliderBox
          MoveScaled(18,0,38,4)
          Expand = True
          MaxValue = 128
          Step = 8
          DefaultValue = 32
          Value = 32
        }
      }
      { panRoundness HBox
        MoveScaled(0,12,62,4)
        Spacing = True
        { Label14 Label
          MoveScaled(0,0,15,4)
          Text = ("Roundness")
        }
        { slbRoundness SliderBox
          MoveScaled(18,0,38,4)
          Expand = True
          MaxValue = 256
          Step = 2
          DefaultValue = 32
        }
      }
    }
    { Separator3 Separator
      MoveScaled(19,87,26,0)
    }
    { Panel13 Panel
      MoveScaled(1,88,64,43)
      Arrangement = Arrange.Vertical
      Margin = True
      { panEffect Expander
        MoveScaled(1,1,62,41)
        Arrangement = Arrange.Vertical
        Border = False
        Text = ("Effects")
        TextFont = Font["Bold"]
        Animated = True
        Hidden = True
        { HPanel4 HBox
          MoveScaled(0,0,59,4)
          { Label5 Label
            MoveScaled(0,0,15,4)
            Text = ("Brightness")
          }
          { slbBrightness SliderBox slbValue
            Name = "slbBrightness"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/brightness"]
            MinValue = -255
            MaxValue = 255
            Step = 16
          }
        }
        { HPanel5 HBox
          MoveScaled(0,4,59,4)
          { Label6 Label
            MoveScaled(0,0,15,4)
            Text = ("Contrast")
          }
          { slbContrast SliderBox slbValue
            Name = "slbContrast"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/contrast"]
            MinValue = -255
            MaxValue = 255
            Step = 16
          }
        }
        { HPanel8 HBox
          MoveScaled(0,8,59,4)
          { Label9 Label
            MoveScaled(0,0,15,4)
            Text = ("Gamma")
          }
          { slbGamma SliderBox slbValue
            Name = "slbGamma"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/gamma"]
            MinValue = -255
            MaxValue = 255
            Step = 16
          }
        }
        { HPanel9 HBox
          MoveScaled(0,12,59,4)
          { Label10 Label
            MoveScaled(0,0,15,4)
            Text = ("Lightness")
          }
          { slbLightness SliderBox slbValue
            Name = "slbLightness"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/lightness"]
            MinValue = -255
            MaxValue = 255
            Step = 16
          }
        }
        { HPanel6 HBox
          MoveScaled(0,16,59,4)
          { Label7 Label
            MoveScaled(0,0,15,4)
            Text = ("Hue")
          }
          { slbHue SliderBox slbValue
            Name = "slbHue"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/hue"]
            MinValue = -255
            MaxValue = 255
            Step = 16
          }
        }
        { HPanel7 HBox
          MoveScaled(0,20,59,4)
          { Label8 Label
            MoveScaled(0,0,15,4)
            Text = ("Saturation")
          }
          { slbSaturation SliderBox slbValue
            Name = "slbSaturation"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/saturation"]
            MinValue = -255
            MaxValue = 255
            Step = 16
          }
        }
        { HPanel10 HBox
          MoveScaled(0,24,59,4)
          { Label11 Label
            MoveScaled(0,0,15,4)
            Text = ("Blur")
          }
          { slbBlur SliderBox slbValue
            Name = "slbBlur"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/blur"]
            MaxValue = 127
          }
        }
        { HPanel3 HBox
          MoveScaled(0,28,59,4)
          { Label15 Label
            MoveScaled(0,0,15,4)
            Text = ("Transparency")
          }
          { slbTransparency SliderBox slbValue
            Name = "slbTransparency"
            MoveScaled(19,0,40,4)
            Expand = True
            Picture = Picture["icon:/large/transparency"]
            MaxValue = 255
            Step = 16
          }
        }
        { Panel7 Panel
          MoveScaled(21,32,5,1)
        }
        { HBox3 HBox
          MoveScaled(0,33,58,4)
          Spacing = True
          { chkBalancePreview CheckBox
            MoveScaled(0,0,14,4)
            Visible = False
            Text = ("Preview")
            Value = CheckBox.True
          }
          { Panel6 Panel
            MoveScaled(22,0,2,4)
            Expand = True
          }
          { btnBalanceReset Button
            MoveScaled(28,0,14,4)
            AutoResize = True
            Text = ("Reset")
            Picture = Picture["icon:/small/undo"]
          }
          { btnBalanceApply Button
            MoveScaled(43,0,14,4)
            AutoResize = True
            Text = Shortcut(("Apply"), "A")
            Picture = Picture["icon:/small/apply"]
          }
        }
      }
    }
    { sepText Separator
      MoveScaled(21,132,15,0)
    }
    { panText VBox
      MoveScaled(3,133,60,23)
      Visible = False
      Margin = True
      { Panel11 HBox
        MoveScaled(1,1,58,4)
        Spacing = True
        { Panel12 Panel
          MoveScaled(0,0,12,4)
          { btnTextCenter ToolButton btnTextAlign
            Name = "btnTextCenter"
            MoveScaled(4,0,4,4)
            ToolTip = ("Centered")
            Picture = Picture["icon:/small/text-center"]
            Radio = True
            Toggle = True
            Value = True
          }
          { btnTextRight ToolButton btnTextAlign
            Name = "btnTextRight"
            MoveScaled(8,0,4,4)
            ToolTip = ("Right align")
            Picture = Picture["icon:/small/text-right"]
            Radio = True
            Toggle = True
          }
          { btnTextLeft ToolButton btnTextAlign
            Name = "btnTextLeft"
            MoveScaled(0,0,4,4)
            ToolTip = ("Left align")
            Picture = Picture["icon:/small/text-left"]
            Radio = True
            Toggle = True
          }
        }
        { panTextAlign Panel
          MoveScaled(12,0,17,4)
          { btnTextTop ToolButton btnTextAlign
            Name = "btnTextTop"
            MoveScaled(0,0,4,4)
            ToolTip = ("Top align")
            Picture = Picture["icon:/small/text-top"]
            Radio = True
            Toggle = True
          }
          { btnTextMiddle ToolButton btnTextAlign
            Name = "btnTextMiddle"
            MoveScaled(4,0,4,4)
            ToolTip = ("Middle align")
            Picture = Picture["icon:/small/text-middle"]
            Radio = True
            Toggle = True
            Value = True
          }
          { btnTextBase ToolButton btnTextAlign
            Name = "btnTextBase"
            MoveScaled(8,0,4,4)
            ToolTip = ("Baseline align")
            Picture = Picture["icon:/small/text-baseline"]
            Radio = True
            Toggle = True
          }
          { btnTextBottom ToolButton btnTextAlign
            Name = "btnTextBottom"
            MoveScaled(12,0,4,4)
            ToolTip = ("Bottom align")
            Picture = Picture["icon:/small/text-bottom"]
            Radio = True
            Toggle = True
          }
        }
      }
      { fchText FontChooser
        MoveScaled(1,6,55,8)
        Border = False
        ShowRelative = False
      }
      { txtText TextArea
        MoveScaled(1,15,54,7)
        Expand = True
      }
    }
    { sepGrid Separator
      MoveScaled(19,157,15,0)
    }
    { panGrid VBox
      MoveScaled(2,158,62,15)
      Visible = False
      Margin = True
      { Panel1 HBox
        MoveScaled(1,1,57,4)
        { Label12 Label
          MoveScaled(0,0,15,4)
          Expand = True
          AutoResize = True
          Text = ("Grid resolution")
        }
        { txtGridRes SliderBox
          MoveScaled(38,0,17,4)
          MinValue = 4
          MaxValue = 128
          Step = 4
          Value = 64
        }
      }
      { Panel5 HBox
        MoveScaled(1,5,57,4)
        { chkGridSnap CheckBox
          MoveScaled(0,0,15,4)
          Expand = True
          Text = ("Grid snap")
        }
        { txtGridSnap SliderBox
          MoveScaled(38,0,17,4)
          MinValue = 1
          MaxValue = 512
          Step = 8
          Value = 8
        }
      }
      { chkGridDiag CheckBox
        MoveScaled(1,9,40,4)
        Text = ("Draw diagonals")
      }
    }
  }
}
