Commit a9741a3c authored by Ian Vollick's avatar Ian Vollick Committed by Commit Bot

[vr] Fix shadow offsets

Gives the omnibox a soft shadow.

Bug: 833375
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
Change-Id: I17b9bbf4fdd2d8830e0157ddfd6b9ef57008ecb2
Reviewed-on: https://chromium-review.googlesource.com/1014010
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Reviewed-by: default avatarChristopher Grant <cjgrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551010}
parent 1b578253
......@@ -2423,7 +2423,7 @@ void UiSceneCreator::CreateOmnibox() {
e->SetTransitionedProperties({});
y_offset += kUrlBarVerticalOffsetDMM;
}
e->SetTranslate(0, y_offset, kOmniboxShadowOffset);
e->SetTranslate(0, y_offset, -kOmniboxShadowOffset);
},
shadow.get())));
......@@ -2631,6 +2631,7 @@ void UiSceneCreator::CreateOmnibox() {
omnibox_background->set_hit_testable(true);
omnibox_background->set_focusable(false);
omnibox_background->set_corner_radius(kOmniboxCornerRadiusDMM);
omnibox_background->SetTranslate(0, 0, kOmniboxShadowOffset);
VR_BIND_COLOR(model_, omnibox_background.get(),
&ColorScheme::omnibox_background, &Rect::SetColor);
omnibox_background->AddChild(std::move(omnibox_outer_layout));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment