Coder Social home page Coder Social logo

Comments (4)

roubachof avatar roubachof commented on August 11, 2024 3

Inner Shadows are definitely something interesting and I will probably give it a try :)
Right now your can already have some kind of push effect by swapping the colors of the 2 neumorphic shades on the Tap or click event in the code-behind.

Or I think you can even achieve it with VisualState by setting shades with NeumorphismShades in a "Idle" state and create a pair of shades like this (offset between white and dark shades are inverted) on a "Pressed" state:

        <sh:ImmutableShades>
                <sh:Shade BlurRadius="10"
                          Opacity="1"
                          Offset="10,10"
                          Color="White" />
                <sh:Shade BlurRadius="10"
                          Opacity="1"
                          Offset="-6, -6"
                          Color="#19000000" />
        </sh:ImmutableShades>

from sharpnado.shadows.

Jerome-Liger avatar Jerome-Liger commented on August 11, 2024

I have the same need... +1

A full neuromorphism UI implementation will need to manage shadows "outside" (elevation positive) and shadows "inside" (elevation negative) for different views (Entry/Button/Frame...) exactly like @shawyunz shared image.

Is there a possibility/ehancement for doing it with your "Sharpnado.Shadow" implementation ?
I tried to put negative offset, but it doesn't work (I didn't expected this to work, but I tried ;-) )

I'm dreaming of a single boolean bindable property (IsShadowInside) to achieve that like this :

<sh:Shadows Shades="{sh:NeumorphismShades}"
            IsShadowInside="{Binding IsPushed}">
        <Frame BackgroundColor="#F1F1F1"
               CornerRadius="10"
               HasShadow="False">
            <StackLayout>
                <Label Style="{StaticResource TextHeadline}" Text="Welcome to the HomePage !" />
                <Label Style="{StaticResource TextBody}" Text="Need to customize your page here..." />
            </StackLayout>
        </Frame>
</sh:Shadows>

I'll check your sourcecode to find if it can be a possible ehancement... feel free to guide me (or suggest me other ways)

from sharpnado.shadows.

tatapuchi avatar tatapuchi commented on August 11, 2024

On the topic of inverted shadows with neumorphism, I feel like they are sort of a bad idea in certain scenarios as they dont have much of a contrast to the unpressed look (also it just looks sort of weird to me). I was reading an article providing a better alternative which was using an outline that you could just darken and lighten to indicate pressed and unpressed states.

from sharpnado.shadows.

mhrastegari avatar mhrastegari commented on August 11, 2024

We really need an inner shadow tool too.

from sharpnado.shadows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.