remove redundant code / cleanup color definitions
This commit is contained in:
parent
8a1ed51d97
commit
ffd370b6a7
3 changed files with 1 additions and 14 deletions
|
@ -140,15 +140,6 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
|
|||
ThemeChooser.getInstance(this).afterOnCreate(this);
|
||||
|
||||
setupActionBar();
|
||||
|
||||
// Set background accordingly to theme
|
||||
int backgroundColor = getResources().getColor(R.color.settingsWindowBackground);
|
||||
getWindow().getDecorView().setBackgroundColor(backgroundColor);
|
||||
// Set background of category pane on tablets
|
||||
if(isXLargeTablet(this)) {
|
||||
backgroundColor = getResources().getColor(R.color.settingsWindowCategoryPaneBackground);
|
||||
findViewById(android.R.id.list).setBackgroundColor(backgroundColor);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="app_drawer_feed_list_background_color">#383d43</color>
|
||||
<color name="settingsWindowBackground">@color/material_grey_900</color>
|
||||
<color name="settingsWindowCategoryPaneBackground">@color/material_grey_800</color>
|
||||
|
||||
<color name="primaryTextColor">@android:color/white</color>
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<color name="app_drawer_feed_list_background_color">#ededed</color>
|
||||
<color name="settingsWindowBackground">@android:color/white</color>
|
||||
<color name="settingsWindowCategoryPaneBackground">@color/material_grey_100</color>
|
||||
|
||||
<color name="primaryTextColor">@android:color/black</color>
|
||||
|
||||
|
@ -17,7 +15,7 @@
|
|||
<color name="options_menu_item_text">@color/options_menu_item</color>
|
||||
|
||||
<color name="text_medium_emphasis">#a0000000</color>
|
||||
|
||||
|
||||
<!-- see also assets/web.css -->
|
||||
<color name="news_detail_background_color">#eeeeee</color>
|
||||
<color name="news_detail_background_color_oled">#eeeeee</color>
|
||||
|
|
Loading…
Reference in a new issue