-
Notifications
You must be signed in to change notification settings - Fork 67
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
ThemeSelector Update Phase2 #418
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Zhang Dian <[email protected]>
{ | ||
AvaloniaObject? result = TargetScope; | ||
result ??= this.GetLogicalAncestors().OfType<ThemeVariantScope>().FirstOrDefault(); | ||
result ??= TargetScope; |
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 the line duplicated?
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.
yes its redundant.
In Controller+ThreeState mode, if the system defaults to Dark theme, the toggle can switch between three states. If the system defaults to Light theme, the toggle can only switch between two states |
Further fix of #340