Commit Graph

25 Commits

Author SHA1 Message Date
Fabian Kozynski
42c541e6c7 Add divider between QS and media
Test: manual, portrait and landscape
Fixes: 159484242
Change-Id: I279ca402e7893c9213718b345cc79ecd72beb4e8
2020-06-22 16:28:10 -04:00
Selim Cinek
2a1cab1192 Changed the landscape experience of quick settings
When introducing Media into quick settings, the landscape
experience never really worked well. The music player
would be cut off on the bottom and users could never
reach their playback controls.
Instead of the vertical layout, we're now rendering
quick settings side by side with the player.

Using some densities, this could still be too large,
so we're also introducing a scrollview for the
expanded quick settings.
This also makes sure all the paddings and spacings
are up to spec.

This also fixes behavior where a user could still collapse
the panel while the user switcher was showing.

Bug: 154332040
Test: atest SystemUITests
Change-Id: I3b8babc2cc6a91e19824b67f043aa5044dc370b9
2020-06-12 16:26:53 -07:00
Fabian Kozynski
9b4b852e77 Change colors in QSSecurityFooter
Test: manual
Fixes: 157233592
Change-Id: I9aa24928130ff7ba3ea4957d659252b973188e79
2020-06-02 15:01:04 -04:00
Miranda Kephart
2320e509eb Update screenshot dark mode to spec
Makes the background protection scrim slightly taller in dark mode,
and makes the light mode scrim darker (25% opacity at the bottom).

Test: manual
Bug: 155416835
Fix: 155416835

Change-Id: I3c5f9f75654b4c359cc0b1486d79f7fdeea7b6af
2020-05-01 14:57:53 -04:00
Miranda Kephart
9ddbe1311d Update screenshot UI for dark theme
Updates the colors used when the dark theme is on. When a
screenshot is taken, checks for the current dark theme status and
updates the assets if necessary.

Test: manual
Bug: 146560663
Change-Id: Iccc727924e04febc5be25e2205775b52ef082f6a
2020-04-22 10:37:58 -04:00
Andras Kloczl
42c9f51be2 Redesign user switcher
- Change user, guest and add user icons.
- Add light and dark theme support for both quicksettings and keyguard
user switcher.

