Skip to content

Commit

Permalink
material3 icons
Browse files Browse the repository at this point in the history
  • Loading branch information
rostopira committed Dec 3, 2023
1 parent 66420c3 commit f6de0f6
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<service
android:name=".WifiTileService"
android:label="@string/wifi"
android:icon="@drawable/connected"
android:icon="@drawable/rss_4"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
android:exported="true">
<intent-filter>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/n/eus/wifiqs/SetupActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void onAddTileClicked(View button) {
sbm.requestAddTileService(
new ComponentName(BuildConfig.APPLICATION_ID, BuildConfig.APPLICATION_ID + ".WifiTileService"),
getString(R.string.wifi),
Icon.createWithResource(this, R.drawable.connected),
Icon.createWithResource(this, R.drawable.rss_4),
getMainExecutor(),
resultCode -> {}
);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/n/eus/wifiqs/WifiTileService.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void onWifiStateChanged(WifiState state, String ssid) {
tile.setState(Tile.STATE_ACTIVE);
break;
case CONNECTED:
tile.setIcon(Icon.createWithResource(this, R.drawable.connected));
tile.setIcon(Icon.createWithResource(this, R.drawable.rss_4));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
tile.setLabel(getString(R.string.wifi));
tile.setSubtitle(ssid != null ? ssid : getString(R.string.connected));
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/res/drawable/connected.xml

This file was deleted.

8 changes: 4 additions & 4 deletions app/src/main/res/drawable/disabled.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="@android:color/white"
android:pathData="M23.64,7c-0.45,-0.34 -4.93,-4 -11.64,-4 -1.5,0 -2.89,0.19 -4.15,0.48L18.18,13.8 23.64,7zM17.04,15.22L3.27,1.44 2,2.72l2.05,2.06C1.91,5.76 0.59,6.82 0.36,7l11.63,14.49 0.01,0.01 0.01,-0.01 3.9,-4.86 3.32,3.32 1.27,-1.27 -3.46,-3.46z"/>
android:fillColor="#FFF"
android:pathData="m717,603 l-57,-57 184,-184q-79,-60 -172,-91t-192,-31q-29,0 -58,3t-58,8l-66,-66q45,-12 90,-18.5t92,-6.5q136,0 260.5,51.5T960,360L717,603ZM480,726l67,-66 -350,-350q-21,11 -41,24.5T116,362l364,364ZM819,932 L604,716 480,840 0,360q32,-32 66.5,-59t72.5,-49L27,140l57,-57L876,875l-57,57ZM512,398ZM372,485Z"/>
</vector>
6 changes: 3 additions & 3 deletions app/src/main/res/drawable/enabled.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#80FFFFFF"
android:pathData="M12.01,21.49L23.64,7c-0.45,-0.34 -4.93,-4 -11.64,-4C5.28,3 0.81,6.66 0.36,7l11.63,14.49 0.01,0.01 0.01,-0.01z"/>
android:pathData="M480,840 L0,360q95,-97 219.5,-148.5T480,160q136,0 260.5,51.5T960,360L480,840Z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/rss_0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#FFF"
android:pathData="M480,840 L0,360q95,-97 219.5,-148.5T480,160q136,0 260.5,51.5T960,360L480,840ZM480,726 L844,362q-79,-60 -172,-91t-192,-31q-99,0 -192,31t-172,91l364,364Z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/rss_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#FFF"
android:pathData="M480,840 L0,360q96,-98 220,-149t260,-51q137,0 261,51t219,149L480,840ZM361,607q25,-18 55.5,-28t63.5,-10q33,0 63.5,10t55.5,28l245,-245q-78,-59 -170.5,-90.5T480,240q-101,0 -193.5,31.5T116,362l245,245Z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/rss_2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#FFF"
android:pathData="M480,840 L0,360q96,-98 220,-149t260,-51q137,0 261,51t219,149L480,840ZM299,545q38,-28 84,-43.5t97,-15.5q51,0 97,15.5t84,43.5l183,-183q-78,-59 -170.5,-90.5T480,240q-101,0 -193.5,31.5T116,362l183,183Z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/rss_3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#FFF"
android:pathData="M480,840 L0,360q96,-98 220,-149t260,-51q137,0 261,51t219,149L480,840ZM232,478q53,-38 116,-59.5T480,397q69,0 132,21.5T728,478l116,-116q-78,-59 -170.5,-90.5T480,240q-101,0 -193.5,31.5T116,362l116,116Z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/rss_4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#FFF"
android:pathData="M480,840 L0,360q95,-97 219.5,-148.5T480,160q136,0 260.5,51.5T960,360L480,840Z"/>
</vector>

0 comments on commit f6de0f6

Please sign in to comment.