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

Commit 987f1937 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Change keyguard theme when wallpaper colors change

Bug: 38163994
Bug: 37014702
Bug: 62053168
Test: visual
Change-Id: I5a2da4ef2ad6fc1dab71588f2d0f5bd207731900
parent 76d38e72
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -195,6 +195,9 @@
    <!-- to access instant apps -->
    <uses-permission android:name="android.permission.ACCESS_INSTANT_APPS" />

    <!-- to change themes - light or dark -->
    <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />

    <application
        android:name=".SystemUIApplication"
        android:persistent="true"
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2017 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
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/pin_divider_color" />
</shape>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@
             android:textStyle="normal"
             android:inputType="textPassword"
             android:textSize="16sp"
             android:textColor="?attr/bgProtectTextColor"
             android:textAppearance="?android:attr/textAppearanceMedium"
             android:imeOptions="flagForceAscii|actionDone"
             android:maxLength="500"
@@ -67,6 +68,7 @@
             android:contentDescription="@string/accessibility_ime_switch_button"
             android:clickable="true"
             android:padding="8dip"
             android:tint="@color/background_protected"
             android:layout_gravity="end|center_vertical"
             android:background="?android:attr/selectableItemBackground"
             android:visibility="gone"
+5 −2
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@
                    android:layout_centerHorizontal="true"
                    android:layout_marginRight="72dp"
                    androidprv:scaledTextSize="28"
                    android:textColor="?attr/bgProtectTextColor"
                    android:contentDescription="@string/keyguard_accessibility_pin_area"
                    />
            <ImageButton
@@ -65,19 +66,20 @@
                    android:clickable="true"
                    android:paddingTop="8dip"
                    android:paddingBottom="8dip"
                    android:paddingRight="8dp"
                    android:paddingRight="0dp"
                    android:paddingLeft="24dp"
                    android:background="@drawable/ripple_drawable"
                    android:contentDescription="@string/keyboardview_keycode_delete"
                    android:layout_alignEnd="@+id/pinEntry"
                    android:layout_alignParentRight="true"
                    android:tint="@color/pin_delete_color"
                    />
            <View
                    android:id="@+id/divider"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_alignParentBottom="true"
                    android:background="#28FFFFFF"
                    android:background="@drawable/pin_divider"
                    />
        </com.android.keyguard.AlphaOptimizedRelativeLayout>
        <LinearLayout
@@ -203,6 +205,7 @@
                    android:layout_weight="1"
                    android:paddingBottom="11sp"
                    android:src="@drawable/ic_done_wht"
                    style="@style/Keyguard.ImageButton.NumPadEnter"
                    android:background="@drawable/ripple_drawable"
                    android:contentDescription="@string/keyboardview_keycode_enter"
                    />
+5 −2
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@
                    android:layout_centerHorizontal="true"
                    android:layout_marginRight="72dp"
                    androidprv:scaledTextSize="28"
                    android:textColor="?attr/bgProtectTextColor"
                    android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
                    />
            <ImageButton
@@ -77,19 +78,20 @@
                    android:clickable="true"
                    android:paddingTop="8dip"
                    android:paddingBottom="8dip"
                    android:paddingRight="8dp"
                    android:paddingRight="0dp"
                    android:paddingLeft="24dp"
                    android:background="@drawable/ripple_drawable"
                    android:contentDescription="@string/keyboardview_keycode_delete"
                    android:layout_alignEnd="@+id/pinEntry"
                    android:layout_alignParentRight="true"
                    android:tint="@color/pin_delete_color"
                    />
            <View
                    android:id="@+id/divider"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_alignParentBottom="true"
                    android:background="#28FFFFFF"
                    android:background="@drawable/pin_divider"
                    />
        </RelativeLayout>
        <LinearLayout
@@ -211,6 +213,7 @@
                    android:layout_weight="1"
                    android:paddingBottom="11sp"
                    android:src="@drawable/ic_done_wht"
                    style="@style/Keyguard.ImageButton.NumPadEnter"
                    android:background="@drawable/ripple_drawable"
                    android:contentDescription="@string/keyboardview_keycode_enter"
                    />
Loading