UI: Make PopupScreens animate in just a bit.

This commit is contained in:
Unknown W. Brackets committed 2017-03-19 16:33:32 -07:00
1 parent 9c15efaa85
commit efbfdbb4a7
6 files changed
+55 -2

No files matched your search

+2 -2
View File
@@ -118,8 +118,8 @@ void ViewGroup::Axis(const AxisInput &input) {
void ViewGroup::Draw(UIContext &dc) {
if (hasDropShadow_) {
// Darken things behind.
dc.FillRect(UI::Drawable(0x60000000), dc.GetBounds());
float dropsize = 30;
dc.FillRect(UI::Drawable(0x60000000), dc.GetBounds().Expand(dropShadowExpand_));
float dropsize = 30.0f;
dc.Draw()->DrawImage4Grid(dc.theme->dropShadow4Grid,
bounds_.x - dropsize, bounds_.y,
bounds_.x2() + dropsize, bounds_.y2()+dropsize*1.5, 0xDF000000, 3.0f);