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

Commit 070a0b61 authored by Adrian Roos's avatar Adrian Roos
Browse files

Set a dark theme for SystemUI.

The default theme for the platform has changed to a
light variant. This puts SystemUI back in the dark.

Bug: 13635952
Change-Id: I230a2078ba6bf5a79c768f0e357fcbd75f283cf8
parent ddcb8c65
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -110,7 +110,11 @@
        android:label="@string/app_label"
        android:icon="@*android:drawable/platlogo"
        android:process="com.android.systemui"
        android:supportsRtl="true">
        android:supportsRtl="true"
        android:theme="@style/systemui_theme">
        <!-- Keep theme in sync with SystemUIApplication.onCreate().
             Setting the theme on the application does not affect views inflated by services.
             The application theme is set again from onCreate to take effect for those views. -->

        <!-- Broadcast receiver that gets the broadcast at boot time and starts
             up everything else.
+3 −1
Original line number Diff line number Diff line
@@ -170,4 +170,6 @@
        <item name="android:textSize">14dp</item>
    </style>

    <style name="systemui_theme" parent="@android:style/Theme.DeviceDefault" />

</resources>
+9 −0
Original line number Diff line number Diff line
@@ -51,6 +51,15 @@ public class SystemUIApplication extends Application {
    private boolean mServicesStarted;
    private final Map<Class<?>, Object> mComponents = new HashMap<Class<?>, Object>();

    @Override
    public void onCreate() {
        super.onCreate();
        // Set the application theme that is inherited by all services. Note that setting the
        // application theme in the manifest does only work for activities. Keep this in sync with
        // the theme set there.
        setTheme(R.style.systemui_theme);
    }

    /**
     * Makes sure that all the SystemUI services are running. If they are already running, this is a
     * no-op. This is needed to conditinally start all the services, as we only need to have it in