diff --git a/designsystem/build.gradle b/designsystem/build.gradle
index 46aef9854..e306163ff 100644
--- a/designsystem/build.gradle
+++ b/designsystem/build.gradle
@@ -13,6 +13,7 @@ android {
targetSdkVersion rootProject.targetSdkVersion
vectorDrawables.useSupportLibrary = true
consumerProguardFiles 'consumer-rules.pro'
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
@@ -20,6 +21,7 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
+ debug {}
}
sourceSets {
diff --git a/designsystem/src/main/kotlin/com/natura/android/widget/TextInputHighlight.kt b/designsystem/src/main/kotlin/com/natura/android/widget/ValueTextHighlight.kt
similarity index 96%
rename from designsystem/src/main/kotlin/com/natura/android/widget/TextInputHighlight.kt
rename to designsystem/src/main/kotlin/com/natura/android/widget/ValueTextHighlight.kt
index c5cffc8e3..6853a3cab 100644
--- a/designsystem/src/main/kotlin/com/natura/android/widget/TextInputHighlight.kt
+++ b/designsystem/src/main/kotlin/com/natura/android/widget/ValueTextHighlight.kt
@@ -7,7 +7,7 @@ import android.view.LayoutInflater
import android.widget.TextView
import com.natura.android.R
-class TextInputHighlight @JvmOverloads constructor(
+class ValueTextHighlight @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
diff --git a/designsystem/src/main/res/color/ds_mtrl_colored_stroke_color_selector.xml b/designsystem/src/main/res/color/ds_mtrl_colored_stroke_color_selector.xml
new file mode 100644
index 000000000..a61db46aa
--- /dev/null
+++ b/designsystem/src/main/res/color/ds_mtrl_colored_stroke_color_selector.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/designsystem/src/main/res/color/ds_mtrl_default_btn_text_color_selector.xml b/designsystem/src/main/res/color/ds_mtrl_default_btn_text_color_selector.xml
index 5df2cf0c3..6dabd2a41 100644
--- a/designsystem/src/main/res/color/ds_mtrl_default_btn_text_color_selector.xml
+++ b/designsystem/src/main/res/color/ds_mtrl_default_btn_text_color_selector.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/designsystem/src/main/res/color/ds_mtrl_sec_btn_background_selector.xml b/designsystem/src/main/res/color/ds_mtrl_sec_btn_background_selector.xml
deleted file mode 100644
index 239a2595e..000000000
--- a/designsystem/src/main/res/color/ds_mtrl_sec_btn_background_selector.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/designsystem/src/main/res/color/ds_mtrl_sec_btn_text_color_selector.xml b/designsystem/src/main/res/color/ds_mtrl_sec_btn_text_color_selector.xml
deleted file mode 100644
index 5df2cf0c3..000000000
--- a/designsystem/src/main/res/color/ds_mtrl_sec_btn_text_color_selector.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/designsystem/src/main/res/color/ds_mtrl_sec_colored_btn_text_color_selector.xml b/designsystem/src/main/res/color/ds_mtrl_sec_colored_btn_text_color_selector.xml
deleted file mode 100644
index 67efe7c28..000000000
--- a/designsystem/src/main/res/color/ds_mtrl_sec_colored_btn_text_color_selector.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/designsystem/src/main/res/color/ds_mtrl_sec_colored_ripple_color_selector.xml b/designsystem/src/main/res/color/ds_mtrl_sec_colored_ripple_color_selector.xml
deleted file mode 100644
index 3c7de66ce..000000000
--- a/designsystem/src/main/res/color/ds_mtrl_sec_colored_ripple_color_selector.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/designsystem/src/main/res/values/button_styles.xml b/designsystem/src/main/res/values/button_styles.xml
index e6b09f415..3b1d8a3c4 100644
--- a/designsystem/src/main/res/values/button_styles.xml
+++ b/designsystem/src/main/res/values/button_styles.xml
@@ -1,26 +1,24 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/designsystem/src/main/res/values/custom_theme_attrs.xml b/designsystem/src/main/res/values/custom_theme_attrs.xml
new file mode 100644
index 000000000..328e866fc
--- /dev/null
+++ b/designsystem/src/main/res/values/custom_theme_attrs.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/designsystem/src/main/res/values/themes.xml b/designsystem/src/main/res/values/themes.xml
index c20177fe3..faf9ec0f2 100644
--- a/designsystem/src/main/res/values/themes.xml
+++ b/designsystem/src/main/res/values/themes.xml
@@ -17,10 +17,31 @@
- ?colorPrimary
+
+
+ - @style/Widget.Natura.Button.DarkText
+ - @style/Widget.Natura.Button.Outlined.DarkText
+ - @style/Widget.Natura.Button.TextButton.DarkText
+
+
+
+
\ No newline at end of file
diff --git a/sample/src/androidTest/kotlin/com/natura/android/sample/components/TextInputHighlightActivityTest.kt b/sample/src/androidTest/kotlin/com/natura/android/sample/components/ValueTextHighlightActivityTest.kt
similarity index 94%
rename from sample/src/androidTest/kotlin/com/natura/android/sample/components/TextInputHighlightActivityTest.kt
rename to sample/src/androidTest/kotlin/com/natura/android/sample/components/ValueTextHighlightActivityTest.kt
index beeb33aa7..5150efd3c 100644
--- a/sample/src/androidTest/kotlin/com/natura/android/sample/components/TextInputHighlightActivityTest.kt
+++ b/sample/src/androidTest/kotlin/com/natura/android/sample/components/ValueTextHighlightActivityTest.kt
@@ -14,11 +14,11 @@ import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
-class TextInputHighlightActivityTest {
+class ValueTextHighlightActivityTest {
@Before
fun setup() {
- ActivityScenario.launch(TextInputHighlightActivity::class.java)
+ ActivityScenario.launch(ValueTextHighlightActivity::class.java)
}
@Test
diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
index f5921552b..f2ed6dd1e 100644
--- a/sample/src/main/AndroidManifest.xml
+++ b/sample/src/main/AndroidManifest.xml
@@ -39,7 +39,7 @@
android:name=".components.LoadingActivity"
android:theme="@style/Theme.Natura" />
(R.id.btn_input_text_highlight).setOnClickListener {
- startActivity(Intent(this, TextInputHighlightActivity::class.java))
+ startActivity(Intent(this, ValueTextHighlightActivity::class.java))
}
findViewById