Skip to content
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

Colored Neumorphism #29

Closed
tatapuchi opened this issue Mar 18, 2021 · 2 comments
Closed

Colored Neumorphism #29

tatapuchi opened this issue Mar 18, 2021 · 2 comments

Comments

@tatapuchi
Copy link

Is your feature request related to a problem? Please describe.
The neumorphism shades seem to only be for white, however I was thinking support for coloured neumorphism would be a really cool feature, because it looks really really cool as well: Coloured Neumorphism

Describe the solution you'd like
The plugin could have colour support for the neumorphism shade, like blue for example in the aforementioned website.
NeumorphButtons
NeuButton2
NeuButton3

These are some examples of coloured neumorphism, but I'm not really sure if this is going to be easy or hard to implement so this is more of just thoughts that a feature request I guess.

@kcrg
Copy link

kcrg commented Mar 18, 2021

I think it should basically change the shadow color in the upper left and lower right corners depending on the base color.
I do that in my app for the recruitment process, using the neumorphism.io site. I can contribute to add support for that, imitating the behavior of this page shouldn't be troublesome, it's open source.

Dark Light

@roubachof
Copy link
Owner

In fact "neumorphic" shadows are just regular shadows with just some precise properties.

    public NeumorphismShadesExtension()
    {
        _upperShade = new Shade
            {
                BlurRadius = 10,
                Opacity = 1,
                Offset = new Point(-10, -10),
                Color = Color.White,
            };

        _lowerShade = new Shade
            {
                BlurRadius = 10,
                Opacity = 1,
                Offset = new Point(6, 6),
                Color = LowerShadeColor,
            };
    }

You just have to test what color suits your need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants