renamed wiki webview colors

This commit is contained in:
Chumva 2018-05-04 12:33:54 +03:00
parent 1609233fdd
commit ee6ab67000
3 changed files with 5 additions and 4 deletions

View file

@ -437,7 +437,8 @@
<color name="wikivoyage_secondary_text">#727272</color> <color name="wikivoyage_secondary_text">#727272</color>
<color name="wikivoyage_start_editing_card_image_background">#339966</color> <color name="wikivoyage_start_editing_card_image_background">#339966</color>
<color name="wikivoyage_open_beta_card_image_background">#008bf8</color> <color name="wikivoyage_open_beta_card_image_background">#008bf8</color>
<color name="wikivoyage_webview_background_light">#ffffff</color>
<color name="wikivoyage_webview_background_dark">#17191a</color> <color name="wiki_webview_background_light">#ffffff</color>
<color name="wiki_webview_background_dark">#17191a</color>
</resources> </resources>

View file

@ -107,7 +107,7 @@ public class WikipediaDialogFragment extends WikiArticleBaseDialogFragment {
contentWebView.setWebViewClient(new WikipediaWebViewClient(getActivity(), nightMode)); contentWebView.setWebViewClient(new WikipediaWebViewClient(getActivity(), nightMode));
updateWebSettings(); updateWebSettings();
contentWebView.setBackgroundColor(ContextCompat.getColor(getMyApplication(), contentWebView.setBackgroundColor(ContextCompat.getColor(getMyApplication(),
nightMode ? R.color.wikivoyage_webview_background_dark : R.color.wikivoyage_webview_background_light)); nightMode ? R.color.wiki_webview_background_dark : R.color.wiki_webview_background_light));
return mainView; return mainView;
} }

View file

@ -161,7 +161,7 @@ public class WikivoyageArticleDialogFragment extends WikiArticleBaseDialogFragme
webViewClient = new WikivoyageWebViewClient(getActivity(), getFragmentManager(), nightMode); webViewClient = new WikivoyageWebViewClient(getActivity(), getFragmentManager(), nightMode);
contentWebView.setWebViewClient(webViewClient); contentWebView.setWebViewClient(webViewClient);
contentWebView.setBackgroundColor(ContextCompat.getColor(getMyApplication(), contentWebView.setBackgroundColor(ContextCompat.getColor(getMyApplication(),
nightMode ? R.color.wikivoyage_webview_background_dark : R.color.wikivoyage_webview_background_light)); nightMode ? R.color.wiki_webview_background_dark : R.color.wiki_webview_background_light));
return mainView; return mainView;
} }