Skip to content

Commit

Permalink
config.xml: Enable battery LED and "Battery light" settings.
Browse files Browse the repository at this point in the history
- Use (project-wide) default notification LED blink times.
- Use default battery LED colors, with yellow biased to look better on d2.
- Enable "Battery light" settings, where the battery LED can be disabled.
  • Loading branch information
mkasick committed Oct 5, 2012
1 parent 6886bdb commit 2840757
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,9 @@
<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>

<!-- Default LED on time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOn">250</integer>

<!-- Default LED off time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOff">5000</integer>

<!-- Hijack the colors for our lights lib -->
<integer name="config_notificationsBatteryLowARGB">1</integer>
<integer name="config_notificationsBatteryMediumARGB">1</integer>
<integer name="config_notificationsBatteryFullARGB">5</integer>
<!-- Default value for led color when battery is medium charged -->
<!-- The green LED is brighter than red, bias closer to yellow. -->
<integer name="config_notificationsBatteryMediumARGB">0xFFFF6000</integer>

<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">true</bool>
Expand Down Expand Up @@ -248,6 +241,12 @@
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>

<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>

<!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">true</bool>

<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
Expand Down

0 comments on commit 2840757

Please sign in to comment.