aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/common/ui')
-rw-r--r--Samples/common/ui/Interfaces/Divers/welcome.crow48
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow8
-rw-r--r--Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow2
3 files changed, 37 insertions, 21 deletions
diff --git a/Samples/common/ui/Interfaces/Divers/welcome.crow b/Samples/common/ui/Interfaces/Divers/welcome.crow
index 9c7e942c..cddf8bff 100644
--- a/Samples/common/ui/Interfaces/Divers/welcome.crow
+++ b/Samples/common/ui/Interfaces/Divers/welcome.crow
@@ -1,19 +1,33 @@
<?xml version="1.0"?>
-<Border BorderStyle="Sunken" Fit="true" Background="0.8,0.8,0.9,0.5" CornerRadius="30">
- <VerticalStack Margin="20" Spacing="10">
- <Image Path="#Crow.Icons.crow.svg" Width="64" Height="64" Background="WhiteSmoke" CornerRadius="5" Margin="5"/>
-<!-- <Label Font="Times bold, 60" Text="C.R.O.W"/>-->
- <HorizontalStack Fit="true" DataSource="{CrowVersion}" Spacing="0" Background="Grey" Margin="10" CornerRadius="15">
- <Label Foreground="Jet" Font="mono, 12" Text="version: "/>
- <Label Foreground="Black" Font="mono, 16" Text="{Major}"/>
- <Label Foreground="Black" Font="mono, 12" Text="."/>
- <Label Foreground="Black" Font="mono, 16" Text="{Minor}"/>
- <Label Foreground="Black" Font="mono, 12" Text="."/>
- <Label Foreground="DarkBlue" Font="mono, 14" Text="{Build}" VerticalAlignment="Bottom"/>
+<VerticalStack>
+<ListBox Data="{PerfMeasures}" Height="Fit">
+ <Template>
+ <VerticalStack Name="ItemsContainer" Width="90%" Spacing="2"/>
+ </Template>
+ <ItemTemplate>
+ <HorizontalStack Style="HStackMeasure" Width="Stretched">
+ <Label Text="{Name}" Style="FpsLabel" Width="Stretched"/>
+ <Label Text="{current}" Style="FpsDisp" Width="25%" TextAlignment="Right" Margin="2"/>
+ <Label Text="{minimum}" Style="FpsDisp" Width="25%" TextAlignment="Right" Margin="2"/>
+ <Label Text="{maximum}" Style="FpsDisp" Width="25%" TextAlignment="Right" Margin="2"/>
+ <Button Width="Fit" Caption="reset" MouseClick="onResetClick"/>
</HorizontalStack>
- <Label Font="20" Text="Press &lt;F2&gt; and &lt;F3&gt; to cycle into the examples"/>
- <Label Font="20" Text="Those are basic tests used to validate changes,"/>
- <Label Foreground="Onyx" Font="20" Text="&lt;F5&gt; => File dialog example"/>
- <Label Foreground="Onyx" Font="20" Text="&lt;F6&gt; => Window example"/>
- </VerticalStack>
-</Border> \ No newline at end of file
+ </ItemTemplate>
+</ListBox>
+<ListBox Data="{PerfMeasures}" Height="Fit">
+ <Template>
+
+ <VerticalStack Name="ItemsContainer" Width="90%" Spacing="2"/>
+
+ </Template>
+ <ItemTemplate>
+ <HorizontalStack Style="HStackMeasure" Width="Stretched">
+ <Label Text="{Name}" Style="FpsLabel" Width="Stretched"/>
+ <Label Text="{current}" Style="FpsDisp" Width="25%" TextAlignment="Right" Margin="2"/>
+ <Label Text="{minimum}" Style="FpsDisp" Width="25%" TextAlignment="Right" Margin="2"/>
+ <Label Text="{maximum}" Style="FpsDisp" Width="25%" TextAlignment="Right" Margin="2"/>
+ <Button Width="Fit" Caption="reset" MouseClick="onResetClick"/>
+ </HorizontalStack>
+ </ItemTemplate>
+</ListBox>
+</VerticalStack>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow
index 2c0b7721..7dc7be90 100644
--- a/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow
@@ -1,10 +1,12 @@
<?xml version="1.0"?>
<Container Background="DimGrey" Margin="10" Width="Fit" Height="Fit" >
- <Popper Width="Stretched" Margin="10" Background="RoyalBlue">
- <Container Width="Fit" Height="Fit" Margin="10" Background="Blue">
+ <Popper Width="Stretched" Margin="0" Background="Red"
+ MouseEnter="{Background=Yellow}"
+ MouseLeave="{Background=Red}">
+ <Container Width="Fit" Height="Fit" Margin="10" Background="{./Background}">
<Container Margin="10" Background="Yellow">
<Container Margin="10" Background="FireBrick">
- <CheckBox/>
+
</Container>
</Container>
</Container>
diff --git a/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow b/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow
index 63590efd..1e6e03fa 100644
--- a/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow
+++ b/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<VerticalStack Spacing="5" Margin="5">
- <EnumSelector Caption="Vertical Alignemnt" EnumValue="{²CurrentVAlign}" Width="200">
+ <EnumSelector Caption="Vertical Alignemnt" EnumValue="{²CurrentVAlign}" Width="200" Background="Onyx">
<Template>
<Popper Caption="{./Caption}" CornerRadius="{./CornerRadius}" Foreground="{./Foreground}" Background="{./Background}">
<Template>