Skip to content

Commit

Permalink
Feature: Added HighContrastAdjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Feb 5, 2024
1 parent 2170976 commit f0cca18
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/AddBranchDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Closing="ContentDialog_Closing"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="Primary"
HighContrastAdjustment="None"
IsPrimaryButtonEnabled="{x:Bind ViewModel.IsBranchValid, Mode=OneWay}"
PrimaryButtonStyle="{StaticResource AccentButtonStyle}"
PrimaryButtonText="{helpers:ResourceString Name=Create}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/AddItemDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Grid.RowSpan="4"
BorderThickness="0"
CornerRadius="{StaticResource OverlayCornerRadius}"
HighContrastAdjustment="None"
Loaded="AddItemDialog_Loaded"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
SecondaryButtonText="{helpers:ResourceString Name=Cancel}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/CreateArchiveDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Closing="ContentDialog_Closing"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="Primary"
HighContrastAdjustment="None"
IsPrimaryButtonEnabled="{x:Bind ViewModel.IsNameValid, Mode=OneWay}"
Loaded="ContentDialog_Loaded"
PrimaryButtonText="{helpers:ResourceString Name=Create}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/CreateShortcutDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{helpers:ResourceString Name=NewShortcutDialogTitle}"
DefaultButton="Primary"
HighContrastAdjustment="None"
IsPrimaryButtonEnabled="{x:Bind ViewModel.IsLocationValid, Mode=OneWay}"
PrimaryButtonCommand="{x:Bind ViewModel.PrimaryButtonCommand}"
PrimaryButtonText="{helpers:ResourceString Name=Create}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/CredentialDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{helpers:ResourceString Name=AskCredentialDialog/Title}"
CornerRadius="{StaticResource OverlayCornerRadius}"
HighContrastAdjustment="None"
PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
PrimaryButtonStyle="{StaticResource AccentButtonStyle}"
PrimaryButtonText="{helpers:ResourceString Name=OK}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/DecompressArchiveDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Title="{helpers:ResourceString Name=ExtractArchive}"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="Primary"
HighContrastAdjustment="None"
PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
PrimaryButtonText="{helpers:ResourceString Name=Extract}"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/DynamicDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
CloseButtonText="{x:Bind ViewModel.CloseButtonText, Mode=OneWay}"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="Primary"
HighContrastAdjustment="None"
IsPrimaryButtonEnabled="{x:Bind ViewModel.IsPrimaryButtonEnabled, Mode=OneWay}"
IsSecondaryButtonEnabled="{x:Bind ViewModel.IsSecondaryButtonEnabled, Mode=OneWay}"
KeyDown="ContentDialog_KeyDown"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/ElevateConfirmDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Content="{helpers:ResourceString Name=ElevateConfirmDialog/Content}"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="None"
HighContrastAdjustment="None"
PrimaryButtonText="{helpers:ResourceString Name=Yes}"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
Style="{StaticResource DefaultContentDialogStyle}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/FileTooLargeDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Title="{helpers:ResourceString Name=CopyFailureFileToLarge}"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="Primary"
HighContrastAdjustment="None"
PrimaryButtonText="{helpers:ResourceString Name=OK}"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
Style="{StaticResource DefaultContentDialogStyle}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/FilesystemOperationDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Closing="RootDialog_Closing"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="Primary"
HighContrastAdjustment="None"
IsPrimaryButtonEnabled="{x:Bind ViewModel.PrimaryButtonEnabled, Mode=OneWay}"
Opened="FilesystemOperationDialog_Opened"
PrimaryButtonText="{x:Bind ViewModel.PrimaryButtonText, Mode=OneWay}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/GitHubLoginDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
CloseButtonStyle="{StaticResource AccentButtonStyle}"
CloseButtonText="{helpers:ResourceString Name=Close}"
CornerRadius="{StaticResource OverlayCornerRadius}"
HighContrastAdjustment="None"
PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
PrimaryButtonText="{helpers:ResourceString Name=OK}"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/PropertiesDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
xmlns:local2="using:Files.App.Helpers"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Name="PropertiesDialogMarkup"
HighContrastAdjustment="None"
RequestedTheme="{x:Bind local2:ThemeHelper.RootTheme}"
mc:Ignorable="d">

Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/ReleaseNotesDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Closing="ContentDialog_Closing"
CornerRadius="{StaticResource OverlayCornerRadius}"
DefaultButton="None"
HighContrastAdjustment="None"
RequestedTheme="{x:Bind helpers:ThemeHelper.RootTheme}"
Style="{StaticResource DefaultContentDialogStyle}"
mc:Ignorable="d">
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/ReorderSidebarItemsDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{helpers:ResourceString Name=ReorderSidebarItemsDialogText}"
DefaultButton="Primary"
HighContrastAdjustment="None"
IsPrimaryButtonEnabled="True"
PrimaryButtonCommand="{x:Bind ViewModel.PrimaryButtonCommand}"
PrimaryButtonText="{helpers:ResourceString Name=Save}"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Dialogs/SettingsDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Closing="ContentDialog_Closing"
DataContext="{x:Bind ViewModel, Mode=OneWay}"
HighContrastAdjustment="None"
RequestedTheme="{x:Bind RootAppElement.RequestedTheme, Mode=OneWay}"
Style="{StaticResource DefaultContentDialogStyle}"
mc:Ignorable="d">
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Views/Layouts/ColumnLayoutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
xmlns:wct="using:CommunityToolkit.WinUI.UI"
xmlns:wctconverters="using:CommunityToolkit.WinUI.UI.Converters"
x:Name="PageRoot"
HighContrastAdjustment="None"
mc:Ignorable="d">

<local:BaseGroupableLayoutPage.Resources>
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Views/Layouts/ColumnsLayoutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xmlns:local="using:Files.App.Views.Layouts"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Name="PageRoot"
HighContrastAdjustment="None"
mc:Ignorable="d">

<i:Interaction.Behaviors>
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
AllowDrop="True"
Background="{ThemeResource App.Theme.BackgroundBrush}"
DataContext="{x:Bind ViewModel, Mode=OneWay}"
HighContrastAdjustment="None"
KeyboardAcceleratorPlacementMode="Hidden"
Loaded="Page_Loaded"
NavigationCacheMode="Required"
Expand Down
1 change: 1 addition & 0 deletions src/Files.App/Views/Properties/MainPropertiesPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
xmlns:wctconverters="using:CommunityToolkit.WinUI.UI.Converters"
Background="{ThemeResource App.Theme.BackgroundBrush}"
DataContext="{x:Bind MainPropertiesViewModel, Mode=OneWay}"
HighContrastAdjustment="None"
KeyDown="Page_KeyDown"
Loaded="Page_Loaded"
SizeChanged="Page_SizeChanged"
Expand Down

0 comments on commit f0cca18

Please sign in to comment.