aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAditya Wasan <adityawasan55@gmail.com>2019-11-13 00:55:56 +0530
committerHarsh Shandilya <msfjarvis@gmail.com>2019-11-13 00:55:56 +0530
commit9acad2abf68b64d3ca70b5263a72dfe3d5ff0081 (patch)
treeaa84fe70cc5fc4906db89e42bb90e6463ad6c2ec /app/src/main/res
parent5749c97d7c597b01ecfc483ad5d387fc025e4653 (diff)
Convert java files to kotlin (#570)
* Break SshKeyGen into multiple files * Use tinted material button * Convert PasswordStore to kotlin * Remove SshKeyGen * Remove explicit imports and other tweaks Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/font/sourcecodepro.ttfbin0 -> 52660 bytes
-rw-r--r--app/src/main/res/layout/fragment_ssh_keygen.xml9
-rw-r--r--app/src/main/res/values/strings.xml3
3 files changed, 9 insertions, 3 deletions
diff --git a/app/src/main/res/font/sourcecodepro.ttf b/app/src/main/res/font/sourcecodepro.ttf
new file mode 100644
index 00000000..6eb48e7d
--- /dev/null
+++ b/app/src/main/res/font/sourcecodepro.ttf
Binary files differ
diff --git a/app/src/main/res/layout/fragment_ssh_keygen.xml b/app/src/main/res/layout/fragment_ssh_keygen.xml
index 6b9e1013..cee878fd 100644
--- a/app/src/main/res/layout/fragment_ssh_keygen.xml
+++ b/app/src/main/res/layout/fragment_ssh_keygen.xml
@@ -36,6 +36,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:importantForAccessibility="no"
+ android:fontFamily="@font/sourcecodepro"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
@@ -62,12 +63,14 @@
android:inputType="text" />
</com.google.android.material.textfield.TextInputLayout>
- <Button
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/generate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:onClick="generate"
- android:text="@string/ssh_keygen_generate" />
+ android:text="@string/ssh_keygen_generate"
+ android:textColor="@android:color/white"
+ app:backgroundTint="?attr/colorSecondary" />
</LinearLayout>
</ScrollView>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 0c8950e6..9ac5a850 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -271,4 +271,7 @@
<string name="biometric_auth_summary">When enabled, Password Store will prompt you for your fingerprint when launching the app</string>
<string name="biometric_auth_summary_error">Fingerprint hardware not accessible or missing</string>
<string name="ssh_openkeystore_clear_keyid">Clear remembered OpenKeystore SSH Key ID</string>
+ <string name="access_sdcard_text">The store is on the sdcard but the app does not have permission to access it. Please give permission.</string>
+ <string name="your_public_key">Your public key</string>
+ <string name="error_generate_ssh_key">Error while trying to generate the ssh-key</string>
</resources>