diff --git a/lib/res/color-v23/design_tint_password_toggle.xml b/lib/res/color-v23/design_tint_password_toggle.xml index 3a09d32a1..b728ccff4 100644 --- a/lib/res/color-v23/design_tint_password_toggle.xml +++ b/lib/res/color-v23/design_tint_password_toggle.xml @@ -15,6 +15,5 @@ limitations under the License. --> - - + \ No newline at end of file diff --git a/lib/res/color/design_tint_password_toggle.xml b/lib/res/color/design_tint_password_toggle.xml index 15016e4ac..13beffd91 100644 --- a/lib/res/color/design_tint_password_toggle.xml +++ b/lib/res/color/design_tint_password_toggle.xml @@ -16,6 +16,5 @@ --> - - + \ No newline at end of file diff --git a/lib/res/drawable/design_ic_visibility.xml b/lib/res/drawable-anydpi-v21/design_ic_visibility.xml similarity index 74% rename from lib/res/drawable/design_ic_visibility.xml rename to lib/res/drawable-anydpi-v21/design_ic_visibility.xml index 91d46ffd9..123acd20e 100644 --- a/lib/res/drawable/design_ic_visibility.xml +++ b/lib/res/drawable-anydpi-v21/design_ic_visibility.xml @@ -20,7 +20,9 @@ android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0"> + + android:fillColor="@android:color/white" + android:pathData="@string/path_password_eye"/> + \ No newline at end of file diff --git a/lib/res/drawable-anydpi-v21/design_ic_visibility_off.xml b/lib/res/drawable-anydpi-v21/design_ic_visibility_off.xml new file mode 100644 index 000000000..a8b47f067 --- /dev/null +++ b/lib/res/drawable-anydpi-v21/design_ic_visibility_off.xml @@ -0,0 +1,28 @@ + + + + + + + + \ No newline at end of file diff --git a/lib/res/drawable-hdpi/design_ic_visibility.png b/lib/res/drawable-hdpi/design_ic_visibility.png new file mode 100644 index 000000000..329e617e9 Binary files /dev/null and b/lib/res/drawable-hdpi/design_ic_visibility.png differ diff --git a/lib/res/drawable-hdpi/design_ic_visibility_off.png b/lib/res/drawable-hdpi/design_ic_visibility_off.png new file mode 100644 index 000000000..b21a68629 Binary files /dev/null and b/lib/res/drawable-hdpi/design_ic_visibility_off.png differ diff --git a/lib/res/drawable-mdpi/design_ic_visibility.png b/lib/res/drawable-mdpi/design_ic_visibility.png new file mode 100644 index 000000000..58597e91b Binary files /dev/null and b/lib/res/drawable-mdpi/design_ic_visibility.png differ diff --git a/lib/res/drawable-mdpi/design_ic_visibility_off.png b/lib/res/drawable-mdpi/design_ic_visibility_off.png new file mode 100644 index 000000000..3efdf4922 Binary files /dev/null and b/lib/res/drawable-mdpi/design_ic_visibility_off.png differ diff --git a/lib/res/drawable-v21/avd_hide_password.xml b/lib/res/drawable-v21/avd_hide_password.xml new file mode 100644 index 000000000..8c6ed1cd8 --- /dev/null +++ b/lib/res/drawable-v21/avd_hide_password.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/res/drawable-v21/avd_show_password.xml b/lib/res/drawable-v21/avd_show_password.xml new file mode 100644 index 000000000..5b205d796 --- /dev/null +++ b/lib/res/drawable-v21/avd_show_password.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/res/drawable-v21/design_password_eye.xml b/lib/res/drawable-v21/design_password_eye.xml new file mode 100644 index 000000000..1bffaf458 --- /dev/null +++ b/lib/res/drawable-v21/design_password_eye.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/res/drawable-xhdpi/design_ic_visibility.png b/lib/res/drawable-xhdpi/design_ic_visibility.png new file mode 100644 index 000000000..1f7b4cc8f Binary files /dev/null and b/lib/res/drawable-xhdpi/design_ic_visibility.png differ diff --git a/lib/res/drawable-xhdpi/design_ic_visibility_off.png b/lib/res/drawable-xhdpi/design_ic_visibility_off.png new file mode 100644 index 000000000..46bf0c931 Binary files /dev/null and b/lib/res/drawable-xhdpi/design_ic_visibility_off.png differ diff --git a/lib/res/drawable-xxhdpi/design_ic_visibility.png b/lib/res/drawable-xxhdpi/design_ic_visibility.png new file mode 100644 index 000000000..c816ab49d Binary files /dev/null and b/lib/res/drawable-xxhdpi/design_ic_visibility.png differ diff --git a/lib/res/drawable-xxhdpi/design_ic_visibility_off.png b/lib/res/drawable-xxhdpi/design_ic_visibility_off.png new file mode 100644 index 000000000..13eb65df3 Binary files /dev/null and b/lib/res/drawable-xxhdpi/design_ic_visibility_off.png differ diff --git a/lib/res/drawable-xxxhdpi/design_ic_visibility.png b/lib/res/drawable-xxxhdpi/design_ic_visibility.png new file mode 100644 index 000000000..e005b976c Binary files /dev/null and b/lib/res/drawable-xxxhdpi/design_ic_visibility.png differ diff --git a/lib/res/drawable-xxxhdpi/design_ic_visibility_off.png b/lib/res/drawable-xxxhdpi/design_ic_visibility_off.png new file mode 100644 index 000000000..ce3c9d84d Binary files /dev/null and b/lib/res/drawable-xxxhdpi/design_ic_visibility_off.png differ diff --git a/lib/res/drawable/design_password_eye.xml b/lib/res/drawable/design_password_eye.xml new file mode 100644 index 000000000..b5185f1b1 --- /dev/null +++ b/lib/res/drawable/design_password_eye.xml @@ -0,0 +1,27 @@ + + + + + + + + + + \ No newline at end of file diff --git a/lib/res/values/password_visibility.xml b/lib/res/values/password_visibility.xml new file mode 100644 index 000000000..23faec373 --- /dev/null +++ b/lib/res/values/password_visibility.xml @@ -0,0 +1,28 @@ + + + + + + + M2,4.27 L2,4.27 L4.54,1.73 L4.54,1.73 L4.54,1 L23,1 L23,23 L1,23 L1,4.27 Z + M2,4.27 L19.73,22 L22.27,19.46 L4.54,1.73 L4.54,1 L23,1 L23,23 L1,23 L1,4.27 Z + M12,4.5C7,4.5 2.73,7.61 1,12c1.73,4.39 6,7.5 11,7.5s9.27,-3.11 11,-7.5c-1.73,-4.39 -6,-7.5 -11,-7.5zM12,17c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5zM12,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3 3,-1.34 3,-3 -1.34,-3 -3,-3z + M3.27,4.27 L19.74,20.74 + 200 + 320 + + diff --git a/lib/res/values/styles.xml b/lib/res/values/styles.xml index 820742fa7..1e13d477f 100644 --- a/lib/res/values/styles.xml +++ b/lib/res/values/styles.xml @@ -69,7 +69,7 @@ @style/TextAppearance.Design.Error @style/TextAppearance.Design.Counter @style/TextAppearance.Design.Counter.Overflow - @drawable/design_ic_visibility + @drawable/design_password_eye @color/design_tint_password_toggle