[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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1354,8 +1354,8 @@ public class BraveNewTabPageLayout
|
||||
GlobalNightModeStateProviderHolder.getInstance().isInNightMode()
|
||||
? android.R.color.white
|
||||
: android.R.color.black;
|
||||
ImageViewCompat.setImageTintList(
|
||||
mSuperReferralLogo, ColorStateList.valueOf(floatingButtonIconColor));
|
||||
ImageViewCompat.setImageTintList(mSuperReferralLogo,
|
||||
ColorStateList.valueOf(getResources().getColor(floatingButtonIconColor)));
|
||||
mSuperReferralLogo.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/brave_shields_shadow"
|
||||
android:src="@drawable/toolbar_shadow_normal"
|
||||
android:src="@drawable/modern_toolbar_shadow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
|
||||
Reference in New Issue
Block a user