-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature: Improved visual elements in the content area #13054
Conversation
The text should not have a backplate in High Contrast. Some time ago the WinUI team took steps to fix these issues |
…a/Files into 5bfa/Update-DataGridHeader
I am not sure of the technical detail, only that it was a change made in preparation for Windows 11. The change should be made across most of Files' UI in High Contrast |
@0x5bfa can you link the issue/feature request for this PR? |
|
@@ -122,7 +122,7 @@ | |||
<icore:ChangePropertyAction | |||
PropertyName="CurrentInstanceBorderBrush" | |||
TargetObject="{Binding ElementName=PaneLeft}" | |||
Value="{ThemeResource ControlStrokeColorDefault}" /> | |||
Value="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
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.
Is this correct? I think we need a custom brush so that we have the correct color in each theme.
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've confirmed that brush is appropriate in light(light dark), dark(light dark), high contrast(white). But previous one was red in hc theme. but we probably need to wrap this brush like App.Theme.DividerStrokeColorDefaultBrush.
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.
but we probably need to wrap this brush like App.Theme.DividerStrokeColorDefaultBrush.
That was my assumption
@@ -2,7 +2,8 @@ | |||
<Application | |||
x:Class="Files.App.App" | |||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |||
HighContrastAdjustment="None"> |
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 does this property do?
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 does this property do?
It is used to remove the backplate from text inside elements - but when activated, you will need to make sure every element has the correct foreground colour with the background colours.
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.
written in the remarks section.
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.
@mdtauk adding it in the app.xaml doesn't work. so added each page, i confirmed they are at work.
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.
Let's hold off on this change, I think we need to do some testing to see how it affects the rest of the app.
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.
we can test in this PR. This PR's purpose is to improve visual elements and so I think it is not out of the scope of the PR.
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.
And I tested in the contents area and the settings area. The controls from MUXC like TabView has already applied this property in the custom style (custom TabView style).
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.
@mdtauk adding it in the app.xaml doesn't work. so added each page, i confirmed they are at work.
This seems to be a bug, do you know if it's reported on the WinUI repo yet?
This comment was marked as off-topic.
This comment was marked as off-topic.
@Jay-o-Way we're well aware of this recommendation and we follow it around 95% of the time, but it's not always possible and it doesn't always make sense. As a side point, it's worth mentioning that according to WinUI, this rule doesn't apply anymore but we still follow it for consistency. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I have been sure to adhere to this with the designs. Occasionally like with the sidebar items, we have 2px for top and bottom padding - so when stacked vertically, you get a 4px gap between items. So you will see raw values in xaml that are not in multiples of 4, but when placed into the layouts, will in fact, meet this expectation. |
…a/Files into 5bfa/Update-DataGridHeader
@@ -26,6 +27,10 @@ | |||
<CornerRadius x:Key="GridViewThumbnailCornerRadius">2</CornerRadius> | |||
<CornerRadius x:Key="DetailsLayoutThumbnailCornerRadius">2</CornerRadius> | |||
|
|||
<Style TargetType="FlyoutPresenter"> | |||
<Setter Target="HighContrastAdjustment" Value="None" /> | |||
</Style> |
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.
Let's hold off on this change.
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.
Actually I fixed #13128 here lol
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.
Sure!
Feature: Improved visual elements in the content area
Motivation & Context
PR Checklist
Closes Bug: Divider color is red in High Contrast #13077
Closes Bug: Backplates will be displayed when hovering in High Contrast #13078
Screenshots
None