-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
<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=}" | ||
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=}" | ||
Label="{strings:Resources Key=Properties}" /> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
<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=}" | ||
Label="{strings:Resources Key=PlayNext}" /> | ||
|
||
<XamlUICommand | ||
x:Key="PropertiesCommand" | ||
Command="{StaticResource ShowPropertiesCommand}" | ||
IconSource="{ui:FontIconSource Glyph=}" | ||
Label="{strings:Resources Key=Properties}" /> |
There was a problem hiding this comment.
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/App.xaml
Outdated
<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" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
AppTitleBar
title inactive brush on theme switchingPlayerPage
Header
andPlayerControls
background for the light themeXamlUICommand
ShuffleAndPlay
button in theArtistsPage
minimal visual stateBreadcrumbBar
andNoNetworkDrivePanel
onNetworkPage
ScrollViewer.Is*ScrollChainingEnabled
toSemanticZoom
control according to the documentation