Commit Graph

5 Commits

Author SHA1 Message Date
Hugh Chen
a7c94ad0e6 Remove the border around the icon when in dark mode
Use same color with background to draw the border color
when in dark mode.

Bug: 159757430
Test: manually test
Change-Id: Ice5bb3f06a4d90ef738fe51da2d7d55e8d2f530a
2020-06-24 11:43:44 +08:00
Hugh Chen
c06745b3d3 Fix advanced icon will incorrect on some device
Use the fixed value to locate the center of icon instead
of use value of density. Because the value of density will
different between the device according the resolution.

Bug: 156689249
Test: build pass
Change-Id: I6d3a53e68058232871dd281ec4736179090a6580
2020-06-15 16:04:38 +08:00
Hugh Chen
280d945d00 Fix advanced icon will incorrect when change display size
The value of radius will change when user adjust display size.
This CL will calculate the radius rate base on display size
to draw the icon.

Bug: 156689249
Test: build pass
Change-Id: I2701624742c3ecf8667a5626e2a621ee7aaf0ecb
2020-06-08 17:20:42 +08:00
Hugh Chen
eb06dfd70e Implement advanced icon style for output switch
This CL add new type "TYPE_ADVANCED" in AdaptiveOutlineDrawable.
It use to customize icon for output switch.

Bug: 157208551
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I06bfacf2fc6e798648a94117d3e861a807650a5a
2020-06-04 10:59:20 +08:00
hughchen
ed6a4d2829 Separate library from SettingsLib
Separated library for following class:
- AdaptiveIcon.java
- AdaptiveIconShapeDrawable.java
- AdaptiveOutlineDrawable.java
- TileUtils.java
- DashboardCategory.java
- Tile.java

Bug: 128570540
Test: RunSettingsLibRoboTests
Change-Id: I616e68f6e5ac9afee805793e80374aabebc69ccb
2019-03-29 11:29:04 +08:00