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

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

Dialer theme color change color in app styles,DialerSettingsActivity and dialtacts_activity

parent aa36fbf9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -48,8 +48,8 @@
      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="@color/dialer_theme_color"
      app:borderWidth="0dp"/>
      android:theme="@style/FloatingActionButton"
      />

  <!-- Host container for the contact tile drag shadow -->
  <FrameLayout
+6 −2
Original line number Diff line number Diff line
@@ -20,7 +20,11 @@
  </style>

  <style name="DialpadTheme" parent="DialtactsTheme">
    <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
    <item name="android:textColorPrimary">@color/dialer_primary_text</item>
  </style>

  <style name="FloatingActionButton" parent="DialtactsTheme" >
    <item name="colorAccent">@color/dialer_theme_color</item>
  </style>

  <style name="TransparentTheme" parent="DialtactsTheme">
@@ -85,7 +89,7 @@
    <item name="android:layout_width">@dimen/call_log_action_icon_dimen</item>
    <item name="android:layout_height">@dimen/call_log_action_icon_dimen</item>
    <item name="android:layout_marginStart">@dimen/call_log_action_icon_margin_start</item>
    <item name="android:tint">?colorIcon</item>
    <item name="android:tint">@color/dialer_theme_color</item>
    <item name="android:importantForAccessibility">no</item>
  </style>

+1 −4
Original line number Diff line number Diff line
@@ -62,10 +62,7 @@ public class DialerSettingsActivity extends AppCompatPreferenceActivity {
    LogUtil.enterBlock("DialerSettingsActivity.onCreate");
    super.onCreate(savedInstanceState);

//    getSupportActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.foreground_color)));
//    int titleId = getResources().getIdentifier("action_bar_title", "id", "android");
//    TextView abTitle = (TextView) findViewById(titleId);
//    abTitle.setTextColor(getResources().getColor(R.color.dialer_primary_text));
    getSupportActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.foreground_color)));

    preferences = PreferenceManager.getDefaultSharedPreferences(this.getApplicationContext());