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
14
votes
5 answers

CSS: Remove shadows on disabled HTML buttons

When disabling HTML buttons, a shadow gets added to the button text. I'm styling the buttons myself and I would like to only have the one colour (white) with NO shadow but I do not know how to do it efficiently. My previous method was to leave it…
Alex Guerin
  • 2,336
  • 10
  • 36
  • 53
14
votes
1 answer

How to set shadow around grid in silverlight?

I want to set Shadow effect around all sides of Grid. I am using DropShadowEffect property of control to set shadow. What i found is Direction property set shadow around control.
pramod choudhari
  • 313
  • 6
  • 14
14
votes
2 answers

Is there a way to add inner shadow to a TextView on Android?

I would like to make an inner shadow on a textview, But I can't find any example of that on the web. Is there any way to do that on Android? I know these attributes: android:shadowColor android:shadowRadius android:shadowDx android:shadowDy Am I…
Romain Piel
  • 11,017
  • 15
  • 71
  • 106
14
votes
1 answer

How to set drop shadow around a section for UITableView in iOS Swift 4?

I want to set shadow around a every section(group of cells) in iOS Swift. Like this:
reza_khalafi
  • 6,230
  • 7
  • 56
  • 82
14
votes
1 answer

How to check if a browser supports shadow DOM

One way would be to check if there is a .shadowRoot property on an element, however I need to return a boolean before the page is rendered.
offthegrass
  • 446
  • 1
  • 6
  • 16
14
votes
5 answers

Gradient / shadows in UIImageView like Flipboard

I'm looking to create a shadow-like-gradient in my UIImageView like how it is in Flipboard. An example of it is a picture in the this image As you can see on the right iPhone, there is a darker gradient at the top and bottom. This is so that if the…
user2570984
14
votes
2 answers

Add shadow (recessed text effect) to Cocoa label without degrading text rendering quality

I'd like to create statusbar with text effect like in Safari or iTunes, i.e. recessed text. However, if I simply add shadow in Interface Builder using Core Animation panel, OS X's worst text rendering kicks in: What's the trick to get recessed…
Kornel
  • 97,764
  • 37
  • 219
  • 309
14
votes
2 answers

Voxel Cone Traced Soft Shadows

I have recently implemented soft shadows using voxel cone tracing in OpenGL 4.3 by tracing a cone in the direction of the light and accumulating opacity values. The key thing that I am trying to resolve or hide is the very voxelized shadowing…
14
votes
7 answers

How can I shadow the PackageManager with Robolectric

My Android application has a simple method to fire off an intent to display a URL. protected void launchBrowser(int id) { Uri uri = Uri.parse( getString( id ) ); Intent intent = new Intent( ACTION_VIEW, uri); PackageManager…
mjancola
  • 429
  • 1
  • 4
  • 7
14
votes
2 answers

How Do I Create Cheap Shadows In OpenGL?

I have two models, A and B, and one light, L. I would like model A to cast a shadow on model B. I don't want to bother with shadow volumes or proper shadows for the moment, just a simple circle shadow will suffice. The effect is that model A is…
Martin
  • 5,945
  • 7
  • 50
  • 77
14
votes
1 answer

Effect shadow in rectangle canvas

I have drawn a rectangle with canvas and I wonder if there is any property or way of giving a small shadow. protected void onDraw(Canvas canvas) { super.onDraw(canvas); Paint pincel1 = new Paint(); pincel1.setColor(Color.rgb(151, 217,…
user1369422
13
votes
2 answers

How can I draw a rotated UIView with a shadow but without the shadow being rotated as well

I'd like the shadow applied correctly after rotation. This is my code: myButton.transform = CGAffineTransformMakeRotation(M_PI / 180.0 * 90.0); myButton.layer.shadowOffset = CGSizeMake(12.0, 12.0); myButton.layer.shadowRadius =…
Nick Weaver
  • 47,228
  • 12
  • 98
  • 108
13
votes
2 answers

Strange shadow behavior during `alpha` animation

Have recycler with CardView items. When screen open - I start alpha animation on recycler : recyclerView.animate().alpha(1f).setStartDelay(300).start() Recycler item:
13
votes
4 answers

Rename shadow jar produced by shadow plugin to original artifact name

I am using gradle shadow plugin to build my uber jar. build.grade file looks like: buildscript { repositories { jcenter() } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2' } } apply…
user93796
  • 18,749
  • 31
  • 94
  • 150
13
votes
2 answers

View with elevation and shadow in ConstraintLayout

How can I show elevations in a view with shadows using ConstraintLayout? With Relative and Linear could perform elevations with shadows to implement list but I can not do it with ConstraintLayout.
PepitoGrillo
  • 171
  • 1
  • 1
  • 6