Fix wikivoyage welcome screen UI

This commit is contained in:
Alex Sytnyk 2018-04-23 12:59:21 +03:00
parent 5ac595d291
commit 1ae40f7506
2 changed files with 7 additions and 1 deletions

View file

@ -18,6 +18,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/wikivoyage_welcome_image_top_margin"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@drawable/img_start_screen_travel_night"/>
@ -49,7 +50,7 @@
android:maxLines="1"
android:text="@string/travel_guide"
android:textColor="?attr/wikivoyage_primary_text_color"
android:textSize="@dimen/welcome_header_text_size"/>
android:textSize="@dimen/title_text_size"/>
<TextView
android:layout_width="match_parent"

View file

@ -49,6 +49,11 @@ public class WikivoyageWelcomeDialogFragment extends WikivoyageBaseDialogFragmen
return mainView;
}
@Override
protected int getStatusBarColor() {
return nightMode ? R.color.wikivoyage_welcome_bg_dark : R.color.wikivoyage_welcome_bg_light;
}
public static boolean showInstance(FragmentManager fm) {
try {
new WikivoyageWelcomeDialogFragment().show(fm, TAG);