From 6c0668c069f6c270007cac9ca1241dc4e23285bc Mon Sep 17 00:00:00 2001 From: osodebailar Date: Tue, 5 Apr 2022 16:28:08 +0200 Subject: [PATCH] change notes edit textfield to material style --- core/src/main/res/layout/notes.xml | 42 ++++++++++++++--------- core/src/main/res/values-night/colors.xml | 4 ++- core/src/main/res/values-night/styles.xml | 2 +- core/src/main/res/values/colors.xml | 4 ++- 4 files changed, 33 insertions(+), 19 deletions(-) diff --git a/core/src/main/res/layout/notes.xml b/core/src/main/res/layout/notes.xml index d350f6fb21..9ee27909a4 100644 --- a/core/src/main/res/layout/notes.xml +++ b/core/src/main/res/layout/notes.xml @@ -1,25 +1,35 @@ + + + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" + android:hint="@string/notes_label" + app:boxStrokeColor="@color/mtrl_textinput_default_box_stroke_color" + android:textColorHint="?attr/colorOnPrimary" + app:hintTextColor="?attr/colorOnPrimary" + app:endIconMode="clear_text"> - - - + android:inputType="text|textCapSentences" /> + + + diff --git a/core/src/main/res/values-night/colors.xml b/core/src/main/res/values-night/colors.xml index b12d342936..746b87f239 100644 --- a/core/src/main/res/values-night/colors.xml +++ b/core/src/main/res/values-night/colors.xml @@ -1,5 +1,5 @@ - + #212121 @@ -245,6 +245,8 @@ #9E9E9E + #9E9E9E + #0099CC #ff669900 diff --git a/core/src/main/res/values-night/styles.xml b/core/src/main/res/values-night/styles.xml index 67d8b27049..dba4f1fbac 100644 --- a/core/src/main/res/values-night/styles.xml +++ b/core/src/main/res/values-night/styles.xml @@ -96,7 +96,7 @@ @color/toastBase - @color/white + @color/white_alpha_20 @color/tabBgColorSelected diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml index d46e136e6f..3f633cc56a 100644 --- a/core/src/main/res/values/colors.xml +++ b/core/src/main/res/values/colors.xml @@ -1,5 +1,5 @@ - + #FBF9FF @@ -249,6 +249,8 @@ #9E9E9E + #9E9E9E + #0099CC #ff669900