Skip to content

Commit 7c19d81

Browse files
committed
UI changes, code clone, xml merge
Integrated XamlDictionaryMergeTool merge for better xaml handling Several UI changes Code cleanup
1 parent 5a970a8 commit 7c19d81

18 files changed

+785
-409
lines changed

Source/AutoHDR/App.xaml

Lines changed: 26 additions & 344 deletions
Large diffs are not rendered by default.

Source/AutoHDR/AutoHDR.csproj

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,21 +251,21 @@
251251
<Compile Include="UWP\AppxManifest.cs" />
252252
<Compile Include="UWP\UWPAppsManager.cs" />
253253
<Compile Include="UWP\UWPApp.cs" />
254-
<Page Include="Controls\Colors.xaml">
254+
<Page Include="Controls\1_Colors.xaml">
255255
<SubType>Designer</SubType>
256-
<Generator>MSBuild:Compile</Generator>
256+
<Generator>XamlIntelliSenseFileGenerator</Generator>
257257
</Page>
258-
<Page Include="Controls\ControlProperties.xaml">
258+
<Page Include="Controls\AppResources.xaml">
259+
<Generator>XamlIntelliSenseFileGenerator</Generator>
259260
<SubType>Designer</SubType>
260-
<Generator>MSBuild:Compile</Generator>
261261
</Page>
262-
<Page Include="Controls\CustomComboBox.xaml">
262+
<Page Include="Controls\2_DefaultControls.xaml">
263263
<SubType>Designer</SubType>
264-
<Generator>MSBuild:Compile</Generator>
264+
<Generator>XamlIntelliSenseFileGenerator</Generator>
265265
</Page>
266-
<Page Include="Controls\DefaultBorder.xaml">
266+
<Page Include="Controls\3_CustomComboBox.xaml">
267267
<SubType>Designer</SubType>
268-
<Generator>MSBuild:Compile</Generator>
268+
<Generator>XamlIntelliSenseFileGenerator</Generator>
269269
</Page>
270270
<Page Include="Theming\LightColors.xaml">
271271
<SubType>Designer</SubType>
@@ -436,4 +436,8 @@
436436
<PostBuildEvent>
437437
</PostBuildEvent>
438438
</PropertyGroup>
439+
<PropertyGroup>
440+
<PreBuildEvent>$(SolutionDir)\BuildTools\XamlDictionaryMergeTool\XamlDictionaryMergeTool.exe "$(ProjectDir)Controls" "$(ProjectDir)Controls\AppResources.xaml"
441+
</PreBuildEvent>
442+
</PropertyGroup>
439443
</Project>

Source/AutoHDR/Controls/Colors.xaml renamed to Source/AutoHDR/Controls/1_Colors.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Color x:Key="ControlMediumColor">#FFCCCCCC</Color>
1313
<Color x:Key="GlyphColor">#FF444444</Color>
1414
<Color x:Key="DisabledForegroundColor">#cfcfcf</Color>
15-
<Color x:Key="DisabledControlDarkColor">#8a8a8a</Color>
15+
<Color x:Key="DisabledControlDarkColor">#8A8A8A</Color>
1616

1717
<Color x:Key="DisabledBorderColor">#adadad</Color>
1818
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="{StaticResource WindowColor}"/>

Source/AutoHDR/Controls/2_DefaultControls.xaml

Lines changed: 316 additions & 0 deletions
Large diffs are not rendered by default.

Source/AutoHDR/Controls/CustomComboBox.xaml renamed to Source/AutoHDR/Controls/3_CustomComboBox.xaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
<Setter Property="MinWidth" Value="120"/>
5858
<Setter Property="MinHeight" Value="20"/>
5959
<Setter Property="Foreground" Value="Black"/>
60+
<Setter Property="FontWeight" Value="DemiBold"/>
61+
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}" />
6062
<Setter Property="Template">
6163
<Setter.Value>
6264
<ControlTemplate TargetType="{x:Type ComboBox}">
@@ -75,8 +77,7 @@
7577
Margin="5,3,23,3"
7678
VerticalAlignment="Center"
7779
HorizontalAlignment="Left" />
78-
<TextBox x:Name="PART_EditableTextBox"
79-
Style="{x:Null}"
80+
<TextBox x:Name="PART_EditableTextBox" Style="{StaticResource DefaultTextBox}"
8081
Template="{StaticResource ComboBoxTextBox}"
8182
HorizontalAlignment="Left"
8283
VerticalAlignment="Center"
@@ -111,14 +112,14 @@
111112
<Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/>
112113
</Trigger>
113114
<Trigger Property="IsEnabled" Value="false">
114-
<Setter Property="Foreground" Value="{StaticResource DisabledControlDarkColor}"/>
115+
<Setter Property="Foreground" Value="{StaticResource DisabledAccentBrush}"/>
115116
</Trigger>
116117
<Trigger Property="IsGrouping" Value="true">
117118
<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
118119
</Trigger>
119120
<Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="true">
120-
<Setter TargetName="DropDownBorder" Property="CornerRadius" Value="0"/>
121121
<Setter TargetName="DropDownBorder" Property="Margin" Value="0,2,0,0"/>
122+
122123
</Trigger>
123124
<Trigger Property="IsEditable" Value="true">
124125
<Setter Property="IsTabStop" Value="false"/>
@@ -140,11 +141,12 @@
140141
<Setter Property="Template">
141142
<Setter.Value>
142143
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
143-
<Border Name="Border"
144-
Padding="2"
144+
<Grid>
145+
<Border Name="Border" Style="{StaticResource DefaultBorder}" BorderThickness="0"
145146
SnapsToDevicePixels="true">
146-
<ContentPresenter />
147147
</Border>
148+
<ContentPresenter />
149+
</Grid>
148150
<ControlTemplate.Triggers>
149151
<Trigger Property="IsHighlighted" Value="true">
150152
<Setter TargetName="Border" Property="Background" Value="{StaticResource MouseOverBrush}"/>

0 commit comments

Comments
 (0)