diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-20 02:15:16 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-20 02:15:16 +0200 |
| commit | 2befc4ca0c8c20f1db20ffa199950d988915911d (patch) | |
| tree | 3beae8fc5498bfe4afad7dc16d24385ffced7192 /Samples/HelloWorld/ui | |
| parent | 31125f2b7fc7517a324e90058bce2f2cec063f7c (diff) | |
fix colors bugs
Diffstat (limited to 'Samples/HelloWorld/ui')
| -rw-r--r-- | Samples/HelloWorld/ui/helloworld.crow | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/Samples/HelloWorld/ui/helloworld.crow b/Samples/HelloWorld/ui/helloworld.crow index 2f65ac1d..5c0fbbaf 100644 --- a/Samples/HelloWorld/ui/helloworld.crow +++ b/Samples/HelloWorld/ui/helloworld.crow @@ -1,6 +1,35 @@ <?xml version="1.0"?> -<Container Margin="10" Background="Jet"> - <!--<Widget Width="200" Height="200" Background="Blue"/>--> -</Container> +<VerticalStack Background="DimGrey"> + <ColorPicker Name="cp" Width="Stretched"/> + <HorizontalStack Fit="True" Margin="10" Background="Jet"> + <Widget Width="100" Height="60" Background="{../../cp.CurrentColor}"/> + <Widget Width="100" Height="60" Background="{../../cp.CurrentColor2}"/> + </HorizontalStack> + <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> + <Label Width="100" Text="Red"/> + <Label Width="100" Text="{R}"/> + </HorizontalStack> + <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> + <Label Width="100" Text="Blue"/> + <Label Width="100" Text="{B}"/> + </HorizontalStack> + <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> + <Label Width="100" Text="Green"/> + <Label Width="100" Text="{G}"/> + </HorizontalStack> + <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> + <Label Width="100" Text="Hue"/> + <Label Width="100" Text="{Hue}"/> + </HorizontalStack> + <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> + <Label Width="100" Text="Saturation"/> + <Label Width="100" Text="{Saturation}"/> + </HorizontalStack> + <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> + <Label Width="100" Text="Value"/> + <Label Width="100" Text="{Value}"/> + </HorizontalStack> +</VerticalStack> + |