Skip to content

Commit

Permalink
Add icon to the “keep screen on” option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiří Wolker committed Mar 22, 2023
1 parent f52460e commit f9d77f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/res/drawable/round_lightbulb_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<vector android:height="24dp"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4C10,21.1 10.9,22 12,22z"/>
<path android:fillColor="@android:color/white" android:pathData="M9,19h6c0.55,0 1,-0.45 1,-1v0c0,-0.55 -0.45,-1 -1,-1H9c-0.55,0 -1,0.45 -1,1v0C8,18.55 8.45,19 9,19z"/>
<path android:fillColor="@android:color/white" android:pathData="M12,2C7.86,2 4.5,5.36 4.5,9.5c0,3.82 2.66,5.86 3.77,6.5h7.46c1.11,-0.64 3.77,-2.68 3.77,-6.5C19.5,5.36 16.14,2 12,2z"/>
</vector>
1 change: 1 addition & 0 deletions app/src/main/res/xml/root_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<SwitchPreferenceCompat
app:key="keep_screen_on"
app:icon="@drawable/round_lightbulb_24"
app:title="@string/settings_keep_screen_on"
app:summaryOff="@string/settings_keep_screen_on_summary_off"
app:summaryOn="@string/settings_keep_screen_on_summary_on" />
Expand Down

0 comments on commit f9d77f9

Please sign in to comment.