Questions tagged [shadow]

Questions related to drawing or setting shadows on an object. It refers to graphical shadow in user interfaces and 3D rendering and not to be confused with conceptual shadows (copies) of an object, library, database etc.

Examples of a graphical shadow: enter image description here enter image description here

2031 questions
72
votes
4 answers

How to add shadow to the text in flutter?

I searched for the shadow option in TextStyle, but I didn't find it. So I ask: how can I add shadow to the text in flutter? Is it possible? Example: new Text( "asd" style: new TextStyle( //add shadow? ));
ZeroProcess
  • 1,140
  • 2
  • 10
  • 21
70
votes
10 answers

How to add bottom elevation to a container in Flutter?

I've already seen this and this and this but they don't answer my question. I need elevation on my Container just below it, not all around it. Here's what I have as of now: My goal at the end is to eliminate the shadow at the top of the days of…
Benjamin
  • 5,783
  • 4
  • 25
  • 49
69
votes
5 answers

text shadow in react native

in my site i have a title with this text shadow: h1.title { text-shadow: -1px 1px 10px rgba(0, 0, 0, 0.75) }

title

I want do the same in my react native app. I've seen the properties: textShadowColor…
Luca Romagnoli
  • 12,145
  • 30
  • 95
  • 157
66
votes
2 answers

Remove elevation shadow without removing elevation itself

Is there a way for AppBarLayout to no drop shadow and keep its elevation?
60
votes
1 answer

Interior Mapping shader self shadowing

I'm tinkering with Joost van Dongen's Interior mapping shader and I'm trying to implement self-shadowing. Still I couldn't quite figure out what coordinates shadow casting light vectors need to be in. You can see somewhat working demo at here I've…
shaderology
  • 599
  • 3
  • 7
60
votes
15 answers

iPhone UILabel text soft shadow

I know soft shadows are not supported by the UILabel out of the box, on the iPhone. So what would be the best way to implement my own one? EDIT: Obviously I will subclass the UILabel and draw in the -drawRect: My question is, how do I get the…
Dimitris
  • 13,480
  • 17
  • 74
  • 94
56
votes
6 answers

Can you add a non-square drop shadow to PNG content with CSS?

Is it possible to do a drop shadow on the content of a PNG? Not a square, but an object drop shadow that acts on the non-transparent content of the PNG.
Kirk Strobeck
  • 17,984
  • 20
  • 75
  • 114
55
votes
4 answers

Drop Shadow on UITextField text

Is it possible to add a shadow to the text in a UITextField?
DotSlashSlash
  • 5,143
  • 5
  • 30
  • 32
54
votes
2 answers

Shadow not showing up

I am trying to place shadows in one of the div and it's not showing up. Here is one div where I am trying to implement the shadow: #intro { padding: 0px; margin: 0px auto; width: 100%; float:inherit; overflow: hidden; …
user1869585
  • 605
  • 1
  • 7
  • 11
53
votes
10 answers

React-native shadow not appearing

I'm trying to get a shadow below my views, and from what I found online it should be quite simple: shadowOffset: { width: 10, height: 10 }, shadowColor: 'black', shadowOpacity: 1.0, but the problem is that the shadow is not appearing at all. Here's…
smuvv
  • 941
  • 1
  • 8
  • 20
50
votes
9 answers

Prevent box shadow from showing on a specific side

Is there any way to create a css box-shadow in which regardless of the blur value, the shadow only appears on the desired sides? For example if I want to create a div with shadows on left and right sides and no shadow on the top or bottom. The div…
Jason Turner
  • 1,184
  • 2
  • 10
  • 18
50
votes
13 answers

How do I disable the navigation bar shadow in iOS 6 for navigation bars with custom background images?

It seems in iOS 6, a drop shadow is automatically added to the navigation bar even when you set a custom background image. I'm pretty sure this wasn't the case with iOS 5 as when I test the same code in the iOS 5 and 6 sim, the shadow appears in iOS…
Dom Chapman
  • 953
  • 2
  • 10
  • 15
49
votes
9 answers

Set Shadow on Bottom UIView only

I want to create bottom only shadow on UIView. Right now with this function, will create shadow in top, bottom, left, and right. func setCardView(view : UIView){ view.layer.masksToBounds = false view.layer.shadowOffset = CGSize(width: 0,…
Sonic Master
  • 1,238
  • 2
  • 22
  • 36
48
votes
4 answers

How can I set elevation shadow only on the bottom on react native?

I'm trying to add a shadow on the bottom of a view, but I don't how to do it on Android. With elevation it put a shadow also on the top. Is there a way to do it like on iOS? Here's my code: export function makeElevation(elevation) { const…
tinmarfrutos
  • 1,740
  • 1
  • 14
  • 23
48
votes
9 answers

Changing CardView shadow color

This question was asked on SO many times, but still I didn't find a good solution for this problem. Why do I need this to do? Well because project me and my team develops has iOS style. What did I try? 9.pathch shadow generator but 9.pathes are…