diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-03-29 10:02:53 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-28 22:38:04 -0600 |
commit | b00aacbc41e902f0d10a78db7ec216ceec48e035 (patch) | |
tree | ed333af6ef5db859f8eaf12354d4e7c661faccc0 /ui/src/main/res/values | |
parent | 532c33a13baf0beeaf7f2ded6c4481b2b66d79db (diff) |
Fix tunnel editor theming
Also set textInputStyle in the base theme to avoid setting styles to all elements
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/res/values')
-rw-r--r-- | ui/src/main/res/values/styles.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/main/res/values/styles.xml b/ui/src/main/res/values/styles.xml index ed1f9cd0..a5079b8d 100644 --- a/ui/src/main/res/values/styles.xml +++ b/ui/src/main/res/values/styles.xml @@ -20,6 +20,7 @@ <item name="alertDialogTheme">@style/AppTheme.Dialog</item> <item name="materialAlertDialogTheme">@style/AppTheme.Dialog</item> <item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents.ActionBar</item> + <item name="textInputStyle">@style/TextInputLayoutBase</item> </style> <style name="AppTheme.Dialog" parent="Theme.MaterialComponents.DayNight.Dialog.Alert"> @@ -56,8 +57,13 @@ <style name="DetailText" parent="TextAppearance.MaterialComponents.Body1" /> <style name="SectionText" parent="TextAppearance.MaterialComponents.Subtitle1" /> + <style name="ThemeOverlay.AppTheme.TextInputEditText.OutlinedBox" parent="ThemeOverlay.MaterialComponents.TextInputEditText.OutlinedBox"> + <item name="colorControlActivated">@color/color_control_normal</item> + </style> + <style name="TextInputLayoutBase" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"> <item name="boxStrokeColor">?attr/colorSecondary</item> <item name="hintTextColor">?attr/colorOnPrimary</item> + <item name="materialThemeOverlay">@style/ThemeOverlay.AppTheme.TextInputEditText.OutlinedBox</item> </style> </resources> |