Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions app/src/main/res/drawable/radio.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/radio_on"
android:state_checked="true"
android:state_pressed="true" />
android:drawable="@drawable/radio_off"
android:state_checked="true"
android:state_pressed="true" />
<item
android:drawable="@drawable/radio_on"
android:state_pressed="true" />
android:drawable="@drawable/radio_black"
android:state_checked="false"
android:state_pressed="true" />
<item
android:drawable="@drawable/radio_on"
android:state_checked="true" />
android:drawable="@drawable/radio_checked_hover"
android:state_checked="true"
android:state_hovered="true" />
<item
android:drawable="@drawable/radio_off" />
android:drawable="@drawable/radio_unchecked_hover"
android:state_checked="false"
android:state_hovered="true" />
<item
android:drawable="@drawable/radio_on"
android:state_checked="true" />
<item
android:drawable="@drawable/radio_off" />
</selector>
18 changes: 18 additions & 0 deletions app/src/main/res/drawable/radio_black.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
<path
android:fillColor="@color/black"
android:pathData="M 100 28.58 C 139.444176833 28.58 171.42 60.5558231671 171.42 100 C 171.42 139.444176833 139.444176833 171.42 100 171.42 C 60.5558231671 171.42 28.58 139.444176833 28.58 100 C 28.58 60.5558231671 60.5558231671 28.58 100 28.58 Z" />
</vector>
</item>
</selector>
18 changes: 18 additions & 0 deletions app/src/main/res/drawable/radio_checked_hover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
<path
android:fillColor="@color/rhino"
android:pathData="M 100 28.58 C 139.444176833 28.58 171.42 60.5558231671 171.42 100 C 171.42 139.444176833 139.444176833 171.42 100 171.42 C 60.5558231671 171.42 28.58 139.444176833 28.58 100 C 28.58 60.5558231671 60.5558231671 28.58 100 28.58 Z" />
</vector>
</item>
</selector>
26 changes: 1 addition & 25 deletions app/src/main/res/drawable/radio_off.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
</vector>
</item>
<item android:state_checked="false">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
</vector>
</item>
<item android:state_hovered="true">
<item>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
32 changes: 1 addition & 31 deletions app/src/main/res/drawable/radio_on.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
<path
android:fillColor="@color/fog"
android:pathData="M 100 28.58 C 139.444176833 28.58 171.42 60.5558231671 171.42 100 C 171.42 139.444176833 139.444176833 171.42 100 171.42 C 60.5558231671 171.42 28.58 139.444176833 28.58 100 C 28.58 60.5558231671 60.5558231671 28.58 100 28.58 Z" />
</vector>
</item>
<item android:state_checked="false">
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
<path
android:fillColor="@color/fog"
android:pathData="M 100 28.58 C 139.444176833 28.58 171.42 60.5558231671 171.42 100 C 171.42 139.444176833 139.444176833 171.42 100 171.42 C 60.5558231671 171.42 28.58 139.444176833 28.58 100 C 28.58 60.5558231671 60.5558231671 28.58 100 28.58 Z" />
</vector>
</item>
<item android:state_hovered="true">
<item>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/res/drawable/radio_unchecked_hover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
<path
android:fillColor="@color/iron"
android:pathData="M 100 28.58 C 139.444176833 28.58 171.42 60.5558231671 171.42 100 C 171.42 139.444176833 139.444176833 171.42 100 171.42 C 60.5558231671 171.42 28.58 139.444176833 28.58 100 C 28.58 60.5558231671 60.5558231671 28.58 100 28.58 Z" />
</vector>
</item>
</selector>
18 changes: 18 additions & 0 deletions app/src/main/res/drawable/radio_unchecked_pressed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="200"
android:viewportHeight="200">

<path
android:fillColor="@color/fog"
android:pathData="M100,1.79A98.21,98.21,0,1,0,198.21,100,98.33,98.33,0,0,0,100,1.79Zm0,187.49A89.28,89.28,0,1,1,189.28,100,89.28,89.28,0,0,1,100,189.28Z" />
<path
android:fillColor="@color/black"
android:pathData="M 100 28.58 C 139.444176833 28.58 171.42 60.5558231671 171.42 100 C 171.42 139.444176833 139.444176833 171.42 100 171.42 C 60.5558231671 171.42 28.58 139.444176833 28.58 100 C 28.58 60.5558231671 60.5558231671 28.58 100 28.58 Z" />
</vector>
</item>
</selector>
48 changes: 46 additions & 2 deletions app/src/main/res/drawable/switch_track.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

</layer-list>
</item>
<item android:state_checked="true">
<item android:state_checked="true" android:state_hovered="false">
<layer-list>
<item>
<shape
Expand All @@ -44,7 +44,29 @@

</layer-list>
</item>
<item android:state_checked="false">
<item android:state_checked="true" android:state_hovered="true">
<layer-list>
<item>
<shape
android:dither="true"
android:shape="rectangle"
android:useLevel="false"
android:visible="true">
<gradient
android:angle="270"
android:endColor="@color/forest"
android:startColor="@color/forest"/>
<corners
android:radius="16dp"/>
<size
android:width="20dp"
android:height="20dp" />
</shape>
</item>

</layer-list>
</item>
<item android:state_checked="false" android:state_hovered="false">
<layer-list>
<item>
<shape
Expand All @@ -66,4 +88,26 @@

</layer-list>
</item>
<item android:state_checked="false" android:state_hovered="true">
<layer-list>
<item>
<shape
android:dither="true"
android:shape="rectangle"
android:useLevel="false"
android:visible="true">
<gradient
android:angle="270"
android:endColor="@color/tomato"
android:startColor="@color/tomato"/>
<corners
android:radius="16dp"/>
<size
android:width="20dp"
android:height="20dp" />
</shape>
</item>

</layer-list>
</item>
</selector>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/setting_radio_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<RadioButton
android:id="@+id/radioItemButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
style="@style/radioButtonTheme"
android:layout_marginLeft="20dp"
tools:text="Item"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
<color name="fog_blur">#30e2e6eb</color>
<color name="fog_url_protocol">#c2c6cb</color>
<color name="grass">#8dc63f</color>
<color name="forest">#579334</color>
<color name="dessert">#ef4136</color>
<color name="tomato">#cc332f</color>
<color name="blackberry">#25003e</color>
<color name="tangerine">#ff921e</color>
<color name="iron">#5d5d5d</color>
Expand Down