aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/HelloWorld
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-05-20 02:15:16 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-05-20 02:15:16 +0200
commit2befc4ca0c8c20f1db20ffa199950d988915911d (patch)
tree3beae8fc5498bfe4afad7dc16d24385ffced7192 /Samples/HelloWorld
parent31125f2b7fc7517a324e90058bce2f2cec063f7c (diff)
fix colors bugs
Diffstat (limited to 'Samples/HelloWorld')
-rw-r--r--Samples/HelloWorld/HelloWorld.csproj2
-rw-r--r--Samples/HelloWorld/ui/helloworld.crow35
2 files changed, 33 insertions, 4 deletions
diff --git a/Samples/HelloWorld/HelloWorld.csproj b/Samples/HelloWorld/HelloWorld.csproj
index 73273549..405765d1 100644
--- a/Samples/HelloWorld/HelloWorld.csproj
+++ b/Samples/HelloWorld/HelloWorld.csproj
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net472</TargetFramework>
+ <TargetFrameworks>net472</TargetFrameworks>
<OutputType>Exe</OutputType>
<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<ReleaseVersion>0.8.0</ReleaseVersion>
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>
+