diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-28 19:46:34 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-28 19:46:34 +0200 |
| commit | 18dafa9e98e171321d3847a208c0af5be6f57ef6 (patch) | |
| tree | 94d44edbe93ad2c95e62179ec8e2b1da9ce4dd13 /Software/Visual_Studio/Tango.Console/Themes | |
| parent | 5f45be5bae69be7b7e916f02fb6d69b2db60e529 (diff) | |
| download | Tango-18dafa9e98e171321d3847a208c0af5be6f57ef6.tar.gz Tango-18dafa9e98e171321d3847a208c0af5be6f57ef6.zip | |
Implemented Transport Immediate mode on TCP and SignalR.
Implemented Tango.Console components.
Diffstat (limited to 'Software/Visual_Studio/Tango.Console/Themes')
| -rw-r--r-- | Software/Visual_Studio/Tango.Console/Themes/Generic.xaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml b/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml index 85ba88c33..3aaea90d7 100644 --- a/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml +++ b/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml @@ -20,6 +20,9 @@ <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/> <Setter Property="Stylus.IsFlicksEnabled" Value="False"/> <Setter Property="CaretBottomBrush" Value="White"></Setter> + <Setter Property="SuggestionsBorderBrush" Value="DimGray"></Setter> + <Setter Property="SuggestionsBackground" Value="#202020"></Setter> + <Setter Property="SuggestionsForeground" Value="Silver"></Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:ConsoleTextBox}"> @@ -44,6 +47,41 @@ </EventTrigger> </Border.Triggers> </Border> + <Border x:Name="PART_borderSuggestions" BorderThickness="1" BorderBrush="{TemplateBinding SuggestionsBorderBrush}" Background="{TemplateBinding SuggestionsBackground}" MinWidth="200" MaxHeight="300" Canvas.Left="{TemplateBinding CaretPosition}" Canvas.Top="20" Visibility="{TemplateBinding SuggestionsVisibility}"> + <Grid> + <ListBox Foreground="{TemplateBinding SuggestionsForeground}" x:Name="PART_listSuggestions" FocusVisualStyle="{x:Null}" Background="Transparent" ItemsSource="{TemplateBinding FilteredSuggestions}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType=local:ConsoleTextBox},Path=SelectedSuggestion,Mode=TwoWay}"> + <ListBox.ItemTemplate> + <DataTemplate> + <StackPanel Orientation="Horizontal"> + <Image Stretch="Uniform" Width="16" Height="16" VerticalAlignment="Center"> + <Image.Style> + <Style TargetType="Image"> + <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/thunder.png"></Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding Type}" Value="Folder"> + <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/folder.png"></Setter> + </DataTrigger> + <DataTrigger Binding="{Binding Type}" Value="File"> + <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/file.png"></Setter> + </DataTrigger> + </Style.Triggers> + </Style> + </Image.Style> + </Image> + <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" FontSize="11" Text="{Binding Name}"></TextBlock> + </StackPanel> + </DataTemplate> + </ListBox.ItemTemplate> + </ListBox> + <Canvas HorizontalAlignment="Right" VerticalAlignment="Top"> + <Popup x:Name="PART_popup" IsOpen="False" Placement="Right" HorizontalOffset="10"> + <Border Padding="5" CornerRadius="3" MaxWidth="500" BorderThickness="1" BorderBrush="{TemplateBinding SuggestionsBorderBrush}" Background="{TemplateBinding SuggestionsBackground}"> + <TextBlock Foreground="{TemplateBinding SuggestionsForeground}" TextWrapping="Wrap" Text="{Binding ElementName=PART_listSuggestions,Path=SelectedItem.Description}"></TextBlock> + </Border> + </Popup> + </Canvas> + </Grid> + </Border> </Canvas> </Grid> <ControlTemplate.Triggers> |
