Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fixed visual issues
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jul 18, 2019
1 parent 386c363 commit 7901d6d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
21 changes: 15 additions & 6 deletions app/src/main/res/drawable/tooltip_background.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="30dp" />
<stroke android:color="@color/rhino_blur" android:width="@dimen/blur_radius" />
<solid android:color="@color/rhino"/>
</shape>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="30dp" />
<stroke android:width="@dimen/blur_radius" android:color="@color/fog_blur" />
</shape>
</item>
<item android:start="@dimen/blur_radius_half" android:end="@dimen/blur_radius_half" android:top="@dimen/blur_radius_half" android:bottom="@dimen/blur_radius_half">
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="30dp" />
<solid android:color="@color/rhino" />
<stroke android:width="2dp" android:color="@color/rhino_blur" />
</shape>
</item>
</layer-list>
6 changes: 5 additions & 1 deletion app/src/main/res/layout/tooltip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:textSize="@dimen/text_biggest_size"
android:textSize="@dimen/text_huge_size"
android:maxLines="1"
android:singleLine="true"
android:textColor="@color/smoke"
android:shadowColor="@color/asphalt_blur"
android:shadowDx="2.0"
android:shadowDy="2.0"
android:shadowRadius="0.5"
tools:text="Text" />
</FrameLayout>
</merge>
1 change: 1 addition & 0 deletions app/src/main/res/values/dimen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
<dimen name="dialog_padding_sides">30dp</dimen>

<!-- Text sizes -->
<dimen name="text_huge_size">28sp</dimen>
<dimen name="text_biggest_size">24sp</dimen>
<dimen name="text_bigger_size">22sp</dimen>
<dimen name="text_big_size">18sp</dimen>
Expand Down

0 comments on commit 7901d6d

Please sign in to comment.