Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0221f3a authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Improve subpixel rendering of battery icon on all densities

Bug: 16161255
Change-Id: I97abc6a7a5cafb581e3f7c3d7509fdbf6d8542d5
parent 6e31e0f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,5 +36,6 @@
    <com.android.systemui.BatteryMeterView android:id="@+id/battery"
        android:layout_height="14.5dp"
        android:layout_width="9.5dp"
        android:layout_marginBottom="@dimen/battery_margin_bottom"
        android:layout_marginStart="7dp"/>
</LinearLayout>
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -18,4 +18,11 @@
<resources>
    <!-- Margin on the right side of the system icon group on Keyguard. -->
    <fraction name="battery_button_height_fraction">10.5%</fraction>

    <!-- Fraction value to smooth the edges of the battery icon. The path will be inset by this
         fraction of a pixel.-->
    <fraction name="battery_subpixel_smoothing_left">20%</fraction>
    <fraction name="battery_subpixel_smoothing_right">12%</fraction>

    <dimen name="battery_margin_bottom">1px</dimen>
</resources>
+7 −0
Original line number Diff line number Diff line
@@ -17,4 +17,11 @@
<resources>
    <!-- Margin on the right side of the system icon group on Keyguard. -->
    <fraction name="battery_button_height_fraction">12%</fraction>

    <!-- Fraction value to smooth the edges of the battery icon. The path will be inset by this
         fraction of a pixel.-->
    <fraction name="battery_subpixel_smoothing_left">10%</fraction>
    <fraction name="battery_subpixel_smoothing_right">10%</fraction>

    <dimen name="battery_margin_bottom">1px</dimen>
</resources>
+7 −0
Original line number Diff line number Diff line
@@ -17,4 +17,11 @@
<resources>
    <!-- Margin on the right side of the system icon group on Keyguard. -->
    <fraction name="battery_button_height_fraction">12%</fraction>

    <!-- Fraction value to smooth the edges of the battery icon. The path will be inset by this
     fraction of a pixel.-->
    <fraction name="battery_subpixel_smoothing_left">10%</fraction>
    <fraction name="battery_subpixel_smoothing_right">10%</fraction>

    <dimen name="battery_margin_bottom">1px</dimen>
</resources>
+27 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright (C) 2014 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->

<resources>

    <!-- Fraction value to smooth the edges of the battery icon. The path will be inset by this
         fraction of a pixel.-->
    <fraction name="battery_subpixel_smoothing_left">25%</fraction>
    <fraction name="battery_subpixel_smoothing_right">12.5%</fraction>

    <dimen name="battery_margin_bottom">0dp</dimen>
</resources>
Loading