Skip to content

Commit e61323c

Browse files
Vinay S ShenoySaket Narayan
authored andcommitted
UI Changes on home screen.
1. Updated illustrations for patients screen. 2. Changed tab indicator color on home screen.
1 parent 996b303 commit e61323c

File tree

8 files changed

+7
-31
lines changed

8 files changed

+7
-31
lines changed
11.8 KB
Loading
7.74 KB
Loading
15.8 KB
Loading
25.2 KB
Loading
39.7 KB
Loading

app/src/main/res/drawable/background_patients.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/src/main/res/layout/screen_home.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
android:layout_height="wrap_content"
2929
android:background="?colorPrimary"
3030
android:elevation="@dimen/elevation_toolbar"
31-
app:tabIndicatorColor="@color/green2"
31+
app:tabIndicatorColor="@color/red1"
3232
app:tabIndicatorHeight="4dp"
3333
app:tabSelectedTextColor="@color/white100"
3434
app:tabTextColor="@color/white48"

app/src/main/res/layout/screen_patients.xml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
xmlns:app="http://schemas.android.com/apk/res-auto"
55
xmlns:tools="http://schemas.android.com/tools"
66
android:layout_width="match_parent"
7-
android:layout_height="match_parent">
7+
android:layout_height="match_parent"
8+
android:background="@color/white100">
89

910
<org.simple.clinic.widgets.OmegaCenterIconButton
1011
android:id="@+id/patients_search_patients"
1112
android:layout_width="match_parent"
1213
android:layout_height="56dp"
1314
android:layout_marginEnd="@dimen/spacing_16"
1415
android:layout_marginStart="@dimen/spacing_16"
15-
android:layout_marginTop="@dimen/spacing_48"
16+
android:layout_marginTop="@dimen/spacing_16"
1617
android:background="@drawable/button_outline_ripple"
1718
android:drawablePadding="@dimen/spacing_8"
1819
android:drawableStart="@drawable/ic_search_24dp"
@@ -26,25 +27,15 @@
2627
app:drawableTint="?colorAccent"
2728
tools:ignore="MissingPrefix,RtlSymmetry" />
2829

29-
<!-- We don't currently have a center color for the background gradient
30-
so we can't adjust the centerY of the background. This lets us have a
31-
different centerY because we can freely adjust the height of this view.
32-
-->
33-
<View
34-
android:layout_width="match_parent"
35-
android:layout_height="match_parent"
36-
android:layout_below="@id/patients_search_patients"
37-
android:layout_marginTop="@dimen/spacing_48"
38-
android:background="@drawable/background_patients" />
39-
4030
<ImageView
41-
android:layout_width="wrap_content"
31+
android:layout_width="match_parent"
4232
android:layout_height="wrap_content"
4333
android:layout_below="@id/patients_search_patients"
4434
android:layout_centerHorizontal="true"
4535
android:layout_marginTop="@dimen/spacing_48"
4636
android:src="@drawable/register_illustration"
47-
tools:ignore="ContentDescription" />
37+
tools:ignore="ContentDescription"
38+
android:scaleType="centerCrop"/>
4839

4940
<org.simple.clinic.widgets.ViewFlipperWithDebugPreview
5041
android:id="@+id/patients_user_status_viewflipper"

0 commit comments

Comments
 (0)