Merge pull request #1436 from Andries-Smit/fix/ns-time-smaller
Fix nightscout client big time text
This commit is contained in:
commit
8f011760ec
2 changed files with 7 additions and 7 deletions
|
@ -48,8 +48,10 @@ interface SkinInterface {
|
||||||
|
|
||||||
if (isTablet) {
|
if (isTablet) {
|
||||||
binding.infoLayout.apply {
|
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)
|
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 {
|
binding.apply {
|
||||||
val texts = listOf(pump, openaps, uploader)
|
val texts = listOf(pump, openaps, uploader)
|
||||||
|
|
|
@ -226,10 +226,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginTop="-10dp"
|
android:layout_marginTop="-5dp"
|
||||||
android:layout_marginBottom="-10dp"
|
|
||||||
android:text="8:00 PM"
|
android:text="8:00 PM"
|
||||||
android:textSize="40sp"
|
android:textSize="25sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
@ -238,11 +237,10 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginTop="-5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:layout_marginBottom="-5dp"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="(-5)"
|
android:text="(-5)"
|
||||||
android:textSize="30sp"
|
android:textSize="19sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue