From b032b969f028773cf28e43d8b00c90457ad342b9 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Sat, 12 Mar 2022 20:22:42 +0100 Subject: [PATCH 1/2] fix: scale down ns client time text size --- app/src/main/res/layout/overview_info_layout.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/overview_info_layout.xml b/app/src/main/res/layout/overview_info_layout.xml index 3da58e1bc5..2191b9402b 100644 --- a/app/src/main/res/layout/overview_info_layout.xml +++ b/app/src/main/res/layout/overview_info_layout.xml @@ -226,10 +226,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginTop="-10dp" - android:layout_marginBottom="-10dp" + android:layout_marginTop="-5dp" android:text="8:00 PM" - android:textSize="40sp" + android:textSize="25sp" android:textStyle="bold" tools:ignore="HardcodedText" /> @@ -238,11 +237,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginTop="-5dp" - android:layout_marginBottom="-5dp" + android:layout_marginTop="-10dp" android:gravity="center_vertical" android:text="(-5)" - android:textSize="30sp" + android:textSize="20sp" android:textStyle="bold" tools:ignore="HardcodedText" /> From 65c89cd0afbc324155af6b524ebcae55080f661b Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Mon, 14 Mar 2022 13:51:40 +0100 Subject: [PATCH 2/2] increase time text size skin tablet landscape --- .../java/info/nightscout/androidaps/skins/SkinInterface.kt | 4 +++- app/src/main/res/layout/overview_info_layout.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt b/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt index 76ffbc0f75..3ef7501ae4 100644 --- a/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt +++ b/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt @@ -48,8 +48,10 @@ interface SkinInterface { if (isTablet) { binding.infoLayout.apply { - val texts = listOf(bg, time, timeAgoShort, iob, cob, baseBasal, extendedBolus, sensitivity) + val texts = listOf(bg, iob, cob, baseBasal, extendedBolus, sensitivity) for (v in texts) v.setTextSize(COMPLEX_UNIT_PX, v.textSize * 1.5f) + val textsTime = listOf(time, timeAgoShort) + for (v in textsTime) v.setTextSize(COMPLEX_UNIT_PX, v.textSize * 2.25f) } binding.apply { val texts = listOf(pump, openaps, uploader) diff --git a/app/src/main/res/layout/overview_info_layout.xml b/app/src/main/res/layout/overview_info_layout.xml index 2191b9402b..c8e73887b7 100644 --- a/app/src/main/res/layout/overview_info_layout.xml +++ b/app/src/main/res/layout/overview_info_layout.xml @@ -240,7 +240,7 @@ android:layout_marginTop="-10dp" android:gravity="center_vertical" android:text="(-5)" - android:textSize="20sp" + android:textSize="19sp" android:textStyle="bold" tools:ignore="HardcodedText" />