diff --git a/core/res/res/color/btn_default_material_dark.xml b/core/res/res/color/btn_default_material_dark.xml index 7c904cdfc6bd5..9be1417dbb22b 100644 --- a/core/res/res/color/btn_default_material_dark.xml +++ b/core/res/res/color/btn_default_material_dark.xml @@ -16,7 +16,7 @@ + android:alpha="@dimen/disabled_alpha_material_dark" + android:color="@color/button_material_dark"/> diff --git a/core/res/res/color/btn_default_material_light.xml b/core/res/res/color/btn_default_material_light.xml index 738f9ad00e9e1..af5afe6239c2f 100644 --- a/core/res/res/color/btn_default_material_light.xml +++ b/core/res/res/color/btn_default_material_light.xml @@ -16,7 +16,7 @@ + android:alpha="@dimen/disabled_alpha_material_light" + android:color="@color/button_material_light"/> diff --git a/core/res/res/color/primary_text_disable_only_material_dark.xml b/core/res/res/color/primary_text_disable_only_material_dark.xml index cdae79012ba8c..a6296c96c273d 100644 --- a/core/res/res/color/primary_text_disable_only_material_dark.xml +++ b/core/res/res/color/primary_text_disable_only_material_dark.xml @@ -16,7 +16,7 @@ + android:alpha="@dimen/disabled_alpha_material_dark" + android:color="@color/bright_foreground_material_dark"/> diff --git a/core/res/res/color/primary_text_disable_only_material_light.xml b/core/res/res/color/primary_text_disable_only_material_light.xml index 0bf14d03aee72..b781844f575db 100644 --- a/core/res/res/color/primary_text_disable_only_material_light.xml +++ b/core/res/res/color/primary_text_disable_only_material_light.xml @@ -16,7 +16,7 @@ + android:alpha="@dimen/disabled_alpha_material_light" + android:color="@color/bright_foreground_material_light"/> diff --git a/core/res/res/color/primary_text_material_dark.xml b/core/res/res/color/primary_text_material_dark.xml index 6ad837ba4a254..690f0ec01fab7 100644 --- a/core/res/res/color/primary_text_material_dark.xml +++ b/core/res/res/color/primary_text_material_dark.xml @@ -16,7 +16,7 @@ + android:alpha="@dimen/disabled_alpha_material_dark" + android:color="@color/primary_text_default_material_dark"/> diff --git a/core/res/res/color/primary_text_material_light.xml b/core/res/res/color/primary_text_material_light.xml index 4c19e1256ffcf..634ad94687857 100644 --- a/core/res/res/color/primary_text_material_light.xml +++ b/core/res/res/color/primary_text_material_light.xml @@ -16,7 +16,7 @@ + android:alpha="@dimen/disabled_alpha_material_light" + android:color="@color/primary_text_default_material_light"/> diff --git a/core/res/res/color/secondary_text_material_dark.xml b/core/res/res/color/secondary_text_material_dark.xml new file mode 100644 index 0000000000000..5bddf9663e760 --- /dev/null +++ b/core/res/res/color/secondary_text_material_dark.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/core/res/res/color/secondary_text_material_light.xml b/core/res/res/color/secondary_text_material_light.xml new file mode 100644 index 0000000000000..3c354cb347e78 --- /dev/null +++ b/core/res/res/color/secondary_text_material_light.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/core/res/res/drawable/progress_horizontal_material.xml b/core/res/res/drawable/progress_horizontal_material.xml index 7a1079cef82d1..6b64337fcf59b 100644 --- a/core/res/res/drawable/progress_horizontal_material.xml +++ b/core/res/res/drawable/progress_horizontal_material.xml @@ -18,13 +18,13 @@ + android:alpha="?attr/disabledAlpha" /> + android:alpha="?attr/disabledAlpha" /> diff --git a/core/res/res/layout/action_menu_item_layout.xml b/core/res/res/layout/action_menu_item_layout.xml index 04d1f7b24d24e..6961f8d58f421 100644 --- a/core/res/res/layout/action_menu_item_layout.xml +++ b/core/res/res/layout/action_menu_item_layout.xml @@ -25,5 +25,4 @@ android:paddingStart="8dip" android:paddingEnd="8dip" android:textAppearance="?attr/actionMenuTextAppearance" - android:textColor="?attr/actionMenuTextColor" - style="?android:attr/actionButtonStyle" /> + style="?attr/actionButtonStyle" /> diff --git a/core/res/res/values/colors_material.xml b/core/res/res/values/colors_material.xml index c9292ebac97fe..d8e14a06c1fe4 100644 --- a/core/res/res/values/colors_material.xml +++ b/core/res/res/values/colors_material.xml @@ -58,19 +58,14 @@ - #de000000 - - #8a000000 - - #8a000000 + #8a000000 - - #deffffff - - #61ffffff - - #61ffffff + #ffffffff + #b3ffffff + + 0.26 + 0.30 diff --git a/core/res/res/values/dimens_material.xml b/core/res/res/values/dimens_material.xml index f5c92995c8d1b..5f7f0ed20dcd6 100644 --- a/core/res/res/values/dimens_material.xml +++ b/core/res/res/values/dimens_material.xml @@ -77,8 +77,5 @@ 2dp - - 0.26 - - 12dp + 18dp diff --git a/core/res/res/values/themes_material.xml b/core/res/res/values/themes_material.xml index 89fac13d57904..2296a1264c565 100644 --- a/core/res/res/values/themes_material.xml +++ b/core/res/res/values/themes_material.xml @@ -46,7 +46,7 @@ please see themes_device_defaults.xml. @color/bright_foreground_material_light @color/background_material_dark @color/background_cache_hint_selector_material_dark - @dimen/disabled_alpha_material + @dimen/disabled_alpha_material_dark 0.6 @@ -58,8 +58,8 @@ please see themes_device_defaults.xml. @color/primary_text_disable_only_material_dark @color/secondary_text_material_dark @color/secondary_text_material_light - @color/tertiary_text_material_dark - @color/tertiary_text_material_light + @color/secondary_text_material_dark + @color/secondary_text_material_light @color/hint_foreground_material_dark @color/hint_foreground_material_light @color/highlighted_text_material_dark @@ -387,7 +387,7 @@ please see themes_device_defaults.xml. @color/bright_foreground_material_dark @color/background_material_light @color/background_cache_hint_selector_material_light - @dimen/disabled_alpha_material + @dimen/disabled_alpha_material_light 0.6 @@ -398,8 +398,8 @@ please see themes_device_defaults.xml. @color/primary_text_material_dark @color/secondary_text_material_light @color/secondary_text_material_dark - @color/tertiary_text_material_light - @color/tertiary_text_material_dark + @color/secondary_text_material_light + @color/secondary_text_material_dark @color/primary_text_disable_only_material_light @color/primary_text_disable_only_material_dark @color/hint_foreground_material_light @@ -750,8 +750,8 @@ please see themes_device_defaults.xml. @color/primary_text_material_dark @color/secondary_text_material_light @color/secondary_text_material_dark - @color/tertiary_text_material_light - @color/tertiary_text_material_dark + @color/secondary_text_material_light + @color/secondary_text_material_dark @color/primary_text_disable_only_material_light @color/primary_text_disable_only_material_dark @color/hint_foreground_material_light @@ -790,8 +790,8 @@ please see themes_device_defaults.xml. @color/primary_text_disable_only_material_dark @color/secondary_text_material_dark @color/secondary_text_material_light - @color/tertiary_text_material_dark - @color/tertiary_text_material_light + @color/secondary_text_material_dark + @color/secondary_text_material_light @color/hint_foreground_material_dark @color/hint_foreground_material_light @color/highlighted_text_material_dark diff --git a/graphics/java/android/graphics/drawable/RippleBackground.java b/graphics/java/android/graphics/drawable/RippleBackground.java index 49862bc1ce21b..34e6a20e9f331 100644 --- a/graphics/java/android/graphics/drawable/RippleBackground.java +++ b/graphics/java/android/graphics/drawable/RippleBackground.java @@ -42,8 +42,9 @@ class RippleBackground { private static final float GLOBAL_SPEED = 1.0f; private static final float WAVE_TOUCH_DOWN_ACCELERATION = 1024.0f * GLOBAL_SPEED; private static final float WAVE_OPACITY_DECAY_VELOCITY = 3.0f / GLOBAL_SPEED; - private static final float WAVE_OUTER_OPACITY_VELOCITY_MAX = 4.5f * GLOBAL_SPEED; - private static final float WAVE_OUTER_OPACITY_VELOCITY_MIN = 1.5f * GLOBAL_SPEED; + private static final float WAVE_OUTER_OPACITY_EXIT_VELOCITY_MAX = 4.5f * GLOBAL_SPEED; + private static final float WAVE_OUTER_OPACITY_EXIT_VELOCITY_MIN = 1.5f * GLOBAL_SPEED; + private static final float WAVE_OUTER_OPACITY_ENTER_VELOCITY = 10.0f * GLOBAL_SPEED; private static final float WAVE_OUTER_SIZE_INFLUENCE_MAX = 200f; private static final float WAVE_OUTER_SIZE_INFLUENCE_MIN = 40f; @@ -285,7 +286,7 @@ class RippleBackground { public void enter() { final int radiusDuration = (int) (1000 * Math.sqrt(mOuterRadius / WAVE_TOUCH_DOWN_ACCELERATION * mDensity) + 0.5); - final int outerDuration = (int) (1000 * 1.0f / WAVE_OUTER_OPACITY_VELOCITY_MIN); + final int outerDuration = (int) (1000 * 1.0f / WAVE_OUTER_OPACITY_ENTER_VELOCITY); final ObjectAnimator cX = ObjectAnimator.ofFloat(this, "xGravity", 1); cX.setAutoCancel(true); @@ -328,8 +329,8 @@ class RippleBackground { final float outerSizeInfluence = MathUtils.constrain( (mOuterRadius - WAVE_OUTER_SIZE_INFLUENCE_MIN * mDensity) / (WAVE_OUTER_SIZE_INFLUENCE_MAX * mDensity), 0, 1); - final float outerOpacityVelocity = MathUtils.lerp(WAVE_OUTER_OPACITY_VELOCITY_MIN, - WAVE_OUTER_OPACITY_VELOCITY_MAX, outerSizeInfluence); + final float outerOpacityVelocity = MathUtils.lerp(WAVE_OUTER_OPACITY_EXIT_VELOCITY_MIN, + WAVE_OUTER_OPACITY_EXIT_VELOCITY_MAX, outerSizeInfluence); // Determine at what time the inner and outer opacity intersect. // inner(t) = mOpacity - t * WAVE_OPACITY_DECAY_VELOCITY / 1000