Bug: 150286182
Test: Check both lock screen user switcher and quick settings switcher manually on tablet and phone (phone doesn't have a lock screen user switcher).
Change-Id: I18cd12e85ab236f3d541998673c375393b4ad3f4
2020-04-03 16:43:55 +01:00
Julia Reynolds
146e157a69 Update colors for inline controls
- Buttons and whatnot should match the theme accent color
- Background should be white to maintain a11y contrast

Test: manual
Fixes: 149569128
Change-Id: I0d38484bb91aa1cdd4ae2f7de6dc2c72d15cd0ef
2020-02-26 12:42:11 +00:00
Miranda Kephart
0148b28e4f Add action chips to corner screenshot flow
In the corner screenshot flow, add a LinearLayout with action chips
(share/edit/scroll) that pops up once the actions are available.

Note that the 'scroll' button currently does nothing.

Bug: 144918886
Test: manual; tested that 'edit' and 'share' chips open the
appropriate apps and make the screenshot disappear; tested that
current notification flow is unchanged.

Change-Id: I6952b76aa3bb479c49b1905275d5fcdc0eeaf2df
2019-11-26 13:48:28 -05:00
Fabian Kozynski
67ffcf8936 Add colors to tiles
Protoype for modifying color of tiles. Provides 2 modes:
qs_color_enabled: allows changing background of tiles
qs_color_icon: allows changing color of icon (only use with
qs_color_enabled)

Enable using:
adb shell settings put system <name> <value>
where name is one of (qs_color_enabled|qs_color_icon) and value is (0|1)

With qs_color_enabled, color of individual tiles can be changed using
adb shell settings put system qs_color_enabled/<spec> <color>
where spec is as defined in QSFactoryImpl and color is one of
(red|green|blue|yellow|accent).

Test: manual

Change-Id: I66096cfa5cb8570074b1547ca3e41bd0888973fa
2019-09-10 15:45:42 -04:00
Julia Reynolds
2a9c3855d9 Change colors for a11y
Test: a11y scanner
Fixes: 134158955
Change-Id: I46db4a032d1fed27b5cd69efda3d2bb685170c24
2019-05-31 19:07:34 +00:00
Felka Chang
97bc8d592f Fix notification shade inefficient contrast
Because the color of the notification shade contains alpha channel,
the colors in wallpaper blend with the color of the notification
shade. After the blending with wallpaper colors and notification
shade color, the contrast ratio between gear icon and the blending
color is not enough.
The solution is to use the solid color rather than the colors with
the transparency.
Light Theme: shade=#E8EAED gear=#5f6368
Dark Theme: shade=#202124 gear=#9aa0a6

Fixes: 124379911
Test: atest SystemUITests
Change-Id: I0e436a1f6b5507c5083b4b1b9811166d0fb41da7
2019-05-29 19:41:49 +08:00
Ned Burns
369f147e8f Update guts to match latest specs
- Updates dimens and margins to match specs
- Adds selection color for border, icon, and text
- Adjusts fonts to be theme-aware

Test: manual
Bug: 132689331
Change-Id: Ibd2ca853c9a571f25d82151bdd736edb4d5c5d5e
2019-05-28 11:27:05 -04:00
Ned Burns
8e42667d73 Increase height of silent section header to meet GAR
Also removes the night-specific layout in favor of a color selector.

Test: manual
Fixes: 132401519
Change-Id: I336aa3e5cf3d4c9b09f8e985d5c1389cd935d7a5
2019-05-20 20:21:02 -04:00
Evan Laird
47dc4546ec Create notification channel interstitial shelf
From NotificationGuts, tapping "Turn off notifications" will now present
a half-shelf allowing the user to directly block up to 4 channels (the
one given from the notification guts + up to 3 other channels from
that app) or the app itself.

Test: visual (for now)
Bug: 130307442
Fixes: 131432719
Change-Id: I7e82928dfd56b9e25e5bef02607eede55b11d9e3
2019-05-09 11:13:19 -04:00
Kevin Chyn
7d1e932996 Update BiometricPrompt colors
Bug: 128845381
Bug: 129015520
Bug: 127358147
Bug: 131301243

Test: Colors are seen

Change-Id: Ie7d03f470e72fdaca804f52e98ea51ffd03bc36f
2019-05-08 01:18:28 +00:00
Ned Burns
9eb06333c4 Add "Gentle Notifications" header to gentle section
Missing "clear all" support, will add in later CL.

Test: manual

Bug: 131358199
Change-Id: I18aaacb1bf3f173b151bcac8df9dd953d0a7f513
2019-05-06 14:52:07 -04:00
Julia Reynolds
3fd1b4949b Colors updates for guts
For a11y and night mode and night mode a11y

Fixes: 129507563
Test: manual
Change-Id: I0b472db88feddb6f92aa265524e84afbe30c824b
2019-05-03 13:32:04 +00:00
Fabian Kozynski
f86df994fa Fix colors in QS Header
Fixes icon and text colors in QS Header to be darker in Light mode.
Also, makes sure that all colors in the icons match.

Does this by implementing the following:
* A new theme that overrides darkIconTheme in Theme.SystemUI by one with
darker colors.
* QuickStatusBarHeader applies that theme and passes is onto its
children, in particular StatusIconContainer/StatusBarMobileView
and BatteryMeterView.
* StatusBarMobileView and BatteryMeterView retrieve the colors from the
theme and apply them accordingly.
* Also applies to QSCarrierGroup
* Additionally, the single color is used for the other icons.

Also invalidates SignalDrawable after setColors is called if at least
one of the colors changed. This is a real issue.

For more info:
* Text and icons set to 70% black on light mode, white in dark mode.
* Dual tone set for background overlaid with fill match single tone.

Test: visual
Fixes: 124466915

Change-Id: Ia6cb28fca90a07c8936726334502e7accf534df6
2019-04-25 14:04:07 +00:00
Julia Reynolds
8728d00ead Notification guts redesign
Test: atest
Fixes: 130766408
Fixes: 129453207
Bug: 127992400
Fixes: 129507783
Fixes: 130342795
Fixes: 130805969

Change-Id: I93984698c5380badb162774c818a1d040ccf9c1c
2019-04-23 14:29:41 -04:00
Julia Reynolds
52a2737b55 Another redesign of notification guts
- Separate out the blocking helper layout/logic a bit
more from the standard guts
- Colors! Larger text! big buttons! Persistent descriptions
of the behavior you're choosing
- No more special 'min' logic
- no more inline blocking
- placeholder text for what's shown when multiple channels are
involved
- both 'turn off notifications' and the settings gear currently
go to the same place

Test: atest
Bug: 127992400
Change-Id: I080335fab728c4ac269e093d09c2f6b5ffdaea5e
2019-04-03 19:30:17 +00:00
Aaron Heuckroth
c83434064b Use different colors for grid-based global actions menu.
Refactor EmergencyActions to group coloring code.

Test: Automated tests pass, global actions menu colors match mocks for dark + light themes. Buttons and text are readable.
Change-Id: Ia0ca8c31d09cda8acda7b8677c2ccd923cc2c0c5

Fixes: 126445990
Fixes: 128768560
2019-03-18 17:12:34 +00:00
Fabian Kozynski
f80234c190 Fix visual styles in QSCustomizer and CarrierText
Test: manual, including Dark mode

Change-Id: I08605045e93f2e653c67350add52f2190d87cfe0
Fixes: 124251376
Fixes: 124250851
2019-02-25 10:59:43 -05:00
Philip P. Moltmann
2242d6a3a5 Allow dark mode in system UI dialogs
Test: Forced dark mode and
      - looked at USB confirm dialog
      - ADB connection dialog

Change-Id: Icebc3813de20cd0f7dcf6d65f20af329ac8a09e1
2018-09-24 14:49:04 -07:00
Lucas Dupin
d26faccd0c Pitch black SysUI theme
Test: visual
Bug: 110758454
Change-Id: Id673133763e5624f380facf008ecc4c78092fe13
2018-09-11 15:24:22 -07:00
Lucas Dupin
f03e752407 Dark Notification Shade
Test: adb shell service call uimode 4 i32 1 # day
Test: adb shell service call uimode 4 i32 2 # night
Bug: 110758454
Change-Id: Ib6fce91d1aeff7e1fbfe8a7a528095487fbdb3f8
2018-07-12 17:30:34 -07:00