Skip to content

Commit b8d1be6

Browse files
authored
Merge pull request #9133 from wordpress-mobile/feature/decrease_charts_font_size
Decrease font size in charts
2 parents 5bef5bd + 07c68fa commit b8d1be6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/utils/BarChartUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fun BarChart.draw(
8787
}
8888
textColor = greyColor
8989
gridColor = lightGreyColor
90-
textSize = 12f
90+
textSize = 10f
9191
gridLineWidth = 1f
9292
}
9393
axisRight.apply {

WordPress/src/main/res/layout/stats_block_bar_chart_item.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
android:id="@+id/link_wrapper"
45
android:layout_width="match_parent"
56
android:layout_height="wrap_content"
@@ -25,13 +26,15 @@
2526
android:id="@+id/label_start"
2627
android:layout_width="wrap_content"
2728
android:layout_height="wrap_content"
29+
tools:text="January 2019"
2830
style="@style/StatsGraphLabel"/>
2931
<View
3032
android:layout_width="0dp"
3133
android:layout_height="match_parent"
3234
android:layout_weight="1"/>
3335
<TextView
3436
android:id="@+id/label_end"
37+
tools:text="December 2019"
3538
android:layout_width="wrap_content"
3639
android:layout_height="wrap_content"
3740
style="@style/StatsGraphLabel"/>

WordPress/src/main/res/values/stats_styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@
182182

183183
<style name="StatsGraphLabel">
184184
<item name="android:textColor">@color/wp_grey</item>
185-
<item name="android:textSize">@dimen/text_small</item>
185+
<item name="android:textSize">@dimen/text_sz_extra_small</item>
186186
</style>
187187
</resources>

libs/editor/WordPressEditor/src/main/res/values/dimens.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,4 @@
5959
<item name="spacing_multiplier_body" format="float" type="dimen">1.2</item>
6060

6161
<dimen name="aztec_title_size">24sp</dimen>
62-
63-
<dimen name="text_small">12sp</dimen>
64-
6562
</resources>

0 commit comments

Comments
 (0)