diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2025-03-05 00:03:57 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2025-03-05 00:03:57 +0100 |
| commit | 232b019ff2e8ceeaef63c0fd9207a3d193d2046e (patch) | |
| tree | 5f8126ff01ea005ece482aa0d6352fb58974637b /Samples/common | |
| parent | 54687bd5dcf322096a8c8cf8dbc1374cb5ce49f9 (diff) | |
update versions
Diffstat (limited to 'Samples/common')
| -rw-r--r-- | Samples/common/ui/Interfaces/Divers/colorSlider.crow | 58 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Divers/colorSlider2.crow | 78 |
2 files changed, 1 insertions, 135 deletions
diff --git a/Samples/common/ui/Interfaces/Divers/colorSlider.crow b/Samples/common/ui/Interfaces/Divers/colorSlider.crow index 012fd2dd..a7cda8c3 100644 --- a/Samples/common/ui/Interfaces/Divers/colorSlider.crow +++ b/Samples/common/ui/Interfaces/Divers/colorSlider.crow @@ -1,7 +1,7 @@ <VerticalStack Margin="50" Spacing="20" Background="DimGrey"> <HorizontalStack Height="Fit" Width="400" Spacing="5" Margin="5" Background="Jet"> <Label Style="labColor" Text="G:"/> - <ColorSlider Name="cs" Component="Red" CurrentColor="Green" CursorType="Circle" ClipToClientRect="false" Background="Black" Margin="5" Height="20" /> + <ColorSlider Name="cs" Component="Red" CurrentColor="Green" ClipToClientRect="false" Background="Black" Margin="5" Height="20" /> <Label Style="labColorV" Text="{../cs.CurrentValue}" /> <Container Width="100" Height="100" Background="Red" Margin="5"> <Widget Width="20" Height="20" Background="Blue" HorizontalAlignment="Left" VerticalAlignment="Top"/> @@ -16,60 +16,4 @@ </Container> </Template> </Slider> - <Slider Background="RoyalBlue" Height="50" Width="400" CursorSize="50" Inverted="{../../inverted.IsChecked}"> - <Template> - <Group Background="DarkGrey" > - <ColorGauge Height="50%" Background="Onyx" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" - Inverted="{./Inverted}"/> - <Container Name="Cursor" Background="White" > - <Label Text="{./Value}" Foreground="Black"/> - </Container> - </Group> - </Template> - </Slider> - <ColorPicker> - <Template> - <Border Background="{./Background}" Foreground="{./Foreground}" Width="Stretched" - CornerRadius="{./CornerRadius}" BorderWidth="1"> - <VerticalStack Margin="2"> - <Widget Width="30" Height="16" Background="{./CurrentColor}"/> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="R:"/> - <ColorSlider Name="cs" Component="Red" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="G:"/> - <ColorSlider Name="cs" Component="Green" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="B:"/> - <ColorSlider Name="cs" Component="Blue" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="A:"/> - <ColorSlider Name="cs" Component="Alpha" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="H:"/> - <ColorSlider Name="cs" Component="Hue" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="S:"/> - <ColorSlider Name="cs" Component="Saturation" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="V:"/> - <ColorSlider Name="cs" Component="Value" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - </VerticalStack> - </Border> - </Template> - </ColorPicker> </VerticalStack>
\ No newline at end of file diff --git a/Samples/common/ui/Interfaces/Divers/colorSlider2.crow b/Samples/common/ui/Interfaces/Divers/colorSlider2.crow deleted file mode 100644 index 111ce06f..00000000 --- a/Samples/common/ui/Interfaces/Divers/colorSlider2.crow +++ /dev/null @@ -1,78 +0,0 @@ -<VerticalStack Margin="50" Spacing="20" Background="DimGrey"> - <Label Text="{../slider1.Value}"/> - <Slider Background="Onyx" Height="30" Width="400" > - <Template> - <Group Background="{./Background}"> - <ColorGauge Component="Red" Height="Stretched" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" Margin="11" - Inverted="{./Inverted}"/> - <Border Name="Cursor" Foreground="White" CornerRadius="7" BorderWidth="2"> - <Label Text="{./Value}" Foreground="WhiteSmoke"/> - </Border> - </Group> - </Template> - </Slider> - <Slider Background="Onyx" Height="30" Width="400" CursorSize="20" > - <Template> - <Group Background="{./Background}" ClipToClientRect="false"> - <ColorGauge Component="Red" Height="Stretched" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" Margin="10" ClipToClientRect="false" - Inverted="{./Inverted}"/> - <Shape Height="Stretched" Name="Cursor" Size="30,30" Path="M 0,30 L 15,0 L 30,30 Z G" StrokeWidth="1" ClipToClientRect="false" Scaled="false" /> - </Group> - </Template> - </Slider> - <ColorPicker> - <Template> - <Border Background="{./Background}" Foreground="{./Foreground}" Width="Stretched" - CornerRadius="{./CornerRadius}" BorderWidth="1"> - <VerticalStack Margin="2"> - <Widget Width="50" Height="30" CornerRadius="10" Background="{./CurrentColor}"/> - <Slider Background="Onyx" Height="Fit" Width="Stretched" Foreground="{²./CurrentColor}" Maximum="255" Value="{².cg.Value}"> - <Template> - <Group Background="{./Background}"> - <ColorGauge Name="cg" Component="Red" Height="Stretched" Value="{²./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" Margin="0" CurrentColor="{²./Foreground}"/> - <Border Name="Cursor" Foreground="White" CornerRadius="7" BorderWidth="2"> - <Label Text="{./Value}" Foreground="WhiteSmoke"/> - </Border> - </Group> - </Template> - </Slider> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="R:"/> - <ColorSlider Name="cs" Component="Red" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="G:"/> - <ColorSlider Name="cs" Component="Green" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="B:"/> - <ColorSlider Name="cs" Component="Blue" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="A:"/> - <ColorSlider Name="cs" Component="Alpha" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="H:"/> - <ColorSlider Name="cs" Component="Hue" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="S:"/> - <ColorSlider Name="cs" Component="Saturation" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Style="labColor" Text="V:"/> - <ColorSlider Name="cs" Component="Value" CurrentColor="{²./CurrentColor}"/> - <Label Style="labColorV" Text="{../cs.CurrentValue}" /> - </HorizontalStack> - </VerticalStack> - </Border> - </Template> - </ColorPicker> -</VerticalStack>
\ No newline at end of file |