Comments (4)
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.
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.
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.
We really need an inner shadow tool too.
from sharpnado.shadows.
Related Issues (20)
- [Bug][UWP] White Background added inside Shadow element when using SingleShade. HOT 3
- Shade ColorBindableProperty is not Dynamic ! HOT 6
- Very bad performance on Android HOT 8
- Colored Neumorphism HOT 2
- Can you please release a version for mac? HOT 1
- [Question] Adding shadow in Code Behind HOT 4
- Shadow works only with iOS HOT 6
- Shadow White Box HOT 2
- Java.Lang.OutOfMemoryError on Android HOT 7
- [Enhancement] Inner Shadows
- Crash: ShadowView.CreateBitmap: java.lang.nullpointerException HOT 3
- How-To: offset (0,-15) but bottom padding causes shadow on the lower side HOT 1
- [Bug] Super weird behavior with Material button
- Shadow binding stopped working in 1.2.0 version (worked in 1.1.0) HOT 21
- Possible to dynamically change properties on a shade using DataTriggers?
- Support MAUI HOT 7
- Strict mode - ShadowView LeakedClosableViolation
- [BUG] udating to XamarinFrom 5.0.0.2291 InvalidOperationException "Invalid on Color.Default"
- iOS shadows do not have the correct color after updating Sharpnado.Shadows Nuget
- Maui support? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpnado.shadows.