From 16098dbf6602376942020f82a41cc933465c7eca Mon Sep 17 00:00:00 2001 From: ryanlwlin Date: Mon, 19 Jul 2021 16:31:01 +0800 Subject: [PATCH] Change illustration for Magnification mode settings We change both the assets of dark theme and light theme. bug: 192620439 Test: manual test with dark theme Change-Id: I810f28b42787922e001e200293db6b895088172e --- .../ic_illustration_fullscreen.xml | 211 ++++++++++++++++++ res/drawable-night/ic_illustration_switch.xml | 42 ++++ res/drawable-night/ic_illustration_window.xml | 61 +++++ res/drawable/ic_illustration_fullscreen.xml | 56 +++-- res/drawable/ic_illustration_switch.xml | 40 ++-- res/drawable/ic_illustration_window.xml | 56 +++-- .../dialog_single_radio_choice_list_item.xml | 2 +- 7 files changed, 410 insertions(+), 58 deletions(-) create mode 100644 res/drawable-night/ic_illustration_fullscreen.xml create mode 100644 res/drawable-night/ic_illustration_switch.xml create mode 100644 res/drawable-night/ic_illustration_window.xml diff --git a/res/drawable-night/ic_illustration_fullscreen.xml b/res/drawable-night/ic_illustration_fullscreen.xml new file mode 100644 index 00000000000..c5f1f925950 --- /dev/null +++ b/res/drawable-night/ic_illustration_fullscreen.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/drawable-night/ic_illustration_switch.xml b/res/drawable-night/ic_illustration_switch.xml new file mode 100644 index 00000000000..9cabceda196 --- /dev/null +++ b/res/drawable-night/ic_illustration_switch.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + diff --git a/res/drawable-night/ic_illustration_window.xml b/res/drawable-night/ic_illustration_window.xml new file mode 100644 index 00000000000..7984df5ac1d --- /dev/null +++ b/res/drawable-night/ic_illustration_window.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + diff --git a/res/drawable/ic_illustration_fullscreen.xml b/res/drawable/ic_illustration_fullscreen.xml index fbb62bf799e..2aca693f42b 100644 --- a/res/drawable/ic_illustration_fullscreen.xml +++ b/res/drawable/ic_illustration_fullscreen.xml @@ -14,26 +14,48 @@ limitations under the License. --> + android:width="412dp" + android:height="300dp" + android:viewportWidth="412" + android:viewportHeight="300"> + android:pathData="M384.2,300H27.8C12.5,300 0,287.2 0,271.5v-243C0,12.8 12.5,0 27.8,0h356.5C399.5,0 412,12.8 412,28.5v243.2C412,287.2 399.5,300 384.2,300z" + android:fillColor="#FFFFFF"/> + android:pathData="M207.4,19.1c35,0 67.9,13.6 92.6,38.4c24.7,24.7 38.4,57.6 38.4,92.6S324.8,218 300,242.7c-24.7,24.7 -57.6,38.4 -92.6,38.4s-67.9,-13.6 -92.6,-38.4C90.1,217.9 76.4,185 76.4,150S90,82.1 114.8,57.4C139.5,32.7 172.4,19.1 207.4,19.1M207.4,17.1c-73.4,0 -133,59.5 -133,132.9s59.5,132.9 132.9,132.9s133,-59.5 133,-132.9S280.8,17.1 207.4,17.1L207.4,17.1z" + android:fillColor="#E8EAED"/> + android:pathData="M262.1,107.7V100c0,-1.1 -0.9,-1.9 -1.9,-1.9V57.6c0,-5.3 -4.3,-9.6 -9.6,-9.6H162c-5.3,0 -9.6,4.3 -9.6,9.6v184.8c0,5.3 4.3,9.6 9.6,9.6h88.5c5.3,0 9.6,-4.3 9.6,-9.6v-94.3c1.1,0 1.9,-0.9 1.9,-1.9v-19.2c0,-1.1 -0.9,-1.9 -1.9,-1.9v-15.4C261.2,109.6 262.1,108.7 262.1,107.7zM258.2,242.4c0,4.2 -3.5,7.7 -7.7,7.7H162c-4.2,0 -7.7,-3.5 -7.7,-7.7V57.6c0,-4.2 3.5,-7.7 7.7,-7.7h88.5c4.2,0 7.7,3.5 7.7,7.7V242.4z" + android:fillColor="#DADCE0"/> + android:pathData="M250.5,53.9c2,0 3.7,1.7 3.7,3.7v184.8c0,2 -1.7,3.7 -3.7,3.7H162c-2,0 -3.7,-1.7 -3.7,-3.7V57.6c0,-2 1.7,-3.7 3.7,-3.7H250.5M250.5,49.9H162c-4.2,0 -7.7,3.5 -7.7,7.7v184.8c0,4.2 3.5,7.7 7.7,7.7h88.5c4.2,0 7.7,-3.5 7.7,-7.7V57.6C258.2,53.4 254.8,49.9 250.5,49.9L250.5,49.9z" + android:fillColor="#F9AB00"/> + android:pathData="M236.9,60.6l11,0l0,11" + android:strokeLineJoin="round" + android:strokeWidth="4" + android:fillColor="#00000000" + android:strokeColor="#F9AB00" + android:strokeLineCap="round"/> + + + diff --git a/res/drawable/ic_illustration_switch.xml b/res/drawable/ic_illustration_switch.xml index 9d3990b5d73..bfe533c68ba 100644 --- a/res/drawable/ic_illustration_switch.xml +++ b/res/drawable/ic_illustration_switch.xml @@ -14,33 +14,29 @@ limitations under the License. --> + android:width="412dp" + android:height="300dp" + android:viewportWidth="412" + android:viewportHeight="300"> + android:pathData="M384.2,300H27.8C12.5,300 0,287.2 0,271.5v-243C0,12.8 12.5,0 27.8,0h356.5C399.5,0 412,12.8 412,28.5v243.2C412,287.2 399.5,300 384.2,300z" + android:fillColor="#FFFFFF"/> + android:pathData="M207.4,19.1c35,0 67.9,13.6 92.6,38.4c24.7,24.7 38.4,57.6 38.4,92.6S324.8,218 300,242.7c-24.7,24.7 -57.6,38.4 -92.6,38.4s-67.9,-13.6 -92.6,-38.4C90.1,217.9 76.4,185 76.4,150S90,82.1 114.8,57.4C139.5,32.7 172.4,19.1 207.4,19.1M207.4,17.1c-73.4,0 -133,59.5 -133,132.9s59.5,132.9 132.9,132.9s133,-59.5 133,-132.9S280.8,17.1 207.4,17.1L207.4,17.1z" + android:fillColor="#E8EAED"/> + android:pathData="M262.1,107.7V100c0,-1.1 -0.9,-1.9 -1.9,-1.9V57.6c0,-5.3 -4.3,-9.6 -9.6,-9.6H162c-5.3,0 -9.6,4.3 -9.6,9.6v184.8c0,5.3 4.3,9.6 9.6,9.6h88.5c5.3,0 9.6,-4.3 9.6,-9.6v-94.3c1.1,0 1.9,-0.9 1.9,-1.9V127c0,-1.1 -0.9,-1.9 -1.9,-1.9v-15.4C261.2,109.6 262.1,108.7 262.1,107.7zM258.2,242.4c0,4.2 -3.5,7.7 -7.7,7.7H162c-4.2,0 -7.7,-3.5 -7.7,-7.7V57.6c0,-4.2 3.5,-7.7 7.7,-7.7h88.5c4.2,0 7.7,3.5 7.7,7.7V242.4z" + android:fillColor="#DADCE0"/> + android:pathData="M250.5,53.9c2,0 3.7,1.7 3.7,3.7v184.8c0,2 -1.7,3.7 -3.7,3.7H162c-2,0 -3.7,-1.7 -3.7,-3.7V57.6c0,-2 1.7,-3.7 3.7,-3.7L250.5,53.9M250.5,49.9H162c-4.2,0 -7.7,3.5 -7.7,7.7v184.8c0,4.2 3.5,7.7 7.7,7.7h88.5c4.2,0 7.7,-3.5 7.7,-7.7V57.6C258.2,53.4 254.8,49.9 250.5,49.9L250.5,49.9z" + android:fillColor="#F9AB00"/> + android:pathData="M214.2,223.8v17.5h34.9v-34.9h-17.5v3.5h14v27.9h-27.9v-14H214.2z" + android:fillColor="#5F6368"/> + android:pathData="M228.2,206.3h-14v14h14V206.3z" + android:fillColor="#5F6368"/> + android:pathData="M242.2,222.1v3.5h-6.3l7.9,7.9l-2.5,2.5l-7.9,-7.9v6.3h-3.5v-12.2H242.2z" + android:fillColor="#5F6368"/> diff --git a/res/drawable/ic_illustration_window.xml b/res/drawable/ic_illustration_window.xml index 1b87d7d22c4..22513f4cba0 100644 --- a/res/drawable/ic_illustration_window.xml +++ b/res/drawable/ic_illustration_window.xml @@ -14,28 +14,48 @@ limitations under the License. --> + android:width="412dp" + android:height="300dp" + android:viewportWidth="412" + android:viewportHeight="300"> + android:pathData="M384.2,300H27.8C12.5,300 0,287.2 0,271.5v-243C0,12.8 12.5,0 27.8,0h356.5C399.5,0 412,12.8 412,28.5v243.2C412,287.2 399.5,300 384.2,300z" + android:fillColor="#FFFFFF"/> + android:pathData="M207.4,19.1c35,0 67.9,13.6 92.6,38.4c24.7,24.7 38.4,57.6 38.4,92.6S324.8,218 300,242.7c-24.7,24.7 -57.6,38.4 -92.6,38.4s-67.9,-13.6 -92.6,-38.4C90.1,217.9 76.4,185 76.4,150S90,82.1 114.8,57.4C139.5,32.7 172.4,19.1 207.4,19.1M207.4,17.1c-73.4,0 -133,59.5 -133,132.9s59.5,132.9 132.9,132.9s133,-59.5 133,-132.9S280.8,17.1 207.4,17.1L207.4,17.1z" + android:fillColor="#E8EAED"/> + + + android:strokeColor="#F9AB00" + android:strokeLineCap="round"/> + android:pathData="M247.9,125.6L232.3,141.2" + android:strokeLineJoin="round" + android:strokeWidth="4" + android:fillColor="#00000000" + android:strokeColor="#F9AB00" + android:strokeLineCap="round"/> + android:pathData="M175.2,175.1l-10.9,0l0,-11" + android:strokeLineJoin="round" + android:strokeWidth="4" + android:fillColor="#00000000" + android:strokeColor="#F9AB00" + android:strokeLineCap="round"/> + diff --git a/res/layout/dialog_single_radio_choice_list_item.xml b/res/layout/dialog_single_radio_choice_list_item.xml index 49ef352e753..106a8a55511 100644 --- a/res/layout/dialog_single_radio_choice_list_item.xml +++ b/res/layout/dialog_single_radio_choice_list_item.xml @@ -55,7 +55,7 @@