Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Conversation

@ermau
Copy link
Contributor

@ermau ermau commented Jan 11, 2019

This introduces new APIs for providing Mac theme images, colors and themes. Additionally it updates the brush editors to more closely (but not yet completely) match the design docs using these APIs (and some layout tweaks). Checkout and test requested.

Before:

screen shot 2019-01-11 at 12 17 29 pm

screen shot 2019-01-11 at 12 17 17 pm

After:

screen shot 2019-01-11 at 3 05 09 pm

screen shot 2019-01-11 at 12 13 40 pm

Dark mode will not look correct in the standalone in <=High Sierra. This is known.

Eric Maupin added 10 commits January 11, 2019 15:06
This commit:
 - Drops outdated CG* editors
 - Drops ThemeManager
 - Introduces IHostResourceProvider
 - Moves all images to new API
 - Starts implementing colors
This fixes foreground color for this view not changing when a row containing it is selected
This fixes an issue where a transparent background would bleed a popup's background through
rather than the view or layers below it.

Also tweak sizes to fit everything.
@ermau ermau requested review from CartBlanche and bleroy January 11, 2019 20:21

public override void ViewDidChangeEffectiveAppearance ()
{
this.propertyArrangeMode.Font = HostResourceProvider.GetNamedFont (PropertyEditorControl.DefaultFontName, PropertyEditorControl.DefaultFontSize);
Copy link
Contributor

@CartBlanche CartBlanche Jan 14, 2019

Choose a reason for hiding this comment

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

Ran the project for the first time and this.property* are all null, so getting an NRE exception on start-up.

Copy link
Contributor

@CartBlanche CartBlanche left a comment

Choose a reason for hiding this comment

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

Getting NRE on start-up.

Eric Maupin added 2 commits January 16, 2019 11:20
Seems Mojave calls ViewDidChangeEffectiveAppearance in NSView.ctor (NSCoder)
where High Sierra did not. We'll just ignore appearance changes until we're
setup.
@bleroy
Copy link
Contributor

bleroy commented Jan 17, 2019

On Mojave dark mode with the light theme selected, the color popup background isn't set and appears dark, making the selected tab icon hard to read.

@bleroy
Copy link
Contributor

bleroy commented Jan 17, 2019

Selecting "Resource" in the property dropdown for the material design brush in the standalone causes a missins method exception in ResourceTableDelegate.SetUpRenderer because it can't find the ctor for CommonBrushView.

@bleroy
Copy link
Contributor

bleroy commented Jan 17, 2019

Starting from a brush set to no brush, and selecting MD, we get multiple selections, the brush isn't getting updated:

@bleroy
Copy link
Contributor

bleroy commented Jan 18, 2019

Should up/down controls have a rollover effect when they are disabled? (check it out on read-only properties).

@CartBlanche
Copy link
Contributor

@bleroy I don't think they should, as they aren't interactive. I don't believe this isn't part of the @ermau's changes in this PR, but a pre-existing bug.

@ermau ermau closed this Jan 18, 2019
@ermau
Copy link
Contributor Author

ermau commented Jan 25, 2019

There's still some slight differences in the design, but they're not worth blocking on. Former comments should be addressed. The brush issues exist in master.

@ermau ermau merged commit 2d58871 into master Jan 25, 2019
@ermau ermau deleted the ermau-mac-theming branch January 25, 2019 22:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants