-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SystemUI: Add dual-tone light and dark themes for QS
Google's dual-tone QS design where the notification panel has a semantically higher elevation adds depth to the notification+QS shade, and we don't necessarily have to give it up just because our QS has light and dark themes. To preserve the dual-tone effect, use a darker background color for the QS section: Light: Notifications: neutral1 20 (surface_light) Notification panel: neutral1 50 (light BG) QS background: neutral1 100 (darker light BG / surface_header_light) Inactive QS tiles: neutral1 20 (surface_light) Dark: Notifications: neutral1 800 (surface_dark) Notification panel: neutral1 900 (dark BG) QS background: neutral1 950 (surface_header_dark_sysui modulated to L* 5) Inactive QS tiles: neutral1 800 (surface_dark) The dark QS background could be neutral1 0 (black) like it was before, but I don't think it looks as good because it can't be tinted based on the active wallpaper and thus stands out from other colors. Unfortunately, Google's current CAM16-based modulation causes hue shifts in extreme light and dark shades (e.g. L* = 98 / 5), but we'll fix this by generating and overlaying modulated surface colors in our ThemeOverlayController implementation. Demo screenshots: https://twitter.com/kdrag0n/status/1445922541218922496 Change-Id: Icdc4957ecb4e0201377351f1a3e1c6928d6b3955
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2021 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. | ||
--> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:color="@color/system_neutral1_500" android:lStar="5" /> | ||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters