Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4a4f2b9 authored by Mohit Mali's avatar Mohit Mali
Browse files

Polishing change unselected tab color

parent 1d773efe
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -62,11 +62,10 @@ final class BottomNavItem extends LinearLayout {
    super.setSelected(selected);
    int colorId =
        selected
            ? ThemeComponent.get(getContext()).theme().getColorPrimary()
            : ThemeComponent.get(getContext()).theme().getTextColorSecondary();
    indicator.setBackgroundTintList(ColorStateList.valueOf(colorId));
//    image.setImageTintList(ColorStateList.valueOf(colorId));
//    text.setTextColor(colorId);
            ? getContext().getResources().getColor(R.color.dialer_theme_color)
            : getContext().getResources().getColor(R.color.foreground_color);
//    indicator.setBackgroundTintList(ColorStateList.valueOf(colorId));
    indicator.setBackgroundColor(colorId);
  }

  void setup(@StringRes int stringRes, @DrawableRes int drawableRes) {
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
    <View
        android:id="@+id/indicator"
        android:layout_width="match_parent"
        android:background="@color/foreground_color"
        android:layout_height="2dp" />

    <FrameLayout