Commit 686ed6e
authored
Custom Tab: New custom tab design (#7185)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1207418217763355/task/1211972481043749?focus=true ### Description This PR adds a new custom tab design (see [Figma](https://www.figma.com/design/BOHDESHODUXK7wSRNBOHdu/%F0%9F%A4%96-Android-Components?m=auto&node-id=21483-32206&t=3Vkry2YESBRxJEsC-1)). ### Steps to test this PR For custom toolbar colors, [follow this task to install ](https://app.asana.com/1/137249556945/project/1207137509162935/task/1207025963579423?focus=true)a test app to launch a custom tab with parameters. (Donwload [here](https://app.asana.com/app/asana/-/get_asset?asset_id=1207025963579427&force_download)) _Default light mode style (using the new tracker animation)_ - [x] Go to Settings -> Developer settings -> Cust tabs - [x] Enter som URL and load a custom tab - [x] Verify the tab loads correctly, the colors are correct and the buttons work - [x] Verify the new tracker animation (tracker count) is shown correctly _Default dark mode style (using the new tracker animation)_ - [x] Change the device to use dark mode - [x] Go to Settings -> Developer settings -> Cust tabs - [x] Enter som URL and load a custom tab - [x] Verify the tab loads correctly, the colors are correct and the buttons work - [x] Verify the tracker animation (tracker count) is shown correctly _Old tracker animation_ - [x] Before running the app, remove `@Toggle.InternalAlwaysEnabled` from `AddressBarTrackersAnimationFeatureToggle` - [x] Rebuild the app - [x] In developer settings, disable `addressBarTrackersAnimation -> feature` in the FF settings - [x] Open a custom tab - [x] Verify the old tracker animation is shown correctly - [x] Change to dark/light mode - [x] Open a custom tab and verify the tracker animation is shown correctly _Custom color_ - [x] Launch the custom tab test app mentioned above - [x] Select "Customized UI Chrome Custom Tab" - [x] (Optional) Set Toolbar color - [x] Tap on Open custom tab - [x] Verify a colored variant of a custom tab is opened - [x] Verify the "address bar" background uses a lighter version of the main custom toolbar color - [x] Verify the tracker animation is displayed correctly - [x] (Optional) Repeat with different colors _Bottom position_ - [x] In the app, set the omnibar position to BOTTOM - [x] Launch a custom tab - [x] Verify the new custom tab is laid out correctly - [x] Verify the animation works correctly _Old custom tab_ - [x] Before running the app, remove `@Toggle.InternalAlwaysEnabled` from `newCustomTab` in `AndroidBrowserConfigFeature` - [x] Rebuild the app - [x] In developer settings, disable `newCustomTab` FF - [x] Launch a custom tab - [x] Verify the old custom tab UI is used ### UI changes | Before | After | | ------ | ----- | <img width="1080" height="2400" alt="image" src="https://github.com/user-attachments/assets/0cff2a40-0a27-4872-86c1-7b63d7053b43" />|<img width="1080" height="2400" alt="image" src="https://github.com/user-attachments/assets/85dbc053-bd44-43fb-9df7-b43aeaecf4c8" />|1 parent 7d3f2e9 commit 686ed6e
File tree
18 files changed
+922
-84
lines changed- android-design-system/design-system/src/main/res/values
- app/src
- androidTest/java/com/duckduckgo/app/browser/omnibar/animations
- internal
- java/com/duckduckgo/app/dev/settings/customtabs
- res
- layout
- values
- main
- java/com/duckduckgo/app
- browser
- omnibar
- animations/addressbar
- pixels/remoteconfig
- res/layout
- browser-api/src/main/java/com/duckduckgo/app/browser/api
18 files changed
+922
-84
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
481 | 486 | | |
482 | 487 | | |
483 | 488 | | |
| |||
Lines changed: 244 additions & 14 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| 33 | + | |
28 | 34 | | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
74 | 89 | | |
75 | 90 | | |
76 | 91 | | |
| |||
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
98 | 187 | | |
99 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
100 | 205 | | |
101 | 206 | | |
102 | 207 | | |
| |||
Lines changed: 39 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
55 | 80 | | |
56 | 81 | | |
57 | 82 | | |
| |||
60 | 85 | | |
61 | 86 | | |
62 | 87 | | |
63 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
64 | 101 | | |
65 | 102 | | |
66 | 103 | | |
67 | 104 | | |
68 | 105 | | |
69 | 106 | | |
70 | 107 | | |
71 | | - | |
| 108 | + | |
72 | 109 | | |
73 | 110 | | |
74 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1301 | 1304 | | |
1302 | 1305 | | |
1303 | 1306 | | |
1304 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1305 | 1341 | | |
1306 | 1342 | | |
1307 | 1343 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
0 commit comments