Fix colors

This commit is contained in:
crimean 2019-07-04 21:49:32 +03:00
parent 474154dadd
commit ec19746529
22 changed files with 128 additions and 128 deletions

View file

@ -1,21 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:bottom="8dp"> <item>
<shape android:shape="rectangle" >
<size android:height="1dp" />
<solid android:color="#43000000" />
</shape>
</item>
<item android:top="1dp">
<shape <shape
android:dither="true" android:dither="true"
android:shape="rectangle" > android:shape="rectangle">
<gradient <gradient
android:angle="270" android:angle="270"
android:endColor="#00000000" android:endColor="#00000000"
android:startColor="#10000000" /> android:startColor="#10000000" />
<size android:height="8dp" /> <size android:height="8dp" />
</shape> </shape>

View file

@ -1,81 +1,78 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_sheet_large_list_item_height"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="63dp"
android:layout_height="@dimen/bottom_sheet_large_list_item_height" android:gravity="center_vertical"
android:background="?attr/selectableItemBackground" android:orientation="horizontal"
android:orientation="vertical" android:paddingStart="@dimen/list_content_padding"
> android:paddingLeft="@dimen/list_content_padding"
android:paddingEnd="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding">
<LinearLayout <ImageView
android:layout_width="match_parent" android:id="@+id/icon"
android:layout_height="63dp" android:layout_width="wrap_content"
android:paddingStart="@dimen/list_content_padding" android:layout_height="wrap_content"
android:paddingEnd="@dimen/list_content_padding" android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
android:paddingLeft="@dimen/list_content_padding" android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
android:paddingRight="@dimen/list_content_padding" tools:src="@drawable/ic_action_coordinates_latitude"
android:gravity="center_vertical" tools:tint="?attr/default_icon_color" />
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<ImageView <TextView
android:id="@+id/icon" android:id="@+id/title"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin" android:ellipsize="end"
android:layout_marginRight="@dimen/bottom_sheet_icon_margin" android:maxLines="2"
tools:tint="?attr/default_icon_color" android:textAppearance="@style/TextAppearance.ListItemTitle"
tools:src="@drawable/ic_action_coordinates_latitude"/> android:textColor="?android:textColorPrimary"
tools:text="Item Title" />
<LinearLayout <TextView
android:layout_width="0dp" android:id="@+id/description"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_weight="1" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/content_padding" android:ellipsize="end"
android:layout_marginRight="@dimen/content_padding" android:maxLines="1"
android:gravity="center_vertical" android:textColor="?android:textColorSecondary"
android:orientation="vertical"> tools:text="Item additional desription" />
</LinearLayout>
<TextView <RadioButton
android:id="@+id/title" android:id="@+id/compound_button"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:background="@null"
android:maxLines="2" android:clickable="false"
android:textAppearance="@style/TextAppearance.ListItemTitle" android:focusable="false"
android:textColor="?attr/main_font_color_basic" android:saveEnabled="false" />
tools:text="Item Title"/>
<TextView </LinearLayout>
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
tools:text="Item additional desription"/>
</LinearLayout>
<View
<RadioButton android:id="@+id/divider_bottom"
android:id="@+id/compound_button" android:layout_width="match_parent"
android:layout_width="wrap_content" android:layout_height="1dp"
android:layout_height="wrap_content" android:layout_marginStart="64dp"
android:background="@null" android:layout_marginLeft="64dp"
android:clickable="false" android:background="?attr/divider_color" />
android:focusable="false"
android:saveEnabled="false"/>
</LinearLayout>
<View
android:id="@+id/divider_bottom"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="64dp"
android:layout_marginLeft="64dp"
android:background="@color/divider_color_light"/>
</LinearLayout> </LinearLayout>

View file

@ -20,6 +20,7 @@
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
android:layout_weight="1" android:layout_weight="1"
android:maxLines="1" android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:text="World Regions"/> tools:text="World Regions"/>
@ -33,6 +34,7 @@
android:maxLines="1" android:maxLines="1"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
android:visibility="gone" android:visibility="gone"
android:textColor="?android:textColorSecondary"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:text="600Mb" tools:text="600Mb"
tools:visibility="visible"/> tools:visibility="visible"/>

View file

@ -74,7 +74,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="18sp" android:textSize="18sp"
tools:text="Item additional description"/> tools:text="Item additional description"/>
@ -245,7 +245,7 @@
android:layout_weight="1" android:layout_weight="1"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
android:text="@string/shared_string_icon" android:text="@string/shared_string_icon"
android:textColor="?attr/main_font_color_basic"/> android:textColor="?android:textColorPrimary"/>
<ImageView <ImageView
android:id="@+id/profile_icon_img" android:id="@+id/profile_icon_img"
@ -281,7 +281,7 @@
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
android:text="@string/shared_string_color" android:text="@string/shared_string_color"
android:textColor="?attr/main_font_color_basic"/> android:textColor="?android:textColorPrimary"/>
<ImageView <ImageView
android:id="@+id/color_sample_img" android:id="@+id/color_sample_img"
@ -361,7 +361,7 @@
android:layout_marginLeft="@dimen/list_content_padding" android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding" android:layout_marginRight="@dimen/list_content_padding"
android:text="@string/edit_profile_setup_title" android:text="@string/edit_profile_setup_title"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/> android:textSize="@dimen/default_list_text_size"/>
<TextView <TextView
@ -405,7 +405,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/configure_map" android:text="@string/configure_map"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/> android:textSize="@dimen/default_list_text_size"/>
<TextView <TextView
@ -453,7 +453,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/map_widget_config" android:text="@string/map_widget_config"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/> android:textSize="@dimen/default_list_text_size"/>
<TextView <TextView
@ -503,7 +503,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/routing_settings_2" android:text="@string/routing_settings_2"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/> android:textSize="@dimen/default_list_text_size"/>
<TextView <TextView

