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

Commit 72e07ae5 authored by Robert Horvath's avatar Robert Horvath
Browse files

Add DeviceDefault.System.Dialog[.Alert] themes

Customizable system default dialog themes.
Dark theme is preferrable on watch and TV.

Test: Flashed and tested on phone emulator.
      Same change applied to pi-tv-dev branch tested on an ADT-2.
      Used HeavyWeightSwitcherActivity as test dialog.
Bug: 133398453
Change-Id: Icc20555edcf78b78d9e57445faf4a99aaee9cbcd
parent d6a071ad
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@
    </style>

    <!-- TV always use dark mode -->
    <style name="Theme.DeviceDefault.System" parent="Theme.DeviceDefault" />
    <style name="Theme.DeviceDefault.System.Dialog" parent="Theme.DeviceDefault.Dialog" />
    <style name="Theme.DeviceDefault.System.Dialog.Alert" parent="Theme.DeviceDefault.Dialog.Alert" />
    <style name="Theme.DeviceDefault.Autofill.Light" parent="Theme.DeviceDefault.Autofill"/>
    <style name="Theme.DeviceDefault.Light.Autofill.Save" parent="Theme.DeviceDefault.Autofill.Save"/>

+2 −0
Original line number Diff line number Diff line
@@ -132,6 +132,8 @@ a similar way.

    <!-- Use a dark theme for watches. -->
    <style name="Theme.DeviceDefault.System" />
    <style name="Theme.DeviceDefault.System.Dialog" parent="Theme.DeviceDefault.Dialog" />
    <style name="Theme.DeviceDefault.System.Dialog.Alert" parent="Theme.DeviceDefault.Dialog.Alert" />

    <!-- DeviceDefault style for input methods, which is used by the
         {@link android.inputmethodservice.InputMethodService} class.-->
+2 −0
Original line number Diff line number Diff line
@@ -1704,6 +1704,8 @@ easier.

    <!-- DeviceDefault theme for the default system theme.  -->
    <style name="Theme.DeviceDefault.System" parent="Theme.DeviceDefault.Light.DarkActionBar" />
    <style name="Theme.DeviceDefault.System.Dialog" parent="Theme.DeviceDefault.Light.Dialog" />
    <style name="Theme.DeviceDefault.System.Dialog.Alert" parent="Theme.DeviceDefault.Light.Dialog.Alert" />

    <style name="ThemeOverlay.DeviceDefault" />