diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-20 10:02:04 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-20 10:02:04 +0200 |
| commit | c0a6bb6ae6db8f4de39b630a2f5e20c3f976e6a9 (patch) | |
| tree | f97941afc96ab415bbe16d63345704a0c4b9764a /ui/chess.crow | |
| parent | 30f1e58efb3910a41cee30ff89a1028fba97c3c1 (diff) | |
wiptests
Diffstat (limited to 'ui/chess.crow')
| -rw-r--r-- | ui/chess.crow | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/ui/chess.crow b/ui/chess.crow index 6050a36..a813be4 100644 --- a/ui/chess.crow +++ b/ui/chess.crow @@ -1,23 +1,28 @@ -<?xml version="1.0"?> +<?xml version="1.0" encoding="UTF-8"?> <HorizontalStack Height="Fit" Background="vgradient|0:Grey|0.3:Jet|0.7:Jet|1:Black" VerticalAlignment="Bottom" Margin="10"> - <CheckBox Caption="Hint" IsChecked="{²EnableHint}"/> - <Button Caption="Undo" MouseClick="onUndoClick"/> - <Button Caption="New Game" MouseClick="onNewGameClick"/> - <Button Caption="Options" MouseClick="onOptionsClick"/> - <Widget Width="Stretched" Height="1"/> - <Button Caption="Quit" MouseClick="onQuitClick"/> - <VerticalStack Style="hsStatus" > - <Label Style="labStatus" Text="State:"/> - <Label Style="labStatus2" Text="{CurrentState}" /> - </VerticalStack > - <VerticalStack Style="hsStatus" > - <Label Style="labStatus" Text="Hover:"/> - <Label Style="labStatus2" Text="{SelCell}"/> + <CheckBox Caption="Hint" IsChecked="{²EnableHint}" /> + <Menu Data="{Commands}" Height="Stretched" Width="Stretched"> + <Template> + <HorizontalStack Name="ItemsContainer" /> + </Template> + <ItemTemplate> + <Button Command="{}"> + <Label Font="{./Font}" Name="caption" Margin="3" Foreground="LightGrey" Text="{./Caption}" /> + </Button> + </ItemTemplate> + </Menu> + <VerticalStack Style="hsStatus"> + <Label Style="labStatus" Text="State:" /> + <Label Style="labStatus2" Text="{CurrentState}" /> </VerticalStack> - <VerticalStack Style="hsStatus" > - <Label Style="labStatus" Text="Current Player:"/> - <Label Style="labStatus2" Text="{CurrentPlayer}"/> + <VerticalStack Style="hsStatus"> + <Label Style="labStatus" Text="Hover:" /> + <Label Style="labStatus2" Text="{SelCell}" /> </VerticalStack> - <Image Width="30" Height="20" Path="#Crow.Icons.IconAlerte.svg" Visible="{StockfishNotFound}"/> - <Label Text="Stockfish not found" Font="droid bold, 10" Visible="{StockfishNotFound}"/> -</HorizontalStack> + <VerticalStack Style="hsStatus"> + <Label Style="labStatus" Text="Current Player:" /> + <Label Style="labStatus2" Text="{CurrentPlayer}" /> + </VerticalStack> + <Image Width="30" Height="20" Path="#Crow.Icons.IconAlerte.svg" Visible="{StockfishNotFound}" /> + <Label Text="Stockfish not found" Font="droid bold, 10" Visible="{StockfishNotFound}" /> +</HorizontalStack>
\ No newline at end of file |