-
Couldn't load subscription status.
- Fork 1.4k
Sample App Fluent Design & Dark Theme #1755
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
Conversation
-Inverted Greys in Dark Theme. -Fixed PropertyControl not adapting to Theme properly.
…rces into Theme Resources. -Picked some viable inverse colors of Resources for the Dark Theme.
…ementExtensions, HamburgerMenu, HeaderedItems, ListViewBase. -Added SampleIconBacking to MoreInfoContent.
-Replaced StaticResource with ThemeResource for all the Grey Brushes.
-Added warnings about Dark Theme to PrintHelper sample and docs.
|
@nmetulev take a look at my latest changes, let me know what you think. |
|
Just one stupid question but, is the dark too dark? |
|
Here is the dark theme the Windows design team has created, could be helpful |
|
We'll want to test every sample with this and see what controls should be updated |
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.
Should we update Brush-Grey-05 instead of removing it from the sample pages?
|
@skendrot Brush-Grey-05 was only used on about 1/6 of the samples, the rest had either @Odonno I basically just inverted all of the current colors, the first step was just ensuring that all of the resources were ThemeResources and reacted to changes in System Theme properly. Now we can easily change the color scheme by changing the values in |
|
@nmetulev I had an idea, instead of depending on someone's photo for the Background, why don't we just use an Acrylic brush with a Host backdrop? That way that space is filled with the User's background and we don't have to source a photo. Of course, we could have it fall back to the photo. This could become the background in all of the samples too. |
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.
Small review, not complete
| OffsetX="@[OffsetX:DoubleSlider:2.0:0.0-100.0]" | ||
| OffsetY="@[OffsetY:DoubleSlider:2.0:0.0-100.0]" | ||
| Color="@[Color:Brush:Black]" | ||
| Color="@[Color:Brush:Aqua]" |
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.
This looks very weird on the light 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.
It is a color that works in both Dark and Light Themes, the user can change it themselves.
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 could replace the Binding with a ThemeResource?
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.
Would it make sense to allow for theme resources in the template constructor? If we grab from application resources vs. page resources, it should be easier.
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 think the black actuly looks good on dark theme
| Margin="20"> | ||
| <Polyline Points="0,0 50,50 50,0 0,50" | ||
| Stroke="Black" StrokeThickness="2"/> | ||
| Stroke="Black" StrokeThickness="2" /> |
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.
Why so many unneeded changes 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.
CodeMaid's Auto Cleanup.
Souce Acrylic material @WilliamABradley So the question is, is this a light-weight app to use the background acrylic? We can use background acrylic in Horizontal Tabs and in-app acrylic in extended horizontal tabs. |
…ictionary, to maintain support for older versions of Windows 10. -Styled About Page according to recommended designs. -Fixed Titlebar in Dark Theme.
|
Well. Start to look really nice. |
…new SampleController Page. -SampleController uses Activator to create the Sample pages instead of a Frame, therefore, all navigating and navigated overrides had to to be replaced with local calls. -Samples without Pages (Documentation only) will now actually Navigate properly and show their docs, although there will be a void on the left side of the page currently.
|
I carefully ripped out all Sample Logic from the Shell Page, and added it to a new page called SampleController, as this logic should be handled separately. This allows the Shell to be easily modified separately from the SampleController and vice versa. Other benefits include:
|
-Fixed SampleController Xaml Designer visibility. -Applied Background to Info Area uniformly (Transparent PropertiesControl and MarkdownTextBlock). -Broke several Visual States and functions in SampleController.
…ustom defined Background to shine through.
|
@nmetulev @michael-hawker Sorry I have been pretty busy lately.
|
|
Thanks @WilliamABradley. This looks great. Just few more minor details:
|
docs/developer-tools/Analytics.md
Outdated
| @@ -0,0 +1,13 @@ | |||
| ## Google analytics | |||
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.
This doc page was removed a while ago, should still be removed
| "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/WindowsCommunityToolkit/master/docs/developer-tools/FocusTracker.md" | ||
| }, | ||
| { | ||
| "Name": "Analytics", |
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.
Could you remove this sample, it should have been removed a while ago?
|
Please make sure only the sample changes the theme and not the properties pane. Otherwise, looks good |
|
@nmetulev Changes have been made. |
|
Thanks @WilliamABradley. I noticed the Shell buttons don't have a background after the latest changes, otherwise, looks good. |











Issue: #1539
PR Type
What kind of change does this PR introduce?
PR Checklist
Please check if your PR fulfills the following requirements: