diff options
Diffstat (limited to 'Tests/Interfaces')
| -rwxr-xr-x | Tests/Interfaces/0.crow | 8 | ||||
| -rwxr-xr-x | Tests/Interfaces/test2WayBinding.crow | 13 | ||||
| -rwxr-xr-x | Tests/Interfaces/testBorder.goml | 5 | ||||
| -rwxr-xr-x | Tests/Interfaces/testButton.crow | 2 | ||||
| -rwxr-xr-x | Tests/Interfaces/testGroupBox.goml | 9 | ||||
| -rwxr-xr-x | Tests/Interfaces/testWindow.goml | 20 |
6 files changed, 44 insertions, 13 deletions
diff --git a/Tests/Interfaces/0.crow b/Tests/Interfaces/0.crow new file mode 100755 index 00000000..aa72d58a --- /dev/null +++ b/Tests/Interfaces/0.crow @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<Border BorderWidth="2" Width="200" Height="200" Foreground="Gray" Margin="10" + Background="Green" + MouseEnter="{Background=White;Foreground=White}" + MouseLeave="{Background=Green;Foreground=Gray}" + > + <GraphicObject Width="100" Height="100" Background="Red" Margin="10"/> +</Border>
\ No newline at end of file diff --git a/Tests/Interfaces/test2WayBinding.crow b/Tests/Interfaces/test2WayBinding.crow new file mode 100755 index 00000000..f4f03be7 --- /dev/null +++ b/Tests/Interfaces/test2WayBinding.crow @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<VerticalStack Fit="True"> + <TextBox Margin="2" Name="tb1" Width="300" Height="50" Font="droid,16" + Text="{../tb2.Text}" + CurColumn="{../tb2.CurrentLine}" + CurLine="{../tb2.CurrentLine}" + /> + <TextBox Margin="2" Name="tb2" Width="300" Height="50" Font="droid,16" + Text="{../tb1.Text}" + CurColumn="{../tb1.CurrentLine}" + CurLine="{../tb1.CurrentLine}" + /> +</VerticalStack>
\ No newline at end of file diff --git a/Tests/Interfaces/testBorder.goml b/Tests/Interfaces/testBorder.goml index 02f16257..cae3c33d 100755 --- a/Tests/Interfaces/testBorder.goml +++ b/Tests/Interfaces/testBorder.goml @@ -1,4 +1,5 @@ <?xml version="1.0"?> -<Border BorderWidth="5" Width="200" Height="200" CornerRadius="20" Margin="0" Background="Mantis"> - <GraphicObject CornerRadius="0" Background="CornflowerBlue" Height="100" Width="100"/> +<Border BorderWidth="2" Width="200" Height="200" CornerRadius="2" Margin="0" + Background="vgradient|0,65:Mantis|1:Transparent"> + <GraphicObject CornerRadius="20" Background="#Tests.image.crow0.svg" Margin="0" Height="100" Width="120" /> </Border> diff --git a/Tests/Interfaces/testButton.crow b/Tests/Interfaces/testButton.crow index 5e4c5a5c..fd52bce4 100755 --- a/Tests/Interfaces/testButton.crow +++ b/Tests/Interfaces/testButton.crow @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<VerticalStack Fit="true"> +<VerticalStack Fit="true" Background="vgradient|0:DimGray|1:Black"> <HorizontalStack Fit="True"> <Button Caption="but" MouseClick="onButClick"/> <Button MouseClick="onButClick"/> diff --git a/Tests/Interfaces/testGroupBox.goml b/Tests/Interfaces/testGroupBox.goml index c12c597e..6b14f829 100755 --- a/Tests/Interfaces/testGroupBox.goml +++ b/Tests/Interfaces/testGroupBox.goml @@ -1,4 +1,7 @@ <?xml version="1.0"?> -<GroupBox Width="-1" Height="-1" Background="Red"> -<Label/> -</GroupBox> +<Container Background="vgradient|0:DarkGray|1:DimGray"> + <GroupBox Width="200" Height="150" Background="vgradient|0:SteelBlue|1:Transparent" + Foreground="ogradient|0:White|1:Black"> + <!-- <Label/>--> + </GroupBox> +</Container> diff --git a/Tests/Interfaces/testWindow.goml b/Tests/Interfaces/testWindow.goml index 4b215be4..7fa41b43 100755 --- a/Tests/Interfaces/testWindow.goml +++ b/Tests/Interfaces/testWindow.goml @@ -2,7 +2,7 @@ <Window Left="10" Top="10" Title="Test window" Width="250" Height="550" > <VerticalStack Name="contentVSStack" Margin="10" Spacing="10" Background="0,4;0,4;0,4;0,4"> - <Slider Name="slider" Height="10" Width="0"/> + <Slider Name="slider" Height="12" Width="0" CornerRadius="3"/> <GroupBox Caption="test" Height="-1" Width="-1" Margin="5"> <VerticalStack Height="-1" Width="0" > <RadioButton Caption="Radio 1" Background="Red" /> @@ -10,7 +10,8 @@ <RadioButton Caption="Radio 3" /> </VerticalStack> </GroupBox> - <HorizontalStack Width="0" Height="-1" Margin="10" Background="BlueCrayola"> + <HorizontalStack Width="0" Height="-1" Margin="10" CornerRadius="5" + Background="vgradient|0:White|0,1:SteelBlue|0,9:SteelBlue|1:Transparent"> <CheckBox Height="-1" Width="80"/> <GraphicObject Width="0"/> <CheckBox Height="-1" Width="80" IsChecked="true"/> @@ -21,23 +22,28 @@ <VerticalStack Fit="true" Name="vsFps" Spacing="10" > <HorizontalStack Fit="true"> <Label Text="Update:" Width="50" TextAlignment="RightCenter"/> - <Label Name="labUpdate" Text="{update}" Font="droid,12" Background="AoEnglish" Width="50" TextAlignment="Center"/> + <Label Name="labUpdate" Text="{update}" Font="droid,12" Width="50" TextAlignment="Center" + Background="vgradient|0:AoEnglish|1:Black"/> </HorizontalStack> <HorizontalStack Fit="true"> <Label Text="Drawing:" Width="50" TextAlignment="RightCenter"/> - <Label Name="labDrawing" Text="{drawing}" Font="droid,12" Background="AoEnglish" Width="50" TextAlignment="Center"/> + <Label Name="labDrawing" Text="{drawing}" Font="droid,12" Width="50" TextAlignment="Center" + Background="vgradient|0:AoEnglish|1:Black"/> </HorizontalStack> <HorizontalStack Fit="true"> <Label Name="captionFps" Text="Fps:" Width="50" TextAlignment="RightCenter"/> - <Label Name="valueFps" Text="{fps}" Font="droid , 12" Width="50" TextAlignment="Center" Background="AoEnglish"/> + <Label Name="valueFps" Text="{fps}" Font="droid , 12" Width="50" TextAlignment="Center" + Background="vgradient|0:AoEnglish|1:Black"/> </HorizontalStack> <HorizontalStack Fit="true"> <Label Text="Min:" Width="50" TextAlignment="RightCenter"/> - <Label Text="{fpsMin}" Font="droid , 12" Width="50" TextAlignment="Center" Background="AoEnglish"/> + <Label Text="{fpsMin}" Font="droid , 12" Width="50" TextAlignment="Center" + Background="vgradient|0:AoEnglish|1:Black"/> </HorizontalStack> <HorizontalStack Fit="true"> <Label Text="Max:" Width="50" TextAlignment="RightCenter"/> - <Label Text="{fpsMax}" Font="droid , 12" Background="AoEnglish" Width="50" TextAlignment="Center"/> + <Label Text="{fpsMax}" Font="droid , 12" Width="50" TextAlignment="Center" + Background="vgradient|0:AoEnglish|1:Black"/> </HorizontalStack> </VerticalStack> </Container> |