View file

@ -47,7 +47,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="Amsterdam" /> tools:text="Amsterdam" />

View file

@ -67,7 +67,7 @@
android:letterSpacing="@dimen/text_button_letter_spacing" android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1" android:maxLines="1"
android:text="@string/home_button" android:text="@string/home_button"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:ignore="UnusedAttribute" /> tools:ignore="UnusedAttribute" />
@ -133,7 +133,7 @@
android:letterSpacing="@dimen/text_button_letter_spacing" android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1" android:maxLines="1"
android:text="@string/work_button" android:text="@string/work_button"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:ignore="UnusedAttribute" /> tools:ignore="UnusedAttribute" />

View file

@ -52,6 +52,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:lines="1" android:lines="1"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
tools:text="Some very long subtitle text, that won't fit into one line"/> tools:text="Some very long subtitle text, that won't fit into one line"/>

View file

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout android:id="@+id/LinearLayout1"
android:id="@+id/LinearLayout1"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.v7.widget.AppCompatImageView <android.support.v7.widget.AppCompatImageView
android:id="@+id/icon" android:id="@+id/icon"
@ -27,6 +27,7 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="@string/layer_poi" android:text="@string/layer_poi"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_list_text_size"/> android:textSize="@dimen/default_list_text_size"/>
<android.support.v7.widget.AppCompatImageView <android.support.v7.widget.AppCompatImageView
@ -40,11 +41,13 @@
tools:visibility="visible"/> tools:visibility="visible"/>
<!-- android:button="@drawable/ic_btn_wocheckbox" --> <!-- android:button="@drawable/ic_btn_wocheckbox" -->
<CheckBox <android.support.v7.widget.AppCompatCheckBox
android:id="@+id/toggle_item" android:id="@+id/toggle_item"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginRight="24dp" android:layout_marginRight="24dp"
android:focusable="false"/> android:layout_marginEnd="24dp"
android:focusable="false"
app:buttonTint="?attr/active_color_basic" />
</LinearLayout> </LinearLayout>

View file

@ -138,7 +138,7 @@
android:layout_marginRight="@dimen/list_content_padding" android:layout_marginRight="@dimen/list_content_padding"
android:gravity="left" android:gravity="left"
android:singleLine="true" android:singleLine="true"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="My position" /> tools:text="My position" />
@ -255,7 +255,7 @@
android:layout_marginRight="@dimen/list_content_padding" android:layout_marginRight="@dimen/list_content_padding"
android:gravity="left" android:gravity="left"
android:singleLine="true" android:singleLine="true"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="Intermediate point" /> tools:text="Intermediate point" />
@ -368,7 +368,7 @@
android:layout_marginRight="@dimen/list_content_padding" android:layout_marginRight="@dimen/list_content_padding"
android:gravity="left" android:gravity="left"
android:singleLine="true" android:singleLine="true"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="Destination" /> tools:text="Destination" />

View file

@ -79,7 +79,7 @@
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textAppearance="@style/TextAppearance.ListItemTitle" android:textAppearance="@style/TextAppearance.ListItemTitle"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
tools:text="Item Title"/> tools:text="Item Title"/>
<TextView <TextView
@ -88,9 +88,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textColor="?android:textColorSecondary"
tools:text="Item additional desription"/> tools:text="Item additional desription"/>
</LinearLayout> </LinearLayout>
<ImageView <ImageView
android:id="@+id/type_down_arrow" android:id="@+id/type_down_arrow"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -105,26 +107,28 @@
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" > android:layout_height="match_parent">
<ImageView
android:id="@+id/selector_shadow"
android:layout_width="match_parent"
android:layout_height="@dimen/abp__shadow_height"
android:src="@drawable/preference_activity_action_bar_shadow"
android:visibility="invisible"/>
<ListView <ListView
android:id="@android:id/list" android:id="@android:id/list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
<ImageView
android:id="@+id/selector_shadow"
android:layout_width="match_parent"
android:layout_height="@dimen/abp__shadow_height"
android:src="@drawable/preference_activity_action_bar_shadow"
android:visibility="gone"
tools:ignore="ContentDescription"/>
<ImageView <ImageView
android:id="@+id/shadowView" android:id="@+id/shadowView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/abp__shadow_height" android:layout_height="@dimen/abp__shadow_height"
android:src="@drawable/preference_activity_action_bar_shadow" android:src="@drawable/preference_activity_action_bar_shadow"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>

View file

@ -95,7 +95,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:ellipsize="end" android:ellipsize="end"
android:letterSpacing="@dimen/text_button_letter_spacing" android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1" android:maxLines="1"

View file

@ -40,7 +40,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="Bicycle" /> tools:text="Bicycle" />

View file

@ -1,6 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
@ -26,6 +24,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"
android:textColor="?android:textColorSecondary"
tools:text="@string/device_memory"/> tools:text="@string/device_memory"/>
<TextView <TextView
@ -33,6 +32,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:textColor="?android:textColorSecondary"
tools:text="@string/free"/> tools:text="@string/free"/>
</LinearLayout> </LinearLayout>
@ -44,7 +44,6 @@
android:progressDrawable="?attr/size_progress_bar" android:progressDrawable="?attr/size_progress_bar"
tools:progress="50"/> tools:progress="50"/>
</LinearLayout> </LinearLayout>

View file

@ -28,7 +28,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_regular" osmand:typeface="@string/font_roboto_regular"
tools:text="Unpaved 13.4 km" /> tools:text="Unpaved 13.4 km" />

View file

@ -14,7 +14,7 @@
android:gravity="center_vertical" android:gravity="center_vertical"
android:padding="@dimen/content_padding" android:padding="@dimen/content_padding"
android:text="@string/step_by_step" android:text="@string/step_by_step"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/text_button_text_size" android:textSize="@dimen/text_button_text_size"
osmand:typeface="@string/font_roboto_medium" /> osmand:typeface="@string/font_roboto_medium" />

View file

@ -24,7 +24,7 @@
android:maxLines="1" android:maxLines="1"
android:paddingLeft="@dimen/content_padding" android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding" android:paddingRight="@dimen/content_padding"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:ignore="UnusedAttribute" tools:ignore="UnusedAttribute"

View file

@ -221,7 +221,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:background="@null"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:text="40 m" /> tools:text="40 m" />
@ -266,7 +266,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:background="@null"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:text="30m - 53m" /> tools:text="30m - 53m" />
@ -367,7 +367,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:background="@null"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:text="174" /> tools:text="174" />
@ -412,7 +412,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@null" android:background="@null"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium" osmand:typeface="@string/font_roboto_medium"
tools:text="164" /> tools:text="164" />

View file

@ -88,7 +88,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"
android:textSize="@dimen/default_desc_text_size" android:textSize="@dimen/default_desc_text_size"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
tools:text="Head Dmytrivska Street" tools:text="Head Dmytrivska Street"
android:text=""/> android:text=""/>

View file

@ -66,7 +66,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="left" android:gravity="left"
android:singleLine="true" android:singleLine="true"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="10 km" /> tools:text="10 km" />
@ -120,7 +120,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="left" android:gravity="left"
android:singleLine="true" android:singleLine="true"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="5 min" /> tools:text="5 min" />

View file

@ -49,7 +49,7 @@
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:text="@string/shared_string_target_points" android:text="@string/shared_string_target_points"
android:textColor="?attr/main_font_color_basic" android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_medium"/> osmand:typeface="@string/font_roboto_medium"/>

View file

@ -58,7 +58,7 @@ public class HelpActivity extends OsmandActionBarActivity implements AdapterView
ListView listView = (ListView) findViewById(android.R.id.list); ListView listView = (ListView) findViewById(android.R.id.list);
listView.setAdapter(mAdapter); listView.setAdapter(mAdapter);
listView.setOnItemClickListener(this); listView.setOnItemClickListener(this);
int dividerColor = lightContent ? R.color.icon_color_default_dark : R.color.icon_color_default_light; int dividerColor = lightContent ? R.color.divider_color_light : R.color.divider_color_dark;
Drawable dividerDrawable = new ColorDrawable(ContextCompat.getColor(this, dividerColor)); Drawable dividerDrawable = new ColorDrawable(ContextCompat.getColor(this, dividerColor));
listView.setDivider(dividerDrawable); listView.setDivider(dividerDrawable);
listView.setDividerHeight(AndroidUtils.dpToPx(this, 1f)); listView.setDividerHeight(AndroidUtils.dpToPx(this, 1f));

View file

@ -64,10 +64,11 @@ public class AppProfileArrayAdapter extends ArrayAdapter<ProfileDataObject> {
ProfileDataObject mode = modes.get(position); ProfileDataObject mode = modes.get(position);
Drawable iconDrawable; Drawable iconDrawable;
boolean lightContent = app.getSettings().isLightContent();
if (mode.isSelected()) { if (mode.isSelected()) {
iconDrawable = app.getUIUtilities().getIcon(mode.getIconRes(), mode.getIconColor(!app.getSettings().isLightContent())); iconDrawable = app.getUIUtilities().getIcon(mode.getIconRes(), mode.getIconColor(!lightContent));
} else { } else {
iconDrawable = app.getUIUtilities().getIcon(mode.getIconRes(), R.color.profile_icon_color_inactive); iconDrawable = app.getUIUtilities().getIcon(mode.getIconRes(), lightContent);
} }
viewHolder.title.setText(mode.getName()); viewHolder.title.setText(mode.getName());