From 730417c97570d7140f6b59ae0cd8705bd3292583 Mon Sep 17 00:00:00 2001 From: Arnaud GRANAL Date: Mon, 13 Dec 2021 09:06:06 +0000 Subject: [PATCH] Faster tab transition --- .../chromium/chrome/browser/omnibox/LocationBarMediator.java | 4 ++-- .../org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java b/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java index 06e5aeac79..c078058b28 100644 --- a/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java +++ b/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java @@ -90,8 +90,8 @@ class LocationBarMediator VoiceRecognitionHandler.Observer, AssistantVoiceSearchService.Observer, UrlBarDelegate, OnKeyListener, ComponentCallbacks, TemplateUrlService.TemplateUrlServiceObserver { - private static final int ICON_FADE_ANIMATION_DURATION_MS = 150; - private static final int ICON_FADE_ANIMATION_DELAY_MS = 75; + private static final int ICON_FADE_ANIMATION_DURATION_MS = 1; + private static final int ICON_FADE_ANIMATION_DELAY_MS = 1; private static final long NTP_KEYBOARD_FOCUS_DURATION_MS = 200; private static final int WIDTH_CHANGE_ANIMATION_DURATION_MS = 225; private static final int WIDTH_CHANGE_ANIMATION_DELAY_MS = 75; diff --git a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java index 3a0fd1cba1..ea5ce4e4c7 100644 --- a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java +++ b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java @@ -102,7 +102,7 @@ */ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabCountObserver { /** The amount of time transitioning from one theme color to another should take in ms. */ - public static final long THEME_COLOR_TRANSITION_DURATION = 250; // In theory 417, since we have sped-up animation 0.6 in Kiwi, so we could adjust back to make it slower + public static final long THEME_COLOR_TRANSITION_DURATION = 50; // In theory 417, since we have sped-up animation 0.6 in Kiwi, so we could adjust back to make it slower public static final int URL_FOCUS_CHANGE_ANIMATION_DURATION_MS = 225; private static final int URL_FOCUS_TOOLBAR_BUTTONS_DURATION_MS = 100;