forked from organicmaps/organicmaps
[android] Changed chart dark theme bg
This commit is contained in:
parent
bdb9e80641
commit
45f58203ac
4 changed files with 6 additions and 1 deletions
|
@ -221,6 +221,8 @@
|
|||
|
||||
<color name="elevation_profile_dot_enabled">#FF9600</color>
|
||||
<color name="elevation_profile">#1E96F0</color>
|
||||
<color name="elevation_profile_dark">#4BB9E6</color>
|
||||
|
||||
|
||||
<color name="tinkoff_button">#FFDD2D</color>
|
||||
<color name="mts_button">#E30611</color>
|
||||
|
|
|
@ -140,6 +140,7 @@
|
|||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="ThemeAttrs.ElevationProfile">
|
||||
<attr name="elevationProfileColor" format="color"/>
|
||||
<attr name="elevationProfilePropertyBg" format="reference" />
|
||||
<attr name="elevationProfilePropIconTint" format="color" />
|
||||
<attr name="altitudeBg" format="reference"/>
|
||||
|
|
|
@ -176,6 +176,7 @@
|
|||
<item name="elevationProfileSelectedPointBg">@drawable/bg_point_desc</item>
|
||||
<item name="elevationProfileSelectedPointTriangle">@drawable/ic_triangle</item>
|
||||
<item name="elevationProfileFloatingTriangle">@drawable/ic_triangle_elevation</item>
|
||||
<item name="elevationProfileColor">@color/elevation_profile</item>
|
||||
</style>
|
||||
|
||||
<!-- Night theme -->
|
||||
|
@ -351,5 +352,6 @@
|
|||
<item name="elevationProfileSelectedPointBg">@drawable/bg_point_desc_night</item>
|
||||
<item name="elevationProfileSelectedPointTriangle">@drawable/ic_triangle_night</item>
|
||||
<item name="elevationProfileFloatingTriangle">@drawable/ic_triangle_elevation_night</item>
|
||||
<item name="elevationProfileColor">@color/elevation_profile_dark</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -170,7 +170,7 @@ public class ChartController implements OnChartValueSelectedListener, Initializa
|
|||
set.setDrawHorizontalHighlightIndicator(false);
|
||||
set.setHighlightLineWidth(lineThickness);
|
||||
set.setHighLightColor(mContext.getResources().getColor(R.color.base_accent_transparent));
|
||||
set.setFillColor(mContext.getResources().getColor(R.color.elevation_profile));
|
||||
set.setFillColor(ThemeUtils.getColor(mContext, R.attr.elevationProfileColor));
|
||||
|
||||
LineData data = new LineData(set);
|
||||
data.setValueTextSize(mContext.getResources().getDimensionPixelSize(R.dimen.text_size_icon_title));
|
||||
|
|
Loading…
Add table
Reference in a new issue