-
Notifications
You must be signed in to change notification settings - Fork 113
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
The popover show should not be light in Dark Mode #36
Comments
Hmm, good point. Should it be |
Yes. Black is the correct choice. And that's enough for most of the usages. That's could be modified now by: .popoverShadow(shadow: {
var shadow = Templates.Shadow.system
shadow.color = Color(.black.withAlphaComponent(0.3))
return shadow
}()) And opening the modifier is also a good idea. |
Hi @aheze, I also would like to ask if it is possible to customize the Template.Container logic for applying shadow as well. By default it applies Otherwise, I could extend Template with another container to modify my own version of container, but I also require the BackgroundWithArrow to be public. |
@aheze I have created a PR to have some modification to the Container's shadow. https://github.com/aheze/Popovers/pull/62 |
The popover show should not be light in Dark Mode
@aheze I have created PR for the changes.....Kindly review |
Thanks! |
Resolved issue #36 : Updated let to var as suggested
Popovers/Sources/Templates/Shadow.swift
Lines 26 to 31 in 47b82f5
Hello. I'm try to intergrade a popover for custom SwiftUI control. I notice the shadow template is implement with
.label
color. This color works well in Light Mode. But for the Dark Mode the shadow color should still beblack
and we needs elevate the modal background color (from black to gray) to make popover looks like floating.For example the iPad slide over window:
The text was updated successfully, but these errors were encountered: