aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values/styles.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-05-10 14:25:59 +0530
committerGitHub <noreply@github.com>2020-05-10 14:25:59 +0530
commit94dc92f8d70870b57a7f8c4fe8adef152c1211ce (patch)
tree4139557d2cc1311daf807124cde16a17058143fb /app/src/main/res/values/styles.xml
parent9a77f6bbea95034f6dd6cdb2e0351a90dc3906f4 (diff)
Miscellaneous UI tweaking (#771)
* Remove dangling UI element and relayout authentication modes * Drop unnecessary actionBarPopupTheme declaration * Improve ssh keygen UI * Commonize button styling * Tweak save button in server config * Tweak generate button in ssh keygen * Commonize OutlinedButton style Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/values/styles.xml')
-rw-r--r--app/src/main/res/values/styles.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 7058dcff..1f1bb005 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -19,11 +19,25 @@
<item name="actionModeStyle">@style/ActionMode</item>
<item name="alertDialogTheme">@style/AppTheme.Dialog</item>
<item name="materialAlertDialogTheme">@style/AppTheme.Dialog</item>
- <item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents.ActionBar</item>
+ <item name="materialButtonStyle">@style/AppTheme.MaterialButton</item>
+ <item name="materialButtonOutlinedStyle">@style/AppTheme.OutlinedButton</item>
<item name="textInputStyle">@style/TextInputLayoutBase</item>
<item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme</item>
</style>
+ <style name="AppTheme.MaterialButton" parent="Widget.MaterialComponents.Button">
+ <item name="android:textColor">@android:color/white</item>
+ <item name="backgroundTint">?attr/colorSecondary</item>
+ <item name="rippleColor">?attr/colorControlHighlight</item>
+ </style>
+
+ <style name="AppTheme.OutlinedButton" parent="Widget.MaterialComponents.Button.OutlinedButton">
+ <item name="android:textColor">?android:attr/textColorPrimary</item>
+ <item name="rippleColor">@color/ripple_color</item>
+ <item name="strokeColor">?attr/colorSecondary</item>
+ <item name="backgroundTint">@color/toggle_button_selector</item>
+ </style>
+
<style name="AppTheme.Dialog" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
<item name="colorPrimary">@color/secondary_color</item>
<item name="colorSecondary">@color/secondary_color</item>