Skip to content

Commit

Permalink
Add pref switch for colored battery percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed Jan 28, 2024
1 parent 0c1d6e6 commit 5f732b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
<string name="BB_batteryChargingColor">Charging color</string>
<string name="BB_batteryFastChargingColor">Fast charging color</string>
<string name="BB_transit_colors">Shade colors between this range</string>
<string name="colored_battery_percentage_title">Colored battery percentage while charging</string>

<string name="nt_stat_mode_today">Today</string>
<string name="nt_stat_mode_week">Current week</string>
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/xml/statusbar_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@
app:tickInterval=".5"
app:valueCount="2" />

<sh.siava.pixelxpert.ui.preferences.MaterialSwitchPreference
android:defaultValue="false"
android:key="BatteryPercentIndicateCharging"
android:summaryOff="@string/general_off"
android:summaryOn="@string/general_on"
android:title="@string/colored_battery_percentage_title"
app:iconSpaceReserved="false" />

<sh.siava.pixelxpert.ui.preferences.MaterialSwitchPreference
android:defaultValue="false"
android:key="combinedSignalEnabled"
Expand Down

0 comments on commit 5f732b1

Please sign in to comment.