|
46 | 46 | </Style> |
47 | 47 |
|
48 | 48 | <Image x:Key="SettingIcon" Source="/TMP.NET;component/Resources/setting_icon.png" Width="40" Height="40" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
49 | | - <Image x:Key="WrenchIcon" Source="/TMP.NET;component/Resources/wrench_icon.png" Width="18" Height="18" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
| 49 | + <Image x:Key="WrenchIcon" Source="/TMP.NET;component/Resources/wrench_icon.png" Width="16" Height="16" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
50 | 50 | <Image x:Key="SaveIcon" Source="/TMP.NET;component/Resources/save_icon.png" Width="20" Height="20" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
51 | 51 | <Image x:Key="XIcon" Source="/TMP.NET;component/Resources/x_icon.png" Width="18" Height="18" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
52 | 52 | <Image x:Key="TrashIcon" Source="/TMP.NET;component/Resources/trash_icon.png" Width="28" Height="28" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
53 | | - <Image x:Key="ShortcutIcon" Source="/TMP.NET;component/Resources/shortcut-logo.png" Width="28" Height="28" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
| 53 | + <Image x:Key="ShortcutIcon" Source="/TMP.NET;component/Resources/shortcut-logo.png" Width="24" Height="24" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
54 | 54 | <Image x:Key="ImportIcon" Source="/TMP.NET;component/Resources/import_icon.png" Width="15" Height="15" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
55 | 55 | <Image x:Key="DeleteImage" Source="/TMP.NET;component/Resources/delete_image_icon.png" Width="30" Height="30" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
| 56 | + <Image x:Key="ExportIcon" Source="/TMP.NET;component/Resources/export_icon.png" Width="15" Height="15" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
| 57 | + <Image x:Key="FilterIcon" Source="/TMP.NET;component/Resources/filter_icon.png" HorizontalAlignment="Left" Height="13" VerticalAlignment="Top" Width="21" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
| 58 | + <Image x:Key="FolderOpenIcon" Source="/TMP.NET;component/Resources/folder_open_icon.png" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="18" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="Fant" RenderOptions.EdgeMode="Aliased"/> |
56 | 59 |
|
57 | 60 | <FontFamily x:Key="GlobalFont"> pack://application:,,,/Fonts/#Rubik </FontFamily> |
58 | 61 |
|
|
70 | 73 | <Trigger Property="IsMouseOver" |
71 | 74 | Value="True"> |
72 | 75 | <Setter Property="Background" |
73 | | - Value="White"/> |
| 76 | + Value="Transparent"/> |
74 | 77 | </Trigger> |
75 | 78 | </ControlTemplate.Triggers> |
76 | 79 | </ControlTemplate> |
77 | 80 | </Setter.Value> |
78 | 81 | </Setter> |
79 | 82 | </Style> |
| 83 | + |
| 84 | + <Style x:Key="{x:Type ContextMenu}" TargetType="{x:Type ContextMenu}"> |
| 85 | + <Setter Property="Foreground" Value="White"/> |
| 86 | + <Setter Property="OverridesDefaultStyle" Value="True"/> |
| 87 | + <Setter Property="SnapsToDevicePixels" Value="True"/> |
| 88 | + <Setter Property="FontFamily" Value="{StaticResource GlobalFont}"/> |
| 89 | + <Setter Property="FontSize" Value="12"/> |
| 90 | + <Setter Property="Template"> |
| 91 | + <Setter.Value> |
| 92 | + <ControlTemplate TargetType="{x:Type ContextMenu}"> |
| 93 | + <Border Background="#0D1430" CornerRadius="7, 7, 8, 8" BorderBrush="#1B4772" BorderThickness="2" Opacity="1"> |
| 94 | + <StackPanel ClipToBounds="True" Orientation="Vertical" IsItemsHost="True" Margin="5,4,5,4"/> |
| 95 | + </Border> |
| 96 | + </ControlTemplate> |
| 97 | + </Setter.Value> |
| 98 | + </Setter> |
| 99 | + </Style> |
| 100 | + <ControlTemplate x:Key="{x:Static MenuItem.TopLevelItemTemplateKey}" TargetType="{x:Type MenuItem}"> |
| 101 | + <Border Name="Border" > |
| 102 | + <Grid> |
| 103 | + <ContentPresenter Margin="6,3,6,3" ContentSource="Header" RecognizesAccessKey="True" /> |
| 104 | + </Grid> |
| 105 | + </Border> |
| 106 | + </ControlTemplate> |
| 107 | + |
| 108 | + <Style x:Key="{x:Type ToolTip}" TargetType="{x:Type ToolTip}"> |
| 109 | + <Setter Property="Background" Value="#0D1430"/> |
| 110 | + <Setter Property="Foreground" Value="White"/> |
| 111 | + <Setter Property="FontFamily" Value="{StaticResource GlobalFont}"/> |
| 112 | + <Setter Property="Template"> |
| 113 | + <Setter.Value> |
| 114 | + <ControlTemplate TargetType="ToolTip"> |
| 115 | + <Border Background="{TemplateBinding Background}" |
| 116 | + BorderBrush="#1B4772" |
| 117 | + BorderThickness="1" |
| 118 | + CornerRadius="5" |
| 119 | + Margin="4"> |
| 120 | + <ContentPresenter Margin="8" |
| 121 | + HorizontalAlignment="Left" |
| 122 | + VerticalAlignment="Top" |
| 123 | + TextBlock.Foreground="{TemplateBinding Foreground}" |
| 124 | + TextBlock.TextAlignment="Left"/> |
| 125 | + </Border> |
| 126 | + </ControlTemplate> |
| 127 | + </Setter.Value> |
| 128 | + </Setter> |
| 129 | + </Style> |
| 130 | + |
| 131 | + <Style x:Key="TextBoxStyle" TargetType="{x:Type TextBox}"> |
| 132 | + <Setter Property="ContextMenu"> |
| 133 | + <Setter.Value> |
| 134 | + <ContextMenu Style="{StaticResource {x:Type ContextMenu}}"> |
| 135 | + <MenuItem Command="ApplicationCommands.Copy" /> |
| 136 | + <MenuItem Command="ApplicationCommands.Cut" /> |
| 137 | + <Separator/> |
| 138 | + <MenuItem Command="ApplicationCommands.Paste" /> |
| 139 | + </ContextMenu> |
| 140 | + </Setter.Value> |
| 141 | + </Setter> |
| 142 | + |
| 143 | + <Style.Resources> |
| 144 | + <Style TargetType="{x:Type Border}"> |
| 145 | + <Setter Property="CornerRadius" Value="3" /> |
| 146 | + </Style> |
| 147 | + </Style.Resources> |
| 148 | + </Style> |
80 | 149 | </Application.Resources> |
81 | 150 | </Application> |
0 commit comments