Open Jay-o-Way opened 2 years ago
AOT
- Sound: make it one setting (no expander)
this a preparing for the "choose file" issue
@niels9001 in Resources.resw, I see a few lines like (for example)
<value>Open File Explorer, **select the View tab** in the File Explorer ribbon, then **select Preview Pane**.
<value>In File Explorer, **right-clicking one or more selected files** and **clicking on PowerRename** from the context menu.</value>
where words like "select" are included in bold, but that's not part of any control. Can I change these to .. ?
<value>Open File Explorer, select the **View** tab in the File Explorer ribbon, then select **Preview Pane**.
<value>In File Explorer, right-click one or more selected files and click on **PowerRename** from the context menu.</value>
@niels9001
https://github.com/microsoft/PowerToys/blob/a1d5df23a8ca4995ee002718ef50782791a8a531/src/settings-ui/Settings.UI/Views/VideoConference.xaml#L31-L37
This InfoBar has both an IsOpen="True"
and an IsVisible={Binding}
property, which I think is incorrect.
Why do we use Visibility on all InfoBars anyway, when ~I think~ we only need IsOpen?
@niels9001 https://github.com/microsoft/PowerToys/blob/a1d5df23a8ca4995ee002718ef50782791a8a531/src/settings-ui/Settings.UI/Views/VideoConference.xaml#L31-L37 This InfoBar has both an
IsOpen="True"
and anIsVisible={Binding}
property, which I think is incorrect. Why do we use Visibility on all InfoBars anyway, when ~I think~ we only need IsOpen?
Not sure.. there might have been a Narrator bug that still announced the InfoBars property when IsOpen was set to false. But not sure, if not we could use the IsOpen instead yes.
ControlSetting.xaml
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/><!-- Icon -->
<ColumnDefinition Width="*"/><!-- Header and subtitle -->
<ColumnDefinition Width="Auto"/><!-- Action control -->
</Grid.ColumnDefinitions>
This is an epic. These should be individual tasks
I see quite a lot of the following. Should we apply the suggestion?
Should "using:Microsoft.PowerToys.Settings.UI.Controls"
be a xmlns:local=
or xmlns:custom=
?
When VS says a namespace is unneeded, shall I remove it?
Note: this one is consistent for every page in OobeViews
@niels9001 I'm trying to works on some points now. Do you have an answer for the (4) questions above here?
When VS says a namespace is unneeded, shall I remove it?
Note: this one is consistent for every page in OobeViews
Yeah, this can be removed as we are not using that namespace in the XAML π
Should
"using:Microsoft.PowerToys.Settings.UI.Controls"
be axmlns:local=
orxmlns:custom=
?
Whatever works :) the 'local' or 'custom' part is up to the developer to determine. Here, 'controls' would make most sense?
@niels9001 I was just looking at https://learn.microsoft.com/windows/uwp/xaml-platform/themeresource-markup-extension#when-and-how-to-use-themeresource-rather-than-staticresource and it looks like we should be using ThemeResource in a lot more places. It should be used for brushes, font properties and text styles (amongst others) and we often use a StaticResources for those. If I'm right, this also applies to the example/code in WinUI Gallery > Design Guidance > Typography.
@niels9001 I was just looking at https://learn.microsoft.com/windows/uwp/xaml-platform/themeresource-markup-extension#when-and-how-to-use-themeresource-rather-than-staticresource and it looks like we should be using ThemeResource in a lot more places. It should be used for brushes, font properties and text styles (amongst others) and we often use a StaticResources for those. If I'm right, this also applies to the example/code in WinUI Gallery > Design Guidance > Typography.
There's little to no additional benefit, so I wouldn't waste any time on that. StaticResources are fine for resources that do not change or are not defined in ThemeDictionaries. Brushes do get updated on theme changes, so for those we'd want to use ThemeResources.
WASDK 1.6 will have https://learn.microsoft.com/windows/apps/windows-app-sdk/experimental-channel#new-titlebar-control π₯³
Think we should wait for the Stable relase?
WASDK 1.6 will have https://learn.microsoft.com/windows/apps/windows-app-sdk/experimental-channel#new-titlebar-control π₯³
Check the Build session for more info: https://youtu.be/WR4T24lLoVo?si=_lxZw-OQ14U7MPgJ&t=827! We've worked with the WinUI team to port the Community Toolkit titlebar to the platform, so that should make adoption much simpler!
GLOBAL
ALWAYS ON TOP