mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-04-04 13:27:36 +03:00
Generate password icon as dice
This commit is contained in:
parent
dc20899d26
commit
a3860c9581
5 changed files with 155 additions and 47 deletions
|
@ -5,17 +5,114 @@
|
|||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<group>
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M 7 2 L 7 7 L 12 7 L 10.238281 5.2382812 A 7.0000001 7.0000001 0 0 1 12 5 A
|
||||
7.0000001 7.0000001 0 0 1 18.701172 10 L 20.765625 10 A 9.0000001 9.0000001 0 0
|
||||
0 12 3 A 9.0000001 9.0000001 0 0 0 8.6640625 3.6640625 L 7 2 z M 8 8 A 4.0000001
|
||||
4.0000001 0 0 0 4 12 L 6 12 A 2 2 0 0 1 8 10 A 2 2 0 0 1 10 12 A 2 2 0 0 1 8 14
|
||||
L 8 16 A 4.0000001 4.0000001 0 0 0 11.869141 13 L 17 13 L 17 16 L 19 16 L 19 13
|
||||
L 21 13 L 21 11 L 11.867188 11 A 4.0000001 4.0000001 0 0 0 8 8 z M 3.234375 14 A
|
||||
9.0000001 9.0000001 0 0 0 12 21 A 9.0000001 9.0000001 0 0 0 15.335938 20.335938
|
||||
L 17 22 L 17 17 L 12 17 L 13.761719 18.761719 A 7.0000001 7.0000001 0 0 1 12 19
|
||||
A 7.0000001 7.0000001 0 0 1 5.2988281 14 L 3.234375 14 z" />
|
||||
</group>
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M9.77344,3.13281 C9.4515,3.1329,9.12601,3.22745,8.83789,3.42188 L1.73828,8.21289
|
||||
C1.25807,8.53693,1.00007,9.06311,1,9.59961
|
||||
C0.999958,9.92151,1.09268,10.247,1.28711,10.5352 L6.07813,17.6328
|
||||
C6.5966,18.4011,7.63207,18.6025,8.40039,18.084 L8.59375,17.9531
|
||||
C7.93444,17.5713,7.49368,16.9397,7.33398,16.2305
|
||||
C7.25701,16.1464,7.21481,16.0308,7.23828,15.9102 L7.27148,15.7422
|
||||
C7.271,15.7299,7.26758,15.7194,7.26758,15.707 L7.09961,15.8184
|
||||
C6.92859,15.9337,6.69736,15.8897,6.58203,15.7188
|
||||
C6.46665,15.5479,6.51062,15.3165,6.68164,15.2012 L6.86523,15.0801
|
||||
L6.65039,15.0371 C6.44804,14.9977,6.31618,14.8059,6.35547,14.6035
|
||||
C6.39476,14.4011,6.58863,14.2693,6.79102,14.3086 L7.00586,14.3516
|
||||
L6.88477,14.1699 C6.76939,13.9991,6.81335,13.7677,6.98438,13.6523
|
||||
C7.1554,13.537,7.38468,13.581,7.5,13.752 L7.62305,13.9316 L7.66406,13.7188
|
||||
C7.69855,13.5416,7.8519,13.4274,8.02539,13.4258 L11.1816,6.77344
|
||||
C11.4309,6.24809,11.8397,5.84958,12.3203,5.58984 L11.1602,3.87109
|
||||
C10.8361,3.3909,10.3119,3.13267,9.77539,3.13281 L9.77344,3.13281 Z
|
||||
M9.70703,5.15625 C9.90938,5.19561,10.0373,5.39136,9.99805,5.59375
|
||||
L9.95898,5.80859 L10.1387,5.68555
|
||||
C10.3097,5.57024,10.5409,5.61618,10.6563,5.78711
|
||||
C10.7716,5.95797,10.7257,6.18741,10.5547,6.30273 L10.375,6.42578
|
||||
L10.5879,6.46484 C10.7902,6.5042,10.922,6.70197,10.8828,6.9043
|
||||
C10.8435,7.1067,10.6496,7.23855,10.4473,7.19922 L10.2344,7.15625
|
||||
L10.3535,7.33594 C10.4689,7.5068,10.4249,7.73817,10.2539,7.85352
|
||||
C10.0829,7.9688,9.85163,7.92289,9.73633,7.75195 L9.61523,7.57031
|
||||
L9.57227,7.78516 C9.53298,7.98758,9.34104,8.11943,9.13867,8.08008
|
||||
C8.93633,8.04072,8.80451,7.84684,8.84375,7.64453 L8.88477,7.43164
|
||||
L8.70313,7.55273 C8.53228,7.66806,8.30282,7.62406,8.1875,7.45313
|
||||
C8.07212,7.28226,8.11609,7.05088,8.28711,6.93555 L8.46875,6.8125
|
||||
L8.25391,6.76953 C8.05154,6.73017,7.91971,6.53833,7.95898,6.33594
|
||||
C7.99827,6.13352,8.19412,6.00167,8.39648,6.04102 L8.61133,6.08398
|
||||
L8.48828,5.90234 C8.3729,5.73148,8.41882,5.50205,8.58984,5.38672
|
||||
C8.76069,5.27139,8.99014,5.31344,9.10547,5.48438 L9.22656,5.66602
|
||||
L9.26758,5.45313 C9.30687,5.25073,9.50467,5.11692,9.70703,5.15625 Z
|
||||
M13.6602,6.24414 C13.0088,6.21529,12.3742,6.57309,12.0762,7.20117
|
||||
L8.40625,14.9375 C8.00883,15.7749,8.36373,16.7686,9.20117,17.166
|
||||
L16.9375,20.8379 C17.7749,21.2353,18.7686,20.8804,19.166,20.043 L22.8379,12.3066
|
||||
C23.2353,11.4693,22.8804,10.4736,22.043,10.0762 L14.3066,6.40625
|
||||
C14.0973,6.30689,13.8773,6.25374,13.6602,6.24414 Z M4.62109,8.49023
|
||||
C4.66856,8.4801,4.71886,8.48028,4.76953,8.49023
|
||||
C4.97188,8.52959,5.10374,8.72142,5.06445,8.92383 L5.02148,9.13867
|
||||
L5.20313,9.01758 C5.37397,8.90227,5.60343,8.94625,5.71875,9.11719
|
||||
C5.83413,9.28805,5.78999,9.51944,5.61914,9.63477 L5.43945,9.75586
|
||||
L5.65039,9.79492 C5.85276,9.83428,5.9865,10.0321,5.94727,10.2344
|
||||
C5.90798,10.4368,5.71213,10.5686,5.50977,10.5293 L5.29688,10.4883
|
||||
L5.41797,10.668 C5.53335,10.8388,5.48938,11.0683,5.31836,11.1836
|
||||
C5.14751,11.2989,4.91806,11.253,4.80273,11.082 L4.67969,10.9023 L4.63672,11.1172
|
||||
C4.59743,11.3196,4.40355,11.4495,4.20117,11.4102
|
||||
C3.99883,11.3708,3.867,11.1769,3.90625,10.9746 L3.94922,10.7617 L3.76953,10.8828
|
||||
C3.59851,10.9981,3.36728,10.9541,3.25195,10.7832
|
||||
C3.13658,10.6123,3.18054,10.3829,3.35156,10.2676 L3.53516,10.1426
|
||||
L3.31836,10.1016 C3.11599,10.0622,2.98612,9.86842,3.02539,9.66602
|
||||
C3.06468,9.46362,3.25857,9.33371,3.46094,9.37305 L3.67578,9.41406
|
||||
L3.55078,9.23242 C3.4354,9.06156,3.48132,8.83214,3.65234,8.7168
|
||||
C3.82337,8.60149,4.05462,8.64547,4.16992,8.81641 L4.29102,8.99805
|
||||
L4.33203,8.7832 C4.36154,8.6314,4.47892,8.52021,4.62109,8.49023 Z
|
||||
M19.2363,10.7852 C19.3814,10.7935,19.5126,10.8876,19.5645,11.0332
|
||||
L19.6367,11.2363 L19.7305,11.041
|
||||
C19.8188,10.8547,20.0403,10.7749,20.2266,10.8633
|
||||
C20.4128,10.9517,20.4908,11.1712,20.4023,11.3574 L20.3086,11.5586
|
||||
L20.5156,11.4844 C20.7098,11.4152,20.9211,11.5148,20.9902,11.709
|
||||
C21.0594,11.9032,20.9597,12.1163,20.7656,12.1855 L20.5586,12.2578
|
||||
L20.7578,12.3516 C20.944,12.44,21.022,12.6614,20.9336,12.8477
|
||||
C20.8452,13.0339,20.6238,13.1118,20.4375,13.0234 L20.2402,12.9297
|
||||
L20.3125,13.1367 C20.3817,13.3309,20.282,13.5421,20.0879,13.6113
|
||||
C19.8937,13.6805,19.6825,13.5809,19.6133,13.3867 L19.5391,13.1777
|
||||
L19.4453,13.377 C19.357,13.5632,19.1374,13.6411,18.9512,13.5527 L18.9492,13.5527
|
||||
C18.763,13.4643,18.6832,13.2429,18.7715,13.0566 L18.8652,12.8613
|
||||
L18.6621,12.9336 C18.4679,13.0027,18.2547,12.9012,18.1855,12.707
|
||||
C18.1164,12.5128,18.218,12.3016,18.4121,12.2324 L18.6172,12.1582
|
||||
L18.4199,12.0664 C18.2337,11.978,18.1557,11.7566,18.2441,11.5703
|
||||
C18.3325,11.384,18.554,11.3042,18.7402,11.3926 L18.9355,11.4863 L18.8613,11.2832
|
||||
C18.7922,11.089,18.8938,10.8759,19.0879,10.8066
|
||||
C19.1364,10.7894,19.188,10.7824,19.2363,10.7852 Z M15.2695,12.1973
|
||||
C15.4146,12.2056,15.5478,12.2997,15.5996,12.4453 L15.6699,12.6484
|
||||
L15.7637,12.4531 C15.852,12.2669,16.0735,12.189,16.2598,12.2773
|
||||
C16.446,12.3657,16.524,12.5872,16.4355,12.7734 L16.3438,12.9707 L16.5488,12.8965
|
||||
C16.743,12.8273,16.9543,12.9289,17.0234,13.123
|
||||
C17.0926,13.3172,16.991,13.5304,16.7969,13.5996 L16.5938,13.6699
|
||||
L16.7891,13.7637 C16.9753,13.8521,17.0552,14.0735,16.9668,14.2598
|
||||
C16.8784,14.446,16.6569,14.5239,16.4707,14.4355 L16.2734,14.3438
|
||||
L16.3477,14.5488 C16.4168,14.743,16.3152,14.9542,16.1211,15.0234
|
||||
C15.9269,15.0926,15.7176,14.993,15.6484,14.7988 L15.5742,14.5918
|
||||
L15.4785,14.7891 C15.3902,14.9753,15.1687,15.0532,14.9824,14.9648
|
||||
C14.7962,14.8765,14.7182,14.657,14.8066,14.4707 L14.8984,14.2734
|
||||
L14.6953,14.3477 C14.5011,14.4168,14.2879,14.3152,14.2188,14.1211
|
||||
C14.1496,13.9269,14.2493,13.7157,14.4434,13.6465 L14.6504,13.5723
|
||||
L14.4531,13.4785 C14.2669,13.3901,14.1889,13.1687,14.2773,12.9824
|
||||
C14.3657,12.7962,14.5872,12.7183,14.7734,12.8066 L14.9688,12.8984
|
||||
L14.8945,12.6953 C14.8254,12.5011,14.9289,12.288,15.123,12.2188
|
||||
C15.1716,12.2015,15.2212,12.1945,15.2695,12.1973 Z M11.3008,13.6113
|
||||
C11.4458,13.6197,11.579,13.7138,11.6309,13.8594 L11.7051,14.0625
|
||||
L11.7969,13.8672 C11.8852,13.6809,12.1087,13.6011,12.2949,13.6895
|
||||
C12.4811,13.7778,12.5591,13.9993,12.4707,14.1855 L12.375,14.3848 L12.582,14.3105
|
||||
C12.7762,14.2414,12.9894,14.341,13.0586,14.5352
|
||||
C13.1277,14.7294,13.0242,14.9425,12.8301,15.0117 L12.627,15.084 L12.8242,15.1777
|
||||
C13.0104,15.2661,13.0885,15.4876,13,15.6738
|
||||
C12.9116,15.8601,12.6902,15.938,12.5039,15.8496 L12.3066,15.7559
|
||||
L12.3789,15.9629 C12.4481,16.1571,12.3484,16.3683,12.1543,16.4375
|
||||
C11.9601,16.5067,11.7489,16.4071,11.6797,16.2129 L11.6055,16.0039
|
||||
L11.5137,16.2031 C11.4253,16.3894,11.2019,16.4693,11.0156,16.3809
|
||||
L11.0156,16.3789 C10.8294,16.2905,10.7514,16.071,10.8398,15.8848
|
||||
L10.9336,15.6875 L10.7305,15.7598
|
||||
C10.5363,15.8289,10.3211,15.7273,10.252,15.5332
|
||||
C10.1828,15.339,10.2844,15.1278,10.4785,15.0586 L10.6855,14.9863
|
||||
L10.4863,14.8926 C10.3001,14.8042,10.2221,14.5828,10.3105,14.3965
|
||||
C10.3989,14.2102,10.6184,14.1304,10.8047,14.2188 L11.0039,14.3125
|
||||
L10.9297,14.1094 C10.8605,13.9152,10.9622,13.702,11.1563,13.6328
|
||||
C11.2048,13.6156,11.2524,13.6086,11.3008,13.6113 Z" />
|
||||
</vector>
|
|
@ -55,12 +55,18 @@
|
|||
tools:ignore="TextFields" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<Button
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/generate_password_button"
|
||||
android:layout_margin="@dimen/button_margin"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp"
|
||||
android:drawableEnd="@drawable/ic_generate_password_white_24dp"
|
||||
android:drawableRight="@drawable/ic_generate_password_white_24dp"
|
||||
android:paddingLeft="24dp"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingRight="24dp"
|
||||
android:paddingEnd="24dp"
|
||||
android:text="@string/generate_password" />
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -83,19 +83,19 @@
|
|||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Password -->
|
||||
<RelativeLayout
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/entry_edit_container_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:passwordToggleEnabled="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true">
|
||||
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent">
|
||||
<androidx.appcompat.widget.AppCompatEditText
|
||||
android:id="@+id/entry_edit_password"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -110,13 +110,13 @@
|
|||
<!-- Confirm Password -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/entry_edit_container_confirmation_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
app:layout_constraintTop_toBottomOf="@+id/entry_edit_container_password"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:passwordToggleEnabled="true"
|
||||
android:contentDescription="@string/content_description_repeat_toggle_password_visibility"
|
||||
android:layout_below="@+id/entry_edit_container_password">
|
||||
android:contentDescription="@string/content_description_repeat_toggle_password_visibility">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatEditText
|
||||
android:id="@+id/entry_edit_confirmation_password"
|
||||
|
@ -128,7 +128,7 @@
|
|||
android:maxLines="1"
|
||||
android:hint="@string/entry_confpassword"/>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</RelativeLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- URL -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
|
|
|
@ -21,11 +21,6 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:ignore="AlwaysShowAction">
|
||||
<item android:id="@+id/menu_generate_password"
|
||||
android:icon="@drawable/ic_generate_password_white_24dp"
|
||||
android:title="@string/entry_password_generator"
|
||||
android:orderInCategory="91"
|
||||
app:showAsAction="always" />
|
||||
<item android:id="@+id/menu_add_field"
|
||||
android:icon="@drawable/ic_new_field_white_24dp"
|
||||
android:title="@string/entry_add_field"
|
||||
|
@ -43,4 +38,9 @@
|
|||
android:title="@string/entry_setup_otp"
|
||||
android:orderInCategory="94"
|
||||
app:showAsAction="always" />
|
||||
<item android:id="@+id/menu_generate_password"
|
||||
android:icon="@drawable/ic_generate_password_white_24dp"
|
||||
android:title="@string/entry_password_generator"
|
||||
android:orderInCategory="95"
|
||||
app:showAsAction="always" />
|
||||
</menu>
|
||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Add table
Add a link
Reference in a new issue