diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-27 00:21:48 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-27 00:21:48 +0100 |
| commit | 8a25a19ee73e8b7c0c9726bbb2ce4ec918f4e905 (patch) | |
| tree | 8098ec3d8137c0dcc569db78fbdb4d6921187e28 /Templates | |
| parent | a519d07929a490ac9bfade86355865744787f311 (diff) | |
icon menuitem, PopWidth and PopHeight, commands
Diffstat (limited to 'Templates')
| -rwxr-xr-x | Templates/DirectoryView.template | 4 | ||||
| -rw-r--r-- | Templates/MenuItem.template | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/Templates/DirectoryView.template b/Templates/DirectoryView.template index 55d652a9..f7c74a9d 100755 --- a/Templates/DirectoryView.template +++ b/Templates/DirectoryView.template @@ -6,7 +6,7 @@ <Image Margin="2" Width="14" Height="14" Path="#Crow.Images.Icons.file.svg"/> <Label Text="{Name}" Width="Stretched" - MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}" + MouseEnter="{Background=vgradient|0:White|0.05:UnitedNationsBlue|1:Jet}" MouseLeave="{Background=Transparent}"/> </HorizontalStack> </ItemTemplate> @@ -15,7 +15,7 @@ <Template> <VerticalStack> <HorizontalStack Spacing="1" Height="Fit" MouseDoubleClick="./onClickForExpand" - MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}" + MouseEnter="{Background=vgradient|0:White|0.05:UnitedNationsBlue|1:Jet}" MouseLeave="{Background=Transparent}"> <Container Margin="1" Width="10" Height="10" Focusable="true" MouseClick="./onClickForExpand" MouseEnter="{Background=LightGray}" diff --git a/Templates/MenuItem.template b/Templates/MenuItem.template index 2f4400ec..311cd3ef 100644 --- a/Templates/MenuItem.template +++ b/Templates/MenuItem.template @@ -11,13 +11,16 @@ MinimumSize = "60,0" Foreground="Transparent" Background="{./Background}"> - <Label Text="{./Caption}" - Foreground="{./Foreground}" - Margin="1" HorizontalAlignment="Left" - Font="{./Font}" /> + <HorizontalStack> + <Image Style="Icon" Picture="{../../../../Icon}"/> + <Label Text="{./Caption}" + Foreground="{./Foreground}" + Margin="3" HorizontalAlignment="Left" + Font="{./Font}" /> + </HorizontalStack> </Border> </Template> <Border Foreground="DimGray" Fit="true"> - <VerticalStack Name="ItemsContainer" Margin="2" Fit="true" Background="Onyx"/> + <VerticalStack Name="ItemsContainer" Margin="0" Fit="true" Background="Onyx"/> </Border> </Popper> |