Skip to content

Commit

Permalink
[NavigationView] Fix centering of NVI labels a bit using bottom paddi…
Browse files Browse the repository at this point in the history
…ng (#5187)

* Fix bug by adding bottom padding

* Switch to better way

* Update verification files

* update verification files

* update verification files

* Revert "update verification files"

This reverts commit 168daee.

* update visual verification files

---------

Co-authored-by: Dilip Ojha <[email protected]>
Co-authored-by: Karen Lai <[email protected]>
  • Loading branch information
3 people authored Oct 27, 2023
1 parent e680e28 commit cf6e864
Show file tree
Hide file tree
Showing 17 changed files with 2,021 additions and 62 deletions.
4 changes: 2 additions & 2 deletions dev/NavigationView/NavigationView_rs1_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@
<Thickness x:Key="NavigationViewCompactItemSeparatorMargin">0,3,0,4</Thickness>
<Thickness x:Key="TopNavigationViewItemSeparatorMargin">3,0,4,0</Thickness>
<Thickness x:Key="TopNavigationViewOverflowButtonMargin">0</Thickness>
<Thickness x:Key="NavigationViewItemContentPresenterMargin">4,-1,8,-1</Thickness>
<Thickness x:Key="NavigationViewItemContentPresenterMargin">4,-1,8,0</Thickness>
<Thickness x:Key="NavigationViewCompactItemContentPresenterMargin">0,0,0,0</Thickness>
<Thickness x:Key="TopNavigationViewItemContentPresenterMargin">8,-1,12,-1</Thickness>
<Thickness x:Key="TopNavigationViewItemContentPresenterMargin">8,-1,12,0</Thickness>
<Thickness x:Key="TopNavigationViewItemContentOnlyContentPresenterMargin">12,0</Thickness>
<Thickness x:Key="NavigationViewItemExpandChevronMargin">0,0,-14,0</Thickness>
<Thickness x:Key="TopNavigationViewItemExpandChevronMargin">-16,0,0,0</Thickness>
Expand Down
4 changes: 2 additions & 2 deletions dev/NavigationView/NavigationView_rs1_themeresources_v1.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@
<Thickness x:Key="NavigationViewCompactItemSeparatorMargin">16,10</Thickness>
<Thickness x:Key="TopNavigationViewItemSeparatorMargin">10,0</Thickness>
<Thickness x:Key="TopNavigationViewOverflowButtonMargin">0</Thickness>
<Thickness x:Key="NavigationViewItemContentPresenterMargin">0,0,20,0</Thickness>
<Thickness x:Key="NavigationViewItemContentPresenterMargin">0,-1,20,0</Thickness>
<Thickness x:Key="NavigationViewCompactItemContentPresenterMargin">0,0,0,0</Thickness>
<Thickness x:Key="TopNavigationViewItemContentPresenterMargin">8,0,16,0</Thickness>
<Thickness x:Key="TopNavigationViewItemContentPresenterMargin">8,-1,16,0</Thickness>
<Thickness x:Key="TopNavigationViewItemContentOnlyContentPresenterMargin">12,0</Thickness>
<Thickness x:Key="NavigationViewItemExpandChevronMargin">-20,0,6,0</Thickness>
<Thickness x:Key="TopNavigationViewItemExpandChevronMargin">-16,0,0,0</Thickness>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down Expand Up @@ -1253,7 +1253,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down Expand Up @@ -1697,7 +1697,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down
6 changes: 3 additions & 3 deletions test/MUXControlsTestApp/verification/NavigationViewAuto-7.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down Expand Up @@ -1253,7 +1253,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down Expand Up @@ -1697,7 +1697,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=52,19
Expand Down Expand Up @@ -1248,7 +1248,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=78,19
Expand Down Expand Up @@ -1692,7 +1692,7 @@
FocusVisualSecondaryBrush=#B3FFFFFF
FocusVisualSecondaryThickness=1,1,1,1
Foreground=#E4000000
Margin=4,-1,8,-1
Margin=4,-1,8,0
Name=ContentPresenter
Padding=0,0,0,0
RenderSize=46,19
Expand Down
Loading

0 comments on commit cf6e864

Please sign in to comment.