Skip to content

Commit

Permalink
Code Quality: Removed stretch option
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed May 5, 2024
1 parent 3906122 commit 8c05c71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/Files.App/Strings/en-US/Resources.resw
Expand Up @@ -3769,10 +3769,6 @@
<value>Right</value>
<comment>Image alignment type</comment>
</data>
<data name="Stretch" xml:space="preserve">
<value>Stretch</value>
<comment>Image alignment type</comment>
</data>
<data name="Top" xml:space="preserve">
<value>Top</value>
<comment>Image alignment type</comment>
Expand Down
2 changes: 0 additions & 2 deletions src/Files.App/ViewModels/Settings/AppearanceViewModel.cs
Expand Up @@ -70,14 +70,12 @@ public AppearanceViewModel(IUserSettingsService userSettingsService, IResourcesS
ImageVerticalAlignmentTypes.Add(VerticalAlignment.Top, "Top".GetLocalizedResource());
ImageVerticalAlignmentTypes.Add(VerticalAlignment.Center, "Center".GetLocalizedResource());
ImageVerticalAlignmentTypes.Add(VerticalAlignment.Bottom, "Bottom".GetLocalizedResource());
ImageVerticalAlignmentTypes.Add(VerticalAlignment.Stretch, "Stretch".GetLocalizedResource());
SelectedImageVerticalAlignmentType = ImageVerticalAlignmentTypes[UserSettingsService.AppearanceSettingsService.AppThemeBackgroundImageVerticalAlignment];

// HorizontalAlignment
ImageHorizontalAlignmentTypes.Add(HorizontalAlignment.Left, "Top".GetLocalizedResource());
ImageHorizontalAlignmentTypes.Add(HorizontalAlignment.Center, "Center".GetLocalizedResource());
ImageHorizontalAlignmentTypes.Add(HorizontalAlignment.Right, "Bottom".GetLocalizedResource());
ImageHorizontalAlignmentTypes.Add(HorizontalAlignment.Stretch, "Stretch".GetLocalizedResource());
SelectedImageHorizontalAlignmentType = ImageHorizontalAlignmentTypes[UserSettingsService.AppearanceSettingsService.AppThemeBackgroundImageHorizontalAlignment];

UpdateSelectedResource();
Expand Down

0 comments on commit 8c05c71

Please sign in to comment.