Try fix Issue 1482: Use italic instead of dark colors for deactivated maps

This commit is contained in:
sonora 2012-10-26 19:00:52 +02:00
parent 32b6e4960a
commit c2bbab615c
2 changed files with 11 additions and 4 deletions

View file

@ -33,9 +33,10 @@
<color name="index_unknown">#FFFFFF</color> <!-- standard WHITE -->
<color name="act_index_uptodate">#00FF00</color> <!-- standard GREEN -->
<color name="deact_index_uptodate">#003C00</color> <!-- DARK_GREEN -5 shades, related to above! -->
<color name="act_index_updateable">#0080FF</color> <!-- modified BLUE because of grey background -->
<color name="deact_index_updateable">#00008B</color> <!-- DARK_BLUE, related to above! -->
<!-- Try fix Issue 1482: Use italic instead of dark colors for deactivated maps -->
<!-- color name="deact_index_uptodate">#003C00</color --> <!-- DARK_GREEN -5 shades, related to above! -->
<!-- color name="deact_index_updateable">#00008B</color --> <!-- DARK_BLUE, related to above! -->
<color name="localindex_notsupported">#FF0000</color> <!-- standard RED -->
<color name="localindex_iscorrupted">#FF00FF</color> <!-- standard MAGENTA -->

View file

@ -991,13 +991,19 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity {
item.setTextColor(getResources().getColor(R.color.act_index_uptodate)); //GREEN
} else if (e.getDate().equals(indexFileNames.get(sfName))) {
item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexFileNames.get(sfName));
item.setTextColor(getResources().getColor(R.color.deact_index_uptodate)); //DARK_GREEN
//item.setTextColor(getResources().getColor(R.color.deact_index_uptodate)); //DARK_GREEN
// Try fix Issue 1482: Use italic instead of dark colors for deactivated maps
item.setTextColor(getResources().getColor(R.color.act_index_uptodate));
item.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
} else if (indexActivatedFileNames.containsKey(sfName)) {
item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexActivatedFileNames.get(sfName));
item.setTextColor(getResources().getColor(R.color.act_index_updateable)); //LIGHT_BLUE
} else {
item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexFileNames.get(sfName));
item.setTextColor(getResources().getColor(R.color.deact_index_updateable)); //DARK_BLUE
//item.setTextColor(getResources().getColor(R.color.deact_index_updateable)); //DARK_BLUE
// Try fix Issue 1482: Use italic instead of dark colors for deactivated maps
item.setTextColor(getResources().getColor(R.color.act_index_updateable));
item.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
}
} else {
item.setTextColor(getResources().getColor(R.color.act_index_uptodate));