Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: minor UI fixes #464

Merged
merged 8 commits into from
Oct 30, 2024
Merged

style: minor UI fixes #464

merged 8 commits into from
Oct 30, 2024

Conversation

United600
Copy link
Collaborator

@United600 United600 commented Oct 10, 2024

  • Fix AppTitleBar title inactive brush on theme switching
  • Fix, and adjust, PlayerPage Header and PlayerControls background for the light theme
  • Remove some XamlUICommand
  • Fix "squashed" ShuffleAndPlay button in the ArtistsPage minimal visual state
  • Fix potential overlap between BreadcrumbBar and NoNetworkDrivePanel on NetworkPage
  • Add ScrollViewer.Is*ScrollChainingEnabled to SemanticZoom control according to the documentation

Comment on lines -26 to -49
<XamlUICommand
x:Key="PlayCommand"
Command="{x:Bind ViewModel.PlayCommand}"
IconSource="{ui:SymbolIconSource Symbol=Play}"
Label="{strings:Resources Key=Play}" />

<XamlUICommand
x:Key="PlayNextCommand"
Command="{x:Bind ViewModel.PlayNextCommand}"
IconSource="{ui:FontIconSource FontFamily={StaticResource ScreenboxSymbolThemeFontFamily},
Glyph=&#xF5EB;}"
Label="{strings:Resources Key=PlayNext}" />

<XamlUICommand
x:Key="RemoveCommand"
Command="{x:Bind ViewModel.RemoveCommand}"
IconSource="{ui:SymbolIconSource Symbol=Clear}"
Label="{strings:Resources Key=Remove}" />

<XamlUICommand
x:Key="PropertiesCommand"
Command="{StaticResource ShowPropertiesCommand}"
IconSource="{ui:FontIconSource Glyph=&#xE946;}"
Label="{strings:Resources Key=Properties}" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To give some context, the XamlUICommands are there to be shared between context menu items and future command bar buttons, like the inbox media player. It's fine to remove these for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't knew that, but wouldn't it be better for sharing to simply extract the entire MenuFlyout?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by extracting the entire menu Flyout? XamlUICommand includes command, icon, label, and keyboard accelerator. Having controls share the same XamlUICommand will ensure they behave the same, functionally and aesthetically.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. How would you map these MenuFlyoutItems into Buttons or AppBarButtons?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh maybe this? There must be a way

Screenbox/Pages/AlbumsPage.xaml Outdated Show resolved Hide resolved
Screenbox/Pages/MainPage.xaml.cs Outdated Show resolved Hide resolved
Comment on lines -29 to -46
<XamlUICommand
x:Key="PlayCommand"
Command="{x:Bind ViewModel.PlayCommand}"
IconSource="{ui:SymbolIconSource Symbol=Play}"
Label="{strings:Resources Key=Play}" />

<XamlUICommand
x:Key="PlayNextCommand"
Command="{x:Bind ViewModel.PlayNextCommand}"
IconSource="{ui:FontIconSource FontFamily={StaticResource ScreenboxSymbolThemeFontFamily},
Glyph=&#xF5EB;}"
Label="{strings:Resources Key=PlayNext}" />

<XamlUICommand
x:Key="PropertiesCommand"
Command="{StaticResource ShowPropertiesCommand}"
IconSource="{ui:FontIconSource Glyph=&#xE946;}"
Label="{strings:Resources Key=Properties}" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same context as the MainPage

Screenbox/Pages/SongsPage.xaml Outdated Show resolved Hide resolved
Comment on lines 21 to 24
<StaticResource x:Key="AccentFillColorCustomBrush" ResourceKey="SystemAccentColorLight2" />
<StaticResource x:Key="AccentFillColorCustomBrush" ResourceKey="SystemAccentColorLight3" />
</ResourceDictionary>
<ResourceDictionary x:Key="Light">
<StaticResource x:Key="AccentFillColorCustomBrush" ResourceKey="SystemAccentColorDark1" />
<StaticResource x:Key="AccentFillColorCustomBrush" ResourceKey="SystemAccentColorDark2" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resource only applies to Animated icons and thus causes color mismatch

image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will be reverting this so I can merge this PR. Please feel free to submit this change again in another PR.

@huynhsontung huynhsontung enabled auto-merge (squash) October 30, 2024 05:37
@huynhsontung huynhsontung merged commit a84db69 into huynhsontung:main Oct 30, 2024
2 checks passed
@United600 United600 deleted the minor-fix branch October 30, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants