Skip to content

Commit

Permalink
Change action bar icon and text color from white to grey
Browse files Browse the repository at this point in the history
Icon color: use ic_add_gnu_grey icon instead of white ic_add_24dp icon in
dialer settings -> calls -> Calling accounts -> SIP accounts.

Text color: change text color in action bar from white to grey in dialer
settings -> calls -> Calling accounts -> SIP accounts -> ADD ACCOUNTS.
"DISCARD" and "SAVE" are changed.

Test: Manual
Bug: 109947100

Change-Id: I52afd834d7b8699b55c34ad6f6102d425e79e1b5
Signed-off-by: Josh Fox (XlxFoXxlX) <[email protected]>
  • Loading branch information
mahaveile authored and xlxfoxxlx committed Jul 29, 2019
1 parent 5c8cedd commit 534c250
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Binary file added res/drawable-hdpi/ic_add_gnu_grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_add_gnu_grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_add_gnu_grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_add_gnu_grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxxhdpi/ic_add_gnu_grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@

<!-- Settings screen should use the same colors as the Dialer -->
<color name="phone_settings_background_color">#f5f5f5</color>
<!-- Action bar text color. Ensure this stays in sync with Dialer actionbar_text_color. -->
<color name="phone_settings_actionbar_text_color">#FFFFFF</color>
<!-- Action bar text color. Ensure this stays in sync with dialer_icon_color in aciton bar. -->
<color name="phone_settings_actionbar_text_color">#5f6368</color>
<!-- Background color of action bars. Ensure this stays in sync with Dialer
actionbar_background_color. -->
<color name="actionbar_background_color">#fafafa</color>
<color name="actionbar_background_color">#ffffff</color>
<!-- Dark variant of the action bar color. Ensure this stays in sync with Dialer version. -->
<color name="actionbar_background_color_dark">#fafafa</color>
<color name="actionbar_background_color_dark">#ffffff</color>
<!-- Color for icons in the actionbar. Ensure this stays in sync with Dialer version. -->
<color name="actionbar_icon_color">#ffffff</color>

Expand All @@ -58,7 +58,7 @@
<color name="emergency_shortcut_confirm_button_background_color">#E25142</color>

<!-- Color matches dialer settings light M2 theme.-->
<color name="dialer_background_color">#fafafa</color>
<color name="dialer_background_color">#ffffff</color>
<color name="dialer_divider_color">#d8d8d8</color>
<color name="dialer_primary_text_color">#202124</color>
<color name="dialer_secondary_text_color">#5f6368</color>
Expand Down
6 changes: 3 additions & 3 deletions sip/src/com/android/services/telephony/sip/SipSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
import android.view.Menu;
import android.view.MenuItem;

import com.android.phone.R;

import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.android.phone.R;

/**
* The PreferenceActivity class for managing sip profile preferences.
*/
Expand Down Expand Up @@ -410,7 +410,7 @@ public void onRegistrationFailed(String profileUri, int errorCode,
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuItem addAccountMenuItem = menu.add(0, MENU_ADD_ACCOUNT, 0, R.string.add_sip_account);
addAccountMenuItem.setIcon(R.drawable.ic_add_24dp);
addAccountMenuItem.setIcon(R.drawable.ic_add_gnu_grey);
addAccountMenuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
return true;
}
Expand Down

0 comments on commit 534c250

Please sign in to comment.