diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_explicit_check.png b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_explicit_check.png index dc67655e7..839f9a9a0 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_explicit_check.png and b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_explicit_check.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_implicit_check.png b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_implicit_check.png index ecfbbccea..2f56a45d1 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_implicit_check.png and b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_implicit_check.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_unchecked.png b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_unchecked.png index ccb71eb88..b97994147 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_unchecked.png and b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkButtonView/render_unchecked.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render.png b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render.png index dfdae3097..d6178d6f0 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render.png and b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render_offset.png b/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render_offset.png deleted file mode 100644 index 574701417..000000000 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/CheckmarkPanelView/render_offset.png and /dev/null differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/HabitCardView/render_numerical.png b/uhabits-android/src/androidTest/assets/views/habits/list/HabitCardView/render_numerical.png index 92ae7a9e9..280be2441 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/HabitCardView/render_numerical.png and b/uhabits-android/src/androidTest/assets/views/habits/list/HabitCardView/render_numerical.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_above.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_above.png index 0a63264fe..28daff30e 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_above.png and b/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_above.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_below.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_below.png index 2679668e0..e5a98fc89 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_below.png and b/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_below.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_zero.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_zero.png index 8dd64a6c2..5f6bf8c65 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_zero.png and b/uhabits-android/src/androidTest/assets/views/habits/list/NumberButtonView/render_zero.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render.png index ee8e8b644..22584afb3 100644 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render.png and b/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render.png differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_different_color.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_different_color.png deleted file mode 100644 index 63c40543a..000000000 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_different_color.png and /dev/null differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_offset.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_offset.png deleted file mode 100644 index a098279c0..000000000 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_offset.png and /dev/null differ diff --git a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_reversed.png b/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_reversed.png deleted file mode 100644 index 29f877275..000000000 Binary files a/uhabits-android/src/androidTest/assets/views/habits/list/NumberPanelView/render_reversed.png and /dev/null differ diff --git a/uhabits-android/src/androidTest/java/org/isoron/uhabits/activities/habits/list/views/NumberPanelViewTest.kt b/uhabits-android/src/androidTest/java/org/isoron/uhabits/activities/habits/list/views/NumberPanelViewTest.kt index 73f05c2f8..bd046acc7 100644 --- a/uhabits-android/src/androidTest/java/org/isoron/uhabits/activities/habits/list/views/NumberPanelViewTest.kt +++ b/uhabits-android/src/androidTest/java/org/isoron/uhabits/activities/habits/list/views/NumberPanelViewTest.kt @@ -41,8 +41,6 @@ class NumberPanelViewTest : BaseViewTest() { @Before override fun setUp() { super.setUp() - prefs.isCheckmarkSequenceReversed = false - val checkmarks = doubleArrayOf( 1400.0, 5300.0, @@ -68,11 +66,10 @@ class NumberPanelViewTest : BaseViewTest() { view.onDetachedFromWindow() } - // Flaky - // @Test - // fun testRender() { - // assertRenders(view, "$PATH/render.png") - // } + @Test + fun testRender() { + assertRenders(view, "$PATH/render.png") + } @Test fun testEdit() { diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/FrequencyChart.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/FrequencyChart.kt index 73579a858..c4bad1a96 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/FrequencyChart.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/FrequencyChart.kt @@ -255,8 +255,8 @@ class FrequencyChart : ScrollableChart { private fun initColors() { val res = StyledResources(context) - textColor = res.getColor(R.attr.mediumContrastTextColor) - gridColor = res.getColor(R.attr.lowContrastTextColor) + textColor = res.getColor(R.attr.contrast60) + gridColor = res.getColor(R.attr.contrast20) colors = IntArray(4) colors[0] = gridColor colors[3] = primaryColor diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/RingView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/RingView.kt index 2da90bf26..8f552f50b 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/RingView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/RingView.kt @@ -187,7 +187,7 @@ class RingView : View { pRing!!.textAlign = Paint.Align.CENTER val res = StyledResources(context) if (backgroundColor == null) backgroundColor = res.getColor(R.attr.cardBgColor) - if (inactiveColor == null) inactiveColor = res.getColor(R.attr.highContrastTextColor) + if (inactiveColor == null) inactiveColor = res.getColor(R.attr.contrast100) inactiveColor = setAlpha(inactiveColor!!, 0.1f) rect = RectF() } diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/ScoreChart.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/ScoreChart.kt index f26e5374f..4d104a3a7 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/ScoreChart.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/ScoreChart.kt @@ -334,8 +334,8 @@ class ScoreChart : ScrollableChart { private fun initColors() { val res = StyledResources(context) primaryColor = Color.BLACK - textColor = res.getColor(R.attr.mediumContrastTextColor) - gridColor = res.getColor(R.attr.lowContrastTextColor) + textColor = res.getColor(R.attr.contrast60) + gridColor = res.getColor(R.attr.contrast20) internalBackgroundColor = res.getColor(R.attr.cardBgColor) } diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/StreakChart.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/StreakChart.kt index b821c1c9a..7c5e4c80a 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/StreakChart.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/StreakChart.kt @@ -207,11 +207,11 @@ class StreakChart : View { colors[3] = primaryColor colors[2] = Color.argb(192, red, green, blue) colors[1] = Color.argb(96, red, green, blue) - colors[0] = res.getColor(R.attr.lowContrastTextColor) + colors[0] = res.getColor(R.attr.contrast20) textColors = IntArray(3) - textColors[2] = res.getColor(R.attr.highContrastReverseTextColor) - textColors[1] = res.getColor(R.attr.mediumContrastTextColor) - textColors[0] = res.getColor(R.attr.lowContrastReverseTextColor) + textColors[2] = res.getColor(R.attr.contrast0) + textColors[1] = res.getColor(R.attr.contrast60) + textColors[0] = res.getColor(R.attr.contrast80) } private fun initPaints() { diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/TargetChart.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/TargetChart.kt index c87640524..b03c748c1 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/TargetChart.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/common/views/TargetChart.kt @@ -165,9 +165,9 @@ class TargetChart : View { paint!!.textAlign = Paint.Align.CENTER paint!!.isAntiAlias = true val res = StyledResources(context) - lowContrastTextColor = res.getColor(R.attr.lowContrastTextColor) - mediumContrastTextColor = res.getColor(R.attr.mediumContrastTextColor) - highContrastReverseTextColor = res.getColor(R.attr.highContrastReverseTextColor) + lowContrastTextColor = res.getColor(R.attr.contrast20) + mediumContrastTextColor = res.getColor(R.attr.contrast60) + highContrastReverseTextColor = res.getColor(R.attr.contrast0) tinyTextSize = getDimension(context, R.dimen.tinyTextSize) } diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/CheckmarkButtonView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/CheckmarkButtonView.kt index cec72761a..ad9b02826 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/CheckmarkButtonView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/CheckmarkButtonView.kt @@ -33,6 +33,7 @@ import org.isoron.uhabits.core.models.Entry import org.isoron.uhabits.core.models.Entry.Companion.NO import org.isoron.uhabits.core.models.Entry.Companion.SKIP import org.isoron.uhabits.core.models.Entry.Companion.UNKNOWN +import org.isoron.uhabits.core.models.Entry.Companion.YES_AUTO import org.isoron.uhabits.core.models.Entry.Companion.YES_MANUAL import org.isoron.uhabits.core.preferences.Preferences import org.isoron.uhabits.inject.ActivityContext @@ -116,7 +117,8 @@ class CheckmarkButtonView( private inner class Drawer { private val rect = RectF() - private val lowContrastColor = sres.getColor(R.attr.lowContrastTextColor) + private val lowContrastColor = sres.getColor(R.attr.contrast40) + private val mediumContrastColor = sres.getColor(R.attr.contrast60) private val paint = TextPaint().apply { typeface = getFontAwesome() @@ -128,7 +130,12 @@ class CheckmarkButtonView( fun draw(canvas: Canvas) { paint.color = when (value) { YES_MANUAL -> color + YES_AUTO -> mediumContrastColor SKIP -> color + NO -> { + if (preferences.areQuestionMarksEnabled()) mediumContrastColor + else lowContrastColor + } else -> lowContrastColor } val id = when (value) { diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/EmptyListView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/EmptyListView.kt index e076b8ebb..9a3b78c5f 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/EmptyListView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/EmptyListView.kt @@ -47,7 +47,7 @@ class EmptyListView(context: Context) : LinearLayout(context) { typeface = getFontAwesome() textSize = sp(40.0f) gravity = CENTER - setTextColor(sres.getColor(R.attr.mediumContrastTextColor)) + setTextColor(sres.getColor(R.attr.contrast60)) } addView( @@ -60,7 +60,7 @@ class EmptyListView(context: Context) : LinearLayout(context) { text = str(R.string.no_habits_found) gravity = CENTER setPadding(0, dp(20.0f).toInt(), 0, 0) - setTextColor(sres.getColor(R.attr.mediumContrastTextColor)) + setTextColor(sres.getColor(R.attr.contrast60)) } addView( textTextView, diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HabitCardView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HabitCardView.kt index 23e2f11bf..2318f2ccc 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HabitCardView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HabitCardView.kt @@ -212,7 +212,7 @@ class HabitCardView( fun getActiveColor(habit: Habit): Int { return when (habit.isArchived) { - true -> sres.getColor(R.attr.mediumContrastTextColor) + true -> sres.getColor(R.attr.contrast60) false -> habit.color.toThemedAndroidColor(context) } } diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HeaderView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HeaderView.kt index fc7edbba8..5a79b11f9 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HeaderView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/HeaderView.kt @@ -108,7 +108,7 @@ class HeaderView( textSize = dim(R.dimen.tinyTextSize) textAlign = Paint.Align.CENTER typeface = Typeface.DEFAULT_BOLD - color = sres.getColor(R.attr.mediumContrastTextColor) + color = sres.getColor(R.attr.contrast60) } fun draw(canvas: Canvas) { diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt index 41f72c2b4..353094c26 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/NumberButtonView.kt @@ -128,8 +128,8 @@ class NumberButtonView( private val rect: RectF = RectF() private val sr = StyledResources(context) - private val lightGrey: Int - private val darkGrey: Int + private val lowContrast: Int + private val mediumContrast: Int private val pRegular: TextPaint = TextPaint().apply { textSize = getDimension(context, R.dimen.smallerTextSize) @@ -147,14 +147,14 @@ class NumberButtonView( init { em = pBold.measureText("m") - lightGrey = sr.getColor(R.attr.lowContrastTextColor) - darkGrey = sr.getColor(R.attr.mediumContrastTextColor) + lowContrast = sr.getColor(R.attr.contrast40) + mediumContrast = sr.getColor(R.attr.contrast60) } fun draw(canvas: Canvas) { val activeColor = when { - value <= 0.0 -> lightGrey - value < threshold -> darkGrey + value <= 0.0 -> lowContrast + value < threshold -> mediumContrast else -> color } diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show/views/OverviewCardView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show/views/OverviewCardView.kt index 95614c903..aa5b0cd02 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show/views/OverviewCardView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/show/views/OverviewCardView.kt @@ -44,7 +44,7 @@ class OverviewCardView(context: Context, attrs: AttributeSet) : LinearLayout(con fun setState(state: OverviewCardState) { val androidColor = state.color.toThemedAndroidColor(context) val res = StyledResources(context) - val inactiveColor = res.getColor(R.attr.mediumContrastTextColor) + val inactiveColor = res.getColor(R.attr.contrast60) binding.monthDiffLabel.setTextColor(if (state.scoreMonthDiff >= 0) androidColor else inactiveColor) binding.monthDiffLabel.text = formatPercentageDiff(state.scoreMonthDiff) binding.scoreLabel.setTextColor(androidColor) diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/widgets/views/CheckmarkWidgetView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/widgets/views/CheckmarkWidgetView.kt index 97cebe04e..9fa95ed99 100644 --- a/uhabits-android/src/main/java/org/isoron/uhabits/widgets/views/CheckmarkWidgetView.kt +++ b/uhabits-android/src/main/java/org/isoron/uhabits/widgets/views/CheckmarkWidgetView.kt @@ -67,19 +67,19 @@ class CheckmarkWidgetView : HabitWidgetView { when (entryState) { YES_MANUAL, SKIP -> { bgColor = activeColor - fgColor = res.getColor(R.attr.highContrastReverseTextColor) + fgColor = res.getColor(R.attr.contrast0) setShadowAlpha(0x4f) backgroundPaint!!.color = bgColor frame!!.setBackgroundDrawable(background) } YES_AUTO, NO, UNKNOWN -> { bgColor = res.getColor(R.attr.cardBgColor) - fgColor = res.getColor(R.attr.mediumContrastTextColor) + fgColor = res.getColor(R.attr.contrast60) setShadowAlpha(0x00) } else -> { bgColor = res.getColor(R.attr.cardBgColor) - fgColor = res.getColor(R.attr.mediumContrastTextColor) + fgColor = res.getColor(R.attr.contrast60) setShadowAlpha(0x00) } } diff --git a/uhabits-android/src/main/res/drawable/bg_input_box.xml b/uhabits-android/src/main/res/drawable/bg_input_box.xml index 44c521cd9..3533fde0a 100644 --- a/uhabits-android/src/main/res/drawable/bg_input_box.xml +++ b/uhabits-android/src/main/res/drawable/bg_input_box.xml @@ -19,8 +19,8 @@ --> - - + + - - + + diff --git a/uhabits-android/src/main/res/layout/activity_edit_habit.xml b/uhabits-android/src/main/res/layout/activity_edit_habit.xml index ac4e8af1c..94af404e7 100644 --- a/uhabits-android/src/main/res/layout/activity_edit_habit.xml +++ b/uhabits-android/src/main/res/layout/activity_edit_habit.xml @@ -23,7 +23,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?attr/highContrastReverseTextColor" + android:background="?attr/contrast0" android:fitsSystemWindows="true" android:orientation="vertical" tools:context=".activities.habits.edit.EditHabitActivity"> @@ -201,7 +201,7 @@ style="@style/FormDropdown" android:id="@+id/numericalFrequencyPicker" android:text="@string/every_week" - android:textColor="?attr/highContrastTextColor" + android:textColor="?attr/contrast100" /> diff --git a/uhabits-android/src/main/res/layout/activity_sync.xml b/uhabits-android/src/main/res/layout/activity_sync.xml index 9027202c5..5d7040d5e 100644 --- a/uhabits-android/src/main/res/layout/activity_sync.xml +++ b/uhabits-android/src/main/res/layout/activity_sync.xml @@ -23,7 +23,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?attr/highContrastReverseTextColor" + android:background="?attr/contrast0" android:fitsSystemWindows="true" android:orientation="vertical" tools:context=".activities.habits.edit.EditHabitActivity"> diff --git a/uhabits-android/src/main/res/layout/show_habit_notes.xml b/uhabits-android/src/main/res/layout/show_habit_notes.xml index 0e51420d4..52c9627d7 100644 --- a/uhabits-android/src/main/res/layout/show_habit_notes.xml +++ b/uhabits-android/src/main/res/layout/show_habit_notes.xml @@ -29,6 +29,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" - android:textColor="?highContrastTextColor" + android:textColor="?attr/contrast100" tools:text="This is some example text for the notes" /> \ No newline at end of file diff --git a/uhabits-android/src/main/res/layout/show_habit_overview.xml b/uhabits-android/src/main/res/layout/show_habit_overview.xml index 93765fdb4..0afe7fa56 100644 --- a/uhabits-android/src/main/res/layout/show_habit_overview.xml +++ b/uhabits-android/src/main/res/layout/show_habit_overview.xml @@ -64,7 +64,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/score" - android:textColor="?mediumContrastTextColor"/> + android:textColor="?attr/contrast60"/> @@ -83,7 +83,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/month" - android:textColor="?mediumContrastTextColor"/> + android:textColor="?attr/contrast60"/> @@ -102,7 +102,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/year" - android:textColor="?mediumContrastTextColor"/> + android:textColor="?attr/contrast60"/> @@ -121,7 +121,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/total" - android:textColor="?mediumContrastTextColor"/> + android:textColor="?attr/contrast60"/> diff --git a/uhabits-android/src/main/res/layout/show_habit_subtitle.xml b/uhabits-android/src/main/res/layout/show_habit_subtitle.xml index e66b52579..f8f3924bc 100644 --- a/uhabits-android/src/main/res/layout/show_habit_subtitle.xml +++ b/uhabits-android/src/main/res/layout/show_habit_subtitle.xml @@ -30,7 +30,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" - android:textColor="?mediumContrastTextColor" + android:textColor="?attr/contrast60" android:textSize="@dimen/regularTextSize" tools:text="Have you worked out today?" /> @@ -48,7 +48,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/fa_arrow_circle_up" - android:textColor="?mediumContrastTextColor" + android:textColor="?attr/contrast60" android:textSize="16sp" /> @@ -85,7 +85,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/fa_bell_o" - android:textColor="?mediumContrastTextColor" + android:textColor="?attr/contrast60" android:textSize="@dimen/smallTextSize" /> diff --git a/uhabits-android/src/main/res/values/attrs.xml b/uhabits-android/src/main/res/values/attrs.xml index ae3a0389a..596c76ebd 100644 --- a/uhabits-android/src/main/res/values/attrs.xml +++ b/uhabits-android/src/main/res/values/attrs.xml @@ -26,13 +26,12 @@ - - - - - - - + + + + + + diff --git a/uhabits-android/src/main/res/values/material_colors.xml b/uhabits-android/src/main/res/values/material_colors.xml index 93003c958..34d080880 100644 --- a/uhabits-android/src/main/res/values/material_colors.xml +++ b/uhabits-android/src/main/res/values/material_colors.xml @@ -285,6 +285,7 @@ #F5F5F5 #EEEEEE #E0E0E0 + #D8D8D8 #BDBDBD #9E9E9E #757575 diff --git a/uhabits-android/src/main/res/values/styles.xml b/uhabits-android/src/main/res/values/styles.xml index 1c4627fbc..a881d6fdc 100644 --- a/uhabits-android/src/main/res/values/styles.xml +++ b/uhabits-android/src/main/res/values/styles.xml @@ -25,7 +25,7 @@ @style/Theme.AppCompat.Light.Dialog @style/Theme.AppCompat.Light.Dialog false - ?attr/highContrastReverseTextColor + ?attr/contrast0 ?attr/colorPrimary @color/grey_800 @drawable/card_light_background @@ -35,8 +35,6 @@ #303030 @drawable/ic_action_color_light @color/grey_200 - @color/white - @color/grey_800 @color/grey_100 @drawable/ic_action_add_dark @drawable/ic_action_archive_dark @@ -45,10 +43,12 @@ @drawable/ic_action_edit_dark @drawable/ic_action_filter_dark @drawable/ic_action_unarchive_dark - @color/grey_700 - @color/grey_300 - @color/grey_500 - @color/grey_500 + @color/white + @color/grey_300 + @color/grey_350 + @color/grey_500 + @color/grey_700 + @color/grey_800 @array/lightPalette @style/PreferenceThemeOverlay.v14.Material @style/ScrollableRecyclerViewStyle @@ -75,8 +75,6 @@ @color/black @drawable/ic_action_color_dark @color/grey_900 - @color/grey_900 - @color/grey_100 @color/grey_800 @drawable/ic_action_add_dark @drawable/ic_action_archive_dark @@ -84,10 +82,12 @@ @drawable/ic_action_edit_dark @drawable/ic_action_filter_dark @drawable/ic_action_unarchive_dark - @color/grey_300 - @color/grey_800 - @color/grey_750 - @color/grey_500 + @color/grey_900 + @color/grey_800 + @color/grey_750 + @color/grey_500 + @color/grey_300 + @color/grey_100 @array/darkPalette @color/black @style/PreferenceThemeOverlay.v14.Material @@ -112,13 +112,12 @@ @color/black @color/black @color/black - @color/black - @color/grey_200 @color/black - @color/grey_700 - @color/grey_900 - @color/grey_900 - @color/grey_700 + @color/black + @color/grey_900 + @color/grey_700 + @color/grey_700 + @color/grey_200 @drawable/selected_box_amoled @color/grey_100 @color/black @@ -126,12 +125,11 @@ @@ -141,7 +139,7 @@ @@ -263,7 +261,7 @@ 8dp -15dp -4dp - ?attr/highContrastReverseTextColor + ?attr/contrast0 8dp 8dp @dimen/smallerTextSize @@ -315,6 +313,6 @@ diff --git a/uhabits-android/src/main/res/values/styles_dialog.xml b/uhabits-android/src/main/res/values/styles_dialog.xml index ba5f6be70..17288335a 100644 --- a/uhabits-android/src/main/res/values/styles_dialog.xml +++ b/uhabits-android/src/main/res/values/styles_dialog.xml @@ -22,7 +22,7 @@ @@ -33,7 +33,7 @@ 90dp left 6dp - ?mediumContrastTextColor + ?attr/contrast60