mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
Hide shadows on hidden app tiles
This commit is contained in:
1 parent
9b8a179f4a
commit
f5e0443abb
2 files changed
+7
-2
No files matched your search
@@ -220,6 +220,11 @@ static UIImage* noImage;
|
||||
[self updateAppImage];
|
||||
}
|
||||
|
||||
// Show no shadow for hidden apps. Because we adjust the opacity of the
|
||||
// cells for hidden apps, it makes them look bad when the shadow draws
|
||||
// through the app tile.
|
||||
self.superview.layer.shadowOpacity = _app.hidden ? 0.0f : 0.5f;
|
||||
|
||||
// Update opacity if neccessary
|
||||
[self setAlpha:_app.hidden ? 0.4 : 1.0];
|
||||
|
||||
|
||||
Reference in new issue
Block a user