Commit 173cfaab authored by Fabian Sommer's avatar Fabian Sommer Committed by Commit Bot

Clean up smartcard login UI

Increase arrow button size
Decrease card icon size
Increase distance between login button and card icon
Use new card icon

Bug: 1024254
Change-Id: I34962de9e63725b742914a68c382a7c6416b38e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1942343Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Fabian Sommer <fabiansommer@google.com>
Cr-Commit-Position: refs/heads/master@{#721520}
parent 2dda6455
...@@ -101,10 +101,10 @@ constexpr int kFingerprintFailedAnimationNumFrames = 45; ...@@ -101,10 +101,10 @@ constexpr int kFingerprintFailedAnimationNumFrames = 45;
constexpr base::TimeDelta kChallengeResponseResetAfterFailureDelay = constexpr base::TimeDelta kChallengeResponseResetAfterFailureDelay =
base::TimeDelta::FromSeconds(5); base::TimeDelta::FromSeconds(5);
constexpr int kChallengeResponseArrowSizeDp = 40; constexpr int kChallengeResponseArrowSizeDp = 48;
constexpr int kSpacingBetweenChallengeResponseArrowAndIconDp = 64; constexpr int kSpacingBetweenChallengeResponseArrowAndIconDp = 100;
constexpr int kSpacingBetweenChallengeResponseIconAndLabelDp = 15; constexpr int kSpacingBetweenChallengeResponseIconAndLabelDp = 15;
constexpr int kChallengeResponseIconSizeDp = 32; constexpr int kChallengeResponseIconSizeDp = 28;
constexpr int kDistanceBetweenPasswordFieldAndChallengeResponseViewDp = 0; constexpr int kDistanceBetweenPasswordFieldAndChallengeResponseViewDp = 0;
constexpr int kDisabledAuthMessageVerticalBorderDp = 16; constexpr int kDisabledAuthMessageVerticalBorderDp = 16;
......
...@@ -2,47 +2,102 @@ ...@@ -2,47 +2,102 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
CANVAS_DIMENSIONS, 54, CANVAS_DIMENSIONS, 56,
MOVE_TO, 45.4f, 10, MOVE_TO, 48, 22,
LINE_TO, 8.6f, 10, R_H_LINE_TO, -8,
CUBIC_TO, 6.05f, 10, 4.02f, 12, 4.02f, 14.5f, R_V_LINE_TO, -8,
LINE_TO, 4, 41.5f, R_H_LINE_TO, 8,
CUBIC_TO, 4, 44, 6.05f, 46, 8.6f, 46, R_V_LINE_TO, 8,
LINE_TO, 45.4f, 46, CLOSE,
CUBIC_TO, 47.95f, 46, 50, 44, 50, 41.5f, R_MOVE_TO, 0, 10,
LINE_TO, 50, 14.5f, LINE_TO, 40, 32,
CUBIC_TO, 50, 12, 47.95f, 10, 45.4f, 10, R_V_LINE_TO, -6,
CLOSE, LINE_TO, 48, 26,
MOVE_TO, 46, 42, R_V_LINE_TO, 6,
LINE_TO, 8, 42, CLOSE,
LINE_TO, 8, 14, MOVE_TO, 48, 42,
LINE_TO, 46, 14, R_H_LINE_TO, -8,
LINE_TO, 46, 42, R_V_LINE_TO, -6,
CLOSE,
MOVE_TO, 36, 36,
LINE_TO, 36, 42,
LINE_TO, 30, 42,
LINE_TO, 30, 14,
LINE_TO, 36, 14,
LINE_TO, 36, 22,
LINE_TO, 46, 22,
LINE_TO, 46, 26,
LINE_TO, 36, 26,
LINE_TO, 36, 32,
LINE_TO, 48, 32,
LINE_TO, 48, 36, LINE_TO, 48, 36,
LINE_TO, 36, 36, R_V_LINE_TO, 6,
CLOSE, CLOSE,
MOVE_TO, 18, 36, MOVE_TO, 8, 42,
LINE_TO, 6, 36, R_V_LINE_TO, -6,
LINE_TO, 6, 32, LINE_TO, 20, 36,
LINE_TO, 18, 32, R_V_LINE_TO, 6,
LINE_TO, 18, 26, H_LINE_TO, 8,
LINE_TO, 6, 26, CLOSE,
LINE_TO, 6, 22, R_MOVE_TO, 26, -28,
LINE_TO, 18, 22, R_V_LINE_TO, 28,
LINE_TO, 24, 22, H_LINE_TO, 24,
LINE_TO, 24, 42, V_LINE_TO, 22,
LINE_TO, 18, 42, H_LINE_TO, 8,
LINE_TO, 18, 36, R_V_LINE_TO, -8,
R_H_LINE_TO, 26,
CLOSE,
MOVE_TO, 20, 26,
R_V_LINE_TO, 6,
LINE_TO, 8, 32,
R_V_LINE_TO, -6,
LINE_TO, 20, 26,
CLOSE,
MOVE_TO, 8.8f, 10,
R_CUBIC_TO, -2.66f, 0, -4.78f, 2, -4.78f, 4.5f,
LINE_TO, 4, 41.5f,
CUBIC_TO, 4, 44, 6.14f, 46, 8.8f, 46,
R_H_LINE_TO, 38.4f,
R_CUBIC_TO, 2.66f, 0, 4.8f, -2, 4.8f, -4.5f,
V_LINE_TO, 14.5f,
R_CUBIC_TO, 0, -2.5f, -2.14f, -4.5f, -4.8f, -4.5f,
R_H_LINE_TO, -38.4f,
CLOSE
CANVAS_DIMENSIONS, 28,
MOVE_TO, 24, 11,
R_H_LINE_TO, -4,
V_LINE_TO, 7,
R_H_LINE_TO, 4,
R_V_LINE_TO, 4,
CLOSE,
R_MOVE_TO, 0, 5,
LINE_TO, 20, 16,
R_V_LINE_TO, -3,
LINE_TO, 24, 13,
R_V_LINE_TO, 3,
CLOSE,
MOVE_TO, 24, 21,
R_H_LINE_TO, -4,
R_V_LINE_TO, -3,
LINE_TO, 24, 18,
R_V_LINE_TO, 3,
CLOSE,
MOVE_TO, 4, 21,
R_V_LINE_TO, -3,
LINE_TO, 10, 18,
R_V_LINE_TO, 3,
H_LINE_TO, 4,
CLOSE,
MOVE_TO, 17, 7,
R_V_LINE_TO, 14,
R_H_LINE_TO, -5,
V_LINE_TO, 11,
H_LINE_TO, 4,
V_LINE_TO, 7,
R_H_LINE_TO, 13,
CLOSE,
R_MOVE_TO, -7, 6,
R_V_LINE_TO, 3,
LINE_TO, 4, 16,
R_V_LINE_TO, -3,
LINE_TO, 10, 13,
CLOSE,
MOVE_TO, 4.4f, 5,
CUBIC_TO, 3.07f, 5, 2.01f, 6, 2.01f, 7.25f,
LINE_TO, 2, 20.75f,
CUBIC_TO, 2, 22, 3.07f, 23, 4.4f, 23,
R_H_LINE_TO, 19.2f,
R_CUBIC_TO, 1.33f, 0, 2.4f, -1, 2.4f, -2.25f,
V_LINE_TO, 7.25f,
CUBIC_TO, 26, 6, 24.93f, 5, 23.6f, 5,
H_LINE_TO, 4.4f,
CLOSE CLOSE
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