|
6 | 6 | xmlns:CoreCommon="clr-namespace:TensorStack.Common;assembly=TensorStack.Common" |
7 | 7 | xmlns:CommonControls="clr-namespace:TensorStack.WPF.Controls;assembly=TensorStack.WPF" |
8 | 8 | xmlns:PythonOptions="clr-namespace:TensorStack.Python.Common;assembly=TensorStack.Python" |
| 9 | + xmlns:Extractors="clr-namespace:TensorStack.Extractors.Common;assembly=TensorStack.Extractors" |
9 | 10 | xmlns:Common="clr-namespace:Diffuse.Common" |
10 | 11 | ShutdownMode="OnMainWindowClose"> |
11 | 12 | <Application.Resources> |
|
115 | 116 | </ObjectDataProvider.MethodParameters> |
116 | 117 | </ObjectDataProvider> |
117 | 118 |
|
| 119 | + <ObjectDataProvider x:Key="BackgroundMode" MethodName="GetValues" ObjectType="{x:Type System:Enum}"> |
| 120 | + <ObjectDataProvider.MethodParameters> |
| 121 | + <x:Type TypeName="Extractors:BackgroundMode"/> |
| 122 | + </ObjectDataProvider.MethodParameters> |
| 123 | + </ObjectDataProvider> |
| 124 | + |
118 | 125 |
|
119 | 126 | <Style x:Key="ImageDropZoneStyle" TargetType="{x:Type Border}"> |
120 | 127 | <Setter Property="AllowDrop" Value="False"/> |
|
233 | 240 | </Style> |
234 | 241 |
|
235 | 242 | <Style x:Key="SubmenuIconButton" TargetType="CommonControls:IconButton"> |
236 | | - <Setter Property="Height" Value="70"/> |
| 243 | + <Setter Property="Height" Value="60"/> |
237 | 244 | <Setter Property="Width" Value="120"/> |
238 | 245 | <Setter Property="LineHeight" Value="14"/> |
239 | 246 | <Setter Property="Orientation" Value="Vertical"/> |
240 | 247 | <Setter Property="Placement" Value="Right"/> |
241 | 248 | <Setter Property="FontSize" Value="12"/> |
| 249 | + <Setter Property="FontWeight" Value="Medium"/> |
242 | 250 | <Setter Property="IconSize" Value="20"/> |
243 | 251 | <Setter Property="IconStyle" Value="Solid"/> |
244 | 252 | <Setter Property="IconColor" Value="{StaticResource AccentColour2}"/> |
|
247 | 255 |
|
248 | 256 |
|
249 | 257 |
|
250 | | - |
| 258 | + <DataTemplate x:Key="ComboBoxDataTemplateModel"> |
| 259 | + <DockPanel> |
| 260 | + <CommonControls:FontAwesome DockPanel.Dock="Right" Icon="f019" Size="10" IconStyle="Solid" Opacity=".6" > |
| 261 | + <CommonControls:FontAwesome.Style> |
| 262 | + <Style TargetType="{x:Type CommonControls:FontAwesome}" BasedOn="{StaticResource {x:Type CommonControls:FontAwesome}}"> |
| 263 | + <Setter Property="Color" Value="#10FFFFFF"/> |
| 264 | + <Style.Triggers> |
| 265 | + <DataTrigger Binding="{Binding IsValid}" Value="True"> |
| 266 | + <Setter Property="Color" Value="{StaticResource AccentColour2}"/> |
| 267 | + </DataTrigger> |
| 268 | + </Style.Triggers> |
| 269 | + </Style> |
| 270 | + </CommonControls:FontAwesome.Style> |
| 271 | + </CommonControls:FontAwesome> |
| 272 | + <TextBlock Text="{Binding Name}" /> |
| 273 | + </DockPanel> |
| 274 | + </DataTemplate> |
251 | 275 |
|
252 | 276 | </ResourceDictionary> |
253 | 277 |
|
|
0 commit comments