Commit aa92361b authored by Yue Cen's avatar Yue Cen Committed by Commit Bot

Password manager: Use different font for the password field.

Fonts that are applied on different platforms:
macOS - Menlo
Windows - Consolas
Chrome OS - DejaVu Sans Mono
Linux - DejaVu Sans Mono

This can help user distinguish some characters such as 'l' and 'I'.

Bug: 768825
Change-Id: I74416fe4fc327ff992d162a7c4ad427c18ee07b5
Reviewed-on: https://chromium-review.googlesource.com/1220373Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Yue Cen <rsgingerrs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593775}
parent f55b3611
...@@ -34,6 +34,20 @@ ...@@ -34,6 +34,20 @@
} }
} }
#passwordInput {
--cr-input-input: {
<if expr="chromeos or is_linux">
font-family: 'DejaVu Sans Mono', monospace;
</if>
<if expr="is_win">
font-family: 'Consolas', monospace;
</if>
<if expr="is_macosx">
font-family: 'Menlo', monospace;
</if>
}
}
paper-icon-button-light { paper-icon-button-light {
background-size: 24px; /* Other buttons are sized by --cr-icon-size. */ background-size: 24px; /* Other buttons are sized by --cr-icon-size. */
margin-inline-start: 2px; margin-inline-start: 2px;
......
...@@ -31,6 +31,18 @@ ...@@ -31,6 +31,18 @@
line-height: inherit; line-height: inherit;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
#password {
<if expr="chromeos or is_linux">
font-family: 'DejaVu Sans Mono', monospace;
</if>
<if expr="is_win">
font-family: 'Consolas', monospace;
</if>
<if expr="is_macosx">
font-family: 'Menlo', monospace;
</if>
}
</style> </style>
<div class="list-item" focus-row-container> <div class="list-item" focus-row-container>
<div class="website-column no-min-width" <div class="website-column no-min-width"
......
...@@ -740,7 +740,8 @@ ...@@ -740,7 +740,8 @@
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_SETTINGS_PASSWORD_LIST_ITEM_HTML" <structure name="IDR_SETTINGS_PASSWORD_LIST_ITEM_HTML"
file="passwords_and_forms_page/password_list_item.html" file="passwords_and_forms_page/password_list_item.html"
type="chrome_html" /> type="chrome_html"
preprocess="true" />
<structure name="IDR_SETTINGS_PASSWORD_LIST_ITEM_JS" <structure name="IDR_SETTINGS_PASSWORD_LIST_ITEM_JS"
file="passwords_and_forms_page/password_list_item.js" file="passwords_and_forms_page/password_list_item.js"
type="chrome_html" /> type="chrome_html" />
...@@ -759,7 +760,8 @@ ...@@ -759,7 +760,8 @@
preprocess="true" /> preprocess="true" />
<structure name="IDR_SETTINGS_PASSWORD_EDIT_DIALOG_HTML" <structure name="IDR_SETTINGS_PASSWORD_EDIT_DIALOG_HTML"
file="passwords_and_forms_page/password_edit_dialog.html" file="passwords_and_forms_page/password_edit_dialog.html"
type="chrome_html" /> type="chrome_html"
preprocess="true" />
<structure name="IDR_SETTINGS_PASSWORD_EDIT_DIALOG_JS" <structure name="IDR_SETTINGS_PASSWORD_EDIT_DIALOG_JS"
file="passwords_and_forms_page/password_edit_dialog.js" file="passwords_and_forms_page/password_edit_dialog.js"
type="chrome_html" /> type="chrome_html" />
......
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