-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Android) Redesign private tab UI (#25850)
🎨 Redesign private tab UI following Figma design. Private tab redesign includes three new sections "Leave no trace", "Browsing visibility" and "Brave VPN". Brave VPN section will show a call to action text view that will redirect to the subscription page. If the user is already a paying customer, or the VPN is not supported the CTA view will be hidden. The design is responsive and adjust to large device screens and tablets, following the logic provided by Figma design. The entire layout is centered in the visible part of the page.
- Loading branch information
Showing
23 changed files
with
391 additions
and
155 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!--* Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:drawable="@drawable/ic_midnight_purple_circle" | ||
android:gravity="center"/> | ||
<item | ||
android:drawable="@drawable/ic_antenna" | ||
android:gravity="center"/> | ||
</layer-list> |
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!--* Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="20dp" | ||
android:height="20dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="@color/primitive_private_window_60" | ||
android:pathData="M18.31 16.35c0.33 0.4 0.9 0.41 1.33-0.04 1.52-1.64 2.36-3.87 2.36-6.28s-0.86-4.68-2.36-6.28c-0.42-0.46-1-0.44-1.33-0.05C18 4.06 18.1 4.53 18.45 4.93c1.2 1.33 1.87 3.12 1.87 5.1 0 1.96-0.67 3.75-1.87 5.08-0.36 0.4-0.46 0.87-0.14 1.24Zm-12.62 0c0.32-0.37 0.2-0.84-0.14-1.24-1.2-1.33-1.87-3.12-1.87-5.08 0-1.98 0.67-3.77 1.87-5.1 0.35-0.4 0.46-0.87 0.14-1.23-0.33-0.4-0.9-0.41-1.33 0.04C2.86 5.35 2 7.62 2 10.03s0.84 4.64 2.36 6.28c0.42 0.45 1 0.43 1.33 0.04Zm9.82-2.66c0.33 0.4 0.95 0.4 1.33-0.05 0.8-0.96 1.24-2.25 1.24-3.62s-0.44-2.66-1.24-3.6c-0.38-0.48-1-0.46-1.33-0.07-0.31 0.37-0.18 0.8 0.12 1.23 0.48 0.66 0.77 1.53 0.77 2.44 0 0.9-0.27 1.8-0.77 2.44-0.3 0.42-0.43 0.87-0.12 1.23Zm-7.02 0c0.3-0.36 0.18-0.8-0.12-1.23-0.5-0.64-0.78-1.53-0.78-2.44 0-0.9 0.3-1.78 0.78-2.44 0.3-0.42 0.42-0.86 0.12-1.23-0.33-0.39-0.95-0.4-1.33 0.06-0.8 0.95-1.24 2.24-1.24 3.61 0 1.37 0.44 2.66 1.24 3.62 0.38 0.46 1 0.45 1.33 0.05Zm3.5 6.9c0.5 0 0.8-0.35 0.8-0.89v-8.1c0.58-0.29 0.99-0.88 0.99-1.58 0-0.99-0.79-1.78-1.78-1.78s-1.77 0.8-1.77 1.78c0 0.7 0.39 1.3 0.97 1.58v8.1c0 0.53 0.33 0.9 0.8 0.9Z"/> | ||
</vector> |
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) 2024 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<vector | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="32dp" | ||
android:height="33dp" | ||
android:viewportWidth="32" | ||
android:viewportHeight="33" | ||
> | ||
<group> | ||
<path | ||
android:pathData="M0,16.5C0,7.663 7.163,0.5 16,0.5C24.837,0.5 32,7.663 32,16.5C32,25.337 24.837,32.5 16,32.5C7.163,32.5 0,25.337 0,16.5Z" | ||
android:fillColor="@color/primitive_private_window_20"/> | ||
</group> | ||
</vector> |
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!--* Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="20dp" | ||
android:height="20dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="@color/primitive_private_window_60" | ||
android:fillType="evenOdd" | ||
android:pathData="M3.1 11.37c0.14 0.46 0.42 3.12 1.27 3.89 0.87 0.79 4.17 0.78 4.8 0.43 1.42-0.76 1.99-3.24 2.24-4.32 0.14-0.62 0.59-0.62 0.59-0.62s0.47 0 0.62 0.62c0.25 1.08 0.8 3.56 2.2 4.33 0.64 0.34 3.94 0.36 4.81-0.43 0.85-0.77 1.13-3.44 1.27-3.9 0.14-0.46 0.85-0.92 1-1.08 0.14-0.15 0.14-0.76 0-0.92-0.29-0.3-3.62-0.58-7.22-0.15-0.71 0.09-0.98 0.3-2.68 0.3-1.7 0-1.97-0.22-2.69-0.3-3.58-0.43-6.92-0.15-7.2 0.15-0.14 0.16-0.14 0.77 0 0.92 0.14 0.16 0.84 0.62 0.99 1.08Z"/> | ||
</vector> |
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!--* Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="20dp" | ||
android:height="20dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="@color/primitive_private_window_60" | ||
android:fillType="evenOdd" | ||
android:pathData="M5.05 6.13l6.8-3a0.36 0.36 0 0 1 0.3 0l6.8 3a0.33 0.33 0 0 1 0.2 0.3v4.52c0 4.52-3.09 8.71-7.15 9.9-4.06-1.19-7.15-5.38-7.15-9.9V6.42c0-0.12 0.07-0.24 0.2-0.3Zm7.74-4.46a1.96 1.96 0 0 0-1.58 0l-6.8 3a1.93 1.93 0 0 0-1.16 1.75v4.53c0 5.34 3.73 10.34 8.75 11.55 5.02-1.21 8.75-6.21 8.75-11.55V6.42c0-0.76-0.45-1.45-1.16-1.76l-6.8-3Zm-4.87 9.15A7 7 0 0 1 12 9.52c1.52 0 2.93 0.48 4.08 1.3a0.84 0.84 0 0 0 0.97-1.36A8.67 8.67 0 0 0 12 7.84a8.67 8.67 0 0 0-5.05 1.62 0.84 0.84 0 0 0 0.97 1.36Zm1.59 2.76A3.86 3.86 0 0 1 12 12.67c0.95 0 1.82 0.34 2.5 0.9a0.84 0.84 0 1 0 1.07-1.28A5.54 5.54 0 0 0 12 11a5.54 5.54 0 0 0-3.57 1.3 0.84 0.84 0 0 0 1.08 1.29Zm4.07 1.18c0.22 0.2 0.17 0.53-0.08 0.69a7.93 7.93 0 0 1-1.32 0.67 0.49 0.49 0 0 1-0.36 0 7.93 7.93 0 0 1-1.32-0.67c-0.25-0.16-0.3-0.5-0.08-0.69a2.38 2.38 0 0 1 1.58-0.6c0.6 0 1.16 0.23 1.58 0.6Z"/> | ||
</vector> |
16 changes: 16 additions & 0 deletions
16
android/java/res/drawable/private_tab_gradient_background.xml
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,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<shape | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<gradient | ||
android:startColor="@color/primitive_private_window_20" | ||
android:centerColor="@color/primitive_private_window_10" | ||
android:endColor="@color/primitive_private_window_5" | ||
android:angle="225" | ||
/> | ||
|
||
</shape> |
Oops, something went wrong.