[Android] Adjustments to UI changes in the upstream
Chromium change: https://chromium-review.googlesource.com/c/chromium/src/+/3283625 Clean up legacy non-ThemeRefactorAndroid code now that the feature has launched. Bug: 1251194
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ import org.chromium.chrome.tab_ui.R;
|
||||
public class BraveTabUiThemeProvider {
|
||||
@ColorInt
|
||||
public static int getTitleTextColor(Context context, boolean isIncognito, boolean isSelected) {
|
||||
if (TabUiThemeProvider.themeRefactorEnabled() && isSelected) {
|
||||
if (isSelected) {
|
||||
return ApiCompatibilityUtils.getColor(
|
||||
context.getResources(), R.color.baseline_neutral_900);
|
||||
}
|
||||
@@ -27,7 +27,7 @@ public class BraveTabUiThemeProvider {
|
||||
|
||||
public static ColorStateList getActionButtonTintList(
|
||||
Context context, boolean isIncognito, boolean isSelected) {
|
||||
if (TabUiThemeProvider.themeRefactorEnabled() && isSelected) {
|
||||
if (isSelected) {
|
||||
return AppCompatResources.getColorStateList(context, R.color.baseline_neutral_900);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user