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

Commit 33478b34 authored by Mohit Mali's avatar Mohit Mali Committed by Aayush Gupta
Browse files

Dialer: Initial /e/ UI implementation

Change-Id: I5e76511e702a0531ee46403b82129b2106ca3356
parent 5d05f810
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -43,8 +43,9 @@ public class ViewPagerTabStrip extends LinearLayout {
    final Resources res = context.getResources();

    mSelectedUnderlineThickness = res.getDimensionPixelSize(R.dimen.tab_selected_underline_height);
    int underlineColor = ThemeComponent.get(context).theme().getColorAccent();
    int backgroundColor = ThemeComponent.get(context).theme().getColorPrimary();

    int underlineColor = context.getResources().getColor(R.color.dialer_theme_color);
    int backgroundColor = context.getResources().getColor(R.color.foreground_color);

    mSelectedUnderlinePaint = new Paint();
    mSelectedUnderlinePaint.setColor(underlineColor);
+1 −0
Original line number Diff line number Diff line
@@ -143,6 +143,7 @@ public class ViewPagerTabs extends HorizontalScrollView implements ViewPager.OnP
      View layout = LayoutInflater.from(getContext()).inflate(R.layout.unread_count_tab, null);
      View iconView = layout.findViewById(R.id.icon);
      iconView.setBackgroundResource(mTabIcons[position]);
      iconView.setBackgroundTintList(getContext().getResources().getColorStateList(R.color.dialer_theme_color));
      iconView.setContentDescription(tabTitle);
      TextView textView = (TextView) layout.findViewById(R.id.count);
      if (mUnreadCounts != null && mUnreadCounts[position] > 0) {
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.support.v7.app.ActionBar;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import com.android.contacts.common.list.ViewPagerTabs;
import com.android.dialer.app.R;
@@ -77,6 +78,7 @@ public class CallLogActivity extends TransactionSafeActivity implements
    actionBar.setDisplayShowTitleEnabled(true);
    actionBar.setElevation(0);


    int startingTab = TAB_INDEX_ALL;
    final Intent intent = getIntent();
    if (intent != null) {
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@
          android:layout_gravity="center_vertical"
          android:background="?android:attr/selectableItemBackgroundBorderless"
          android:scaleType="center"
          android:tint="?colorIcon"
          android:tint="@color/dialer_theme_color"
          android:visibility="gone"/>

      </LinearLayout>
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@
      android:contentDescription="@string/action_menu_dialpad_button"
      android:src="@drawable/quantum_ic_dialpad_white_24"
      app:elevation="@dimen/floating_action_button_translation_z"
      app:backgroundTint="?android:attr/colorAccent"/>
      app:backgroundTint="@color/dialer_theme_color" />

  <!-- Host container for the contact tile drag shadow -->
  <FrameLayout
Loading