Commit Graph
271 Commits
Author SHA1 Message Date
Simone Arpe 673b2e1833 Implement new preference screen "Customize menu" (#31172)
The custom menu item preference screen follows the Figma design and is composed by two sections, Main menu and Page actions.

The screen shows only those items that are supported by the device, items that will never appear won't be shown.
Each item's visibility will default to true and each preference is saved on shared preferences.

The only two items whose visibility cannot be modified are the Main Settings item and the Custom Menu item itself.
2025-09-16 13:54:29 +02:00
Serg 77dbfb9a84 Implement Brave Origin paywall on Android (#30554)
Implements Brave origin paywall screen and handles subscription
purchases on Google Play Store. There is no entry point to it
currently, it will be done in the feature PRs
Resolves: https://github.com/brave/brave-browser/issues/48279
2025-08-08 16:20:53 -04:00
Szilard Szaloki d07fb818dc Brave Account section in Android settings. (#30354) 2025-07-31 15:31:35 -05:00
samartnik f536ed9c59 [Android] Initial integration of quick shortcut button (#30242)
* [Android] Initial integration of quick shortcut button

- Adds flag for quick shortcut (disabled until all Brave items are available)
- Makes parity with options available with the upstream
- Visual and UI fixes

* Moves flag under Android guards
2025-07-25 06:57:22 -04:00
samartnik 5f6af32729 [cr139] Fix for the text color in various UI elements (#30125)
It regressed in https://github.com/brave/brave-core/commit/4c52ecdb254d848512ff010bd52c678ce6155e68
2025-07-18 12:01:07 -04:00
Artem Samoilenko 4c52ecdb25 [cr139][Android] Fixes for empty state icons and colors
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2ea22a866007bf908f0d5d0d3fad0e836ababa7a
https://chromium.googlesource.com/chromium/src/+/aa746c140a30610d1fa43e4aa195ab6a668d639b

commit 2ea22a866007bf908f0d5d0d3fad0e836ababa7a
Author: Eleanor Lee <eleanorlee@google.com>
Date:   Tue Jun 10 10:37:23 2025 -0700

    [Empty State Assets] Empty state static asset update pt 3

    Updated the empty state assets for downloads and GTS.

    Downloads:
    https://screenshot.googleplex.com/5xtqmzhPapSzoHt

    GTS tablet:
    https://screenshot.googleplex.com/B25dFFeDtazHM8H

    GTS phone:
    https://screenshot.googleplex.com/89XLDH4VMf4u3jF

    light:
    bg: primary 90
    outline: primary 60 & secondary 60

    dark:
    bg: primary 30
    outline: primary 60 & secondary 60

    Bug: 406498727
    Change-Id: I6d3b373501e4c3b36b6c5c022e3c9f19f62fdfab
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6629166
    Commit-Queue: Eleanor Lee <eleanorlee@google.com>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1471921}

commit aa746c140a30610d1fa43e4aa195ab6a668d639b
Author: Eleanor Lee <eleanorlee@google.com>
Date:   Tue Jun 10 15:45:38 2025 -0700

    [Empty State Assets] Empty state static asset update pt 4

    Updated the empty state assets for tab groups.

    Mobile:
    https://screenshot.googleplex.com/4aWEMEUfBP7v4tq

    Tablet:
    https://screenshot.googleplex.com/7eZPHcdDPbBE2T3

    light:
    bg: primary 80
    tab container: prim 95
    tab outline: prim 40
    empty tab fill: sec 70

    dark:
    bg: primary 40
    tab container: prim 20
    tab outline: prim 80
    empty tab fill: sec 50

    Bug: 406498727
    Change-Id: I770fe8b0fcb68e9c08de09a17e3461bdb1360684
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6630537
    Commit-Queue: Eleanor Lee <eleanorlee@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1472106}
2025-07-16 13:40:38 -04:00
Artem Samoilenko 9873fb1d97 [cr139][Android] Baseline color updates
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/ee7b53f149eac2609a75cdeddaf55cc9f695d18e

commit ee7b53f149eac2609a75cdeddaf55cc9f695d18e
Author: Eleanor Lee <eleanorlee@google.com>
Date:   Wed Jun 11 17:16:37 2025 -0700

    Update on container baseline colors for light theme

    On Primary Container: Primary10 -> Primary30
    On Secondary Container: Secondary10 -> Secondary30

    We currently do not use On Tertiary Container or On Error Container

    Bug: 413062545
    Change-Id: I4f895df9ac633791af0976166181eb7bba2c93cc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6638604
    Commit-Queue: Eleanor Lee <eleanorlee@google.com>
    Reviewed-by: Sinan Sahin <sinansahin@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1472766}
2025-07-16 13:38:46 -04:00
Artem Samoilenko 84016f4011 [cr139][Android] Remove XML inflation of the main menu
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/77f042119bba825077be9212045a8f9fe2a7bb29

commit 77f042119bba825077be9212045a8f9fe2a7bb29
Author: Ted Choc <tedchoc@chromium.org>
Date:   Fri May 30 08:04:37 2025 -0700

    Remove XML inflation of the menu for tabbed mode.

    Removes all the legacy code dealing with Android Menu
    inflation as well.

    Bug: 40145539
    Change-Id: I905530ca4727d0ab885e5c8b67010dd2f650cc91
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6605931
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Commit-Queue: Ted Choc <tedchoc@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1467479}
2025-07-16 13:38:22 -04:00
Serg 355b6dde6f Search widget: Set color scheme to use material design (#29569)
The search widget needs to have better alignment with Material colors.
It is important for it to feel like it is integrated to the OS.
Resolves: https://github.com/brave/brave-browser/issues/46537
2025-06-16 08:52:14 -04:00
AlexeyBarabash 2625454fb9 [Android] Fixed SetTextColorAndSetTextSizeCheck warnings at CardBuilderFeedCard.java 2025-06-11 17:07:52 -04:00
AlexeyBarabash 6e7f75e4ba [cr138][Android] Backport OverflowMenuButton style
This fixes menu footer buttons.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/fa431a3660de796f7aa18130fd8a6da39f1cc1d7

	[Icon Button] Migrate app menu icon buttons

	Migrated the app menu top row icons from ChromeImageButtons to Material Buttons. The highlight (ripple) is now a perfect circle instead of rectangle.

	Bug: 405189559
	Change-Id: I0376bf0ecf7f5b734dad2d7e8c69200834c54248
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6477118
2025-06-11 17:07:47 -04:00
Artem Samoilenko deb3ac4cde [cr137] [Android] Toolbar text box color rename
Chromium change:
https://chromium.googlesource.com/chromium/src/+/60bd853aed5f8599a5508a78e45665ddd042fc76

[Surface Color] Omnibox & toolbar

Light:
Toolbar: surface 0 -> surface
Omnibox bg: surface 4 -> surface container high

Dark:
Toolbar: Surface 0 -> Surface
Omnibox bg: surface 4 -> surface container highest

Before:
https://screenshot.googleplex.com/4dX62JRmShEBsBw
https://screenshot.googleplex.com/4B2SZSYpaF5pPBh

After:
https://screenshot.googleplex.com/9kFF4eMkD4FscZV
https://screenshot.googleplex.com/6jpDFSwPNBaWHgk

ChromeColors#getDefaultThemeColor, which is used for the toolbar bg, is already set to colorSurface.

Bug: 406890625
2025-05-13 15:52:47 -04:00
Serg e59261e886 Retrieve BraveNewsService by profile (#28783)
* Passes profile from Java to BraveNewsController factory. Removes BraveNewsController member from BraveActivity.
2025-04-24 20:20:27 -04:00
Deep Pandya 1a08762a2d Add a separate target for quick search engine feature (#26478)
* Move java classes into brave/browser for quick_search_engines

* Move serach_engines resources to brave/browser/search_engines

* Add translations files for search_engines android string

* Add dimens

Add a function to load favicons

* Add close menu id for quick search

* Add missing deps

* Move quick search engines changes to brave/browser/quick_search_engines

* Remove comments for BUILD.gn
2025-04-23 17:00:28 -04:00
Deep Pandya 2b756daa09 Android onboarding variants (#28426)
* Add support for diferent variants

* Remove omnibox highlight which shows up right after onboarding

* Add different variants function

* Add search widget promo on NTP

* Add notification permission changes

* Update widget promo UI

* Update wdp check

Resolve presubmit issue
2025-04-03 10:52:03 -04:00
Artem Samoilenko 2e7944d3e9 [Android] Update colors for Address bar setting and empty state icons 2025-03-31 14:39:09 -04:00
Deep Pandya 86e6934b52 Remove search engine onboarding (#28230)
* Remove search engine onboarding

* Remove onUrlFocusChange callback
2025-03-21 00:15:47 -04:00
Deep Pandya a5c0b652be Rewards 3.0 android (#26945)
* Add rewards 3.0 feature flag

* Add a function to check for rewards 3.0 flag

Update entry points for rewards with rewards 3.0 flag

* Add RewardsPageActivity/RewardsCustomTabRootUiCoordinator to show rewards 3.0 changes in custom tab

* Address rewards reset for rewards 3.0

* Add activity transition for rewards page

* Remove onBackPressed override

* Add close button to close the rewards panel as we have disabled back press

Update close button position on the page

* Add creator changes for rewards 3.0

Remove logs

Add null check

Remove changes for backpress

* Add changes for handling creators

Encode Url for creators

* Add open url native fucntion

* Add bubble in query params

* Add bytecode changes for BaseCustomTabActivity

Add native function to open url into rewards_page_ui

* Update copyright header year

* Update close icon for rewards page

Remove comments and refactor changes

* Address naming related changes

* Add test for bytecode changes

Resolve rebase error

* Update changes to use TabUtils open tab

* Remove close button

* Add FullScreenCustomTabActivity
2025-02-22 16:34:57 -05:00
Artem Samoilenko eedeae5ab2 [Android] Clean up modern_grey colors
Chromium change:
https://chromium.googlesource.com/chromium/src/+/e99dac41a65779af4bfb8a15cde443478f51cc2f

[clank-q4-fixit] Clean up modern_grey colors pt 2

Bug: 40910276
2025-01-27 09:41:36 -05:00
deeppandya 42621330b0 Remove AC layout from rewards panel
Remove unused resources

Improve format
2025-01-09 16:51:51 -05:00
deeppandya f09c28a697 Add dark image res
Update bg color for the dialog
2024-12-18 09:36:36 -07:00
Serg 1c166f181d Allows to use a microphone for Brave Talk in the background on Android 2024-12-16 13:01:10 -05:00
Jay Harris 3b008944ad [AI Chat]: Update Android UI to open AI Chat in a tab (#26823) 2024-12-12 13:28:38 +13:00
deeppandya dc5098f382 Remove unused resources 2024-12-03 01:04:52 -05:00
vadims 3386ed8a99 Put "block all cookies" under a default-off feature flag (#26479)
Put "block all cookies" under a default-off feature flag
(https://github.com/brave/brave-browser/issues/42061)
---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2024-11-13 22:30:59 +01:00
deeppandya 2fa0bb4e62 Remove commented colors as it's not needed 2024-11-13 10:07:39 -05:00
deeppandya 179618f779 Change quick search engine background to match with url bar color 2024-11-13 09:50:20 -05:00
deeppandya 1c4d4a3551 Refactor class names
Remove logs

Add new line for ic_microsoft_color icon
2024-11-06 11:20:09 -05:00
deeppandya a9933fd80b Add reorder for quick search engines settings 2024-11-06 11:18:21 -05:00
deeppandya affec58382 Resolve order issue with MAP
Resolve keyboard height issue

Update icons for bing and startpage

Update existing UI
2024-11-06 11:18:19 -05:00
deeppandya 845ab1b9d8 Add feature flag and update existing UI with the flag 2024-11-06 11:18:16 -05:00
deeppandya 0078b7a792 Resolve rebase issues 2024-11-06 11:18:14 -05:00
deeppandya 3fcd34edcd Update quick search engines view 2024-11-06 11:18:11 -05:00
deeppandya 32d985caec Add changes for getting search engine icons
ADd callbacks for interaction
2024-11-06 11:16:36 -05:00
Simone Arpe 7a362dd531 (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.
2024-10-15 19:18:52 +02:00
Serg 00ef18e44b Leo annual subscription on Android 2024-10-15 10:15:04 -04:00
AlexeyBarabash 0939827f8f Fixed navigation bar color at private tab (#25923)
* Fixed navigation bar color at private tab; fixes brave/brave-browser#41545

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/52962da478ed750038f966c386c4ee0ff2d73837

Always apply luminance calculation to navigation bar icons

Currently, the navigation bar icons only respond to the color of the navigation bar during animations. Since animations are being disabled for the navbar coloring experiment, it's important that the luminance calculation to properly color the navigation bar icons is applied all the time, not just during animations.

Bug: 364228106, 40925025
2024-10-11 17:17:14 +03:00
Simone Arpe 0223b796d9 (Wallet) Clean up and improve transaction fragment implementation (#25628) 2024-10-07 19:39:21 +02:00
deeppandya 5274ff61ed Add UI changes for selected server selection android 2024-09-06 03:23:14 +05:30
deeppandya 8c430eb8f0 Initial changes for UI
Update vpn server selecton activity UI
2024-09-06 03:22:11 +05:30
deeppandya a3d8f60b45 Remove changes for old paywall 2024-08-21 03:31:11 +05:30
deeppandya 4714887af3 Update bg color for the paywall 2024-08-21 03:31:09 +05:30
deeppandya e80fa75b51 Add bg selector for vpn paywall
Add currency symbol

Update colors for paywall
2024-08-21 03:31:00 +05:30
Simone Arpe 6b242e419c (Wallet) Implement recovery screens (#24943)
Implements new layouts and new logic for recovery screens.

1. The recovery phrase is shown when a new Wallet is created and the UI is presented with a blurred component that will be unblurred only upon user confirmation.

2. The recovery phrase verification is now in three steps and will ask to confirm three words picked at a random position.
For security reasons these steps won't allow back navigation and skipping them will consider the backup process as not completed, so the user will have the option to complete the verification later on.

3. The new Wallet restoration screen is the most complex screen of this PR. It accepts a mnemonic phrase made by 12 or 24 words. It can be copied over from clipboard, spit, formatted and pasted nicely in each edit text. The edit text items have been customized to accept the pasted text (See `PasteEditText` component). The layout can switch from 12 and 24 words, and also has a button to mask and unmask the words. The continue button is responsive and is enabled ONLY when all the items have been filled.
2024-08-14 15:09:23 +02:00
AlexeyBarabash f6c8b190a1 Fixed url bar left padding
Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7c065994b4014bb6e352c90c1df8e4e1a2bc1e83

	[SurfacePolish][CleanUp] Clean up surface polish code related to toolbar and real omnibox appearance.

	This CL cleans up code related to the toolbar and real omnibox
	appearance, including color, icon background, hint text typeface, and
	button end margin. This CL does not include the change in animation.
	Additionally, it makes a small adjustment to the size of the Google icon
	background in the real omnibox.
	Here is a comparison:
	Original: https://drive.google.com/file/d/1ZAu3svqTXe0bjABFgudgv8XnZNO_fph6/view?usp=sharing&resourcekey=0-Rxyvdlg9na3n-M1Jd9VNKQ
	After this CL:
	https://drive.google.com/file/d/1zBX-rTgUz2VNHwHp9NMBIaVklx-VSaol/view?usp=sharing&resourcekey=0--L7FH_jIss1VFlauBEMFVQ

	Bug: 331667743
	Change-Id: I863d9e333fe21509f92f05da73a13d3070fc3bfe
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5688899
2024-08-07 21:31:55 -04:00
AlexeyBarabash 42194fc146 Fixed toolbar background color
Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7c065994b4014bb6e352c90c1df8e4e1a2bc1e83

[SurfacePolish][CleanUp] Clean up surface polish code related to toolbar and real omnibox appearance.

	This CL cleans up code related to the toolbar and real omnibox
	appearance, including color, icon background, hint text typeface, and
	button end margin. This CL does not include the change in animation.
	Additionally, it makes a small adjustment to the size of the Google icon
	background in the real omnibox.
	Here is a comparison:
	Original: https://drive.google.com/file/d/1ZAu3svqTXe0bjABFgudgv8XnZNO_fph6/view?usp=sharing&resourcekey=0-Rxyvdlg9na3n-M1Jd9VNKQ
	After this CL:
	https://drive.google.com/file/d/1zBX-rTgUz2VNHwHp9NMBIaVklx-VSaol/view?usp=sharing&resourcekey=0--L7FH_jIss1VFlauBEMFVQ

	Bug: 331667743
	Change-Id: I863d9e333fe21509f92f05da73a13d3070fc3bfe
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5688899
2024-08-07 21:31:50 -04:00
AlexeyBarabash dbc3626698 Fix orange opaque address bar.
Set ToolbarPhone.mLocationBarBackgroundColorForNtp with non-opaque regular color.

Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7c065994b4014bb6e352c90c1df8e4e1a2bc1e83

	[SurfacePolish][CleanUp] Clean up surface polish code related to toolbar and real omnibox appearance.

	This CL cleans up code related to the toolbar and real omnibox
	appearance, including color, icon background, hint text typeface, and
	button end margin. This CL does not include the change in animation.
	Additionally, it makes a small adjustment to the size of the Google icon
	background in the real omnibox.
	Here is a comparison:
	Original: https://drive.google.com/file/d/1ZAu3svqTXe0bjABFgudgv8XnZNO_fph6/view?usp=sharing&resourcekey=0-Rxyvdlg9na3n-M1Jd9VNKQ
	After this CL:
	https://drive.google.com/file/d/1zBX-rTgUz2VNHwHp9NMBIaVklx-VSaol/view?usp=sharing&resourcekey=0--L7FH_jIss1VFlauBEMFVQ

	Bug: 331667743
	Change-Id: I863d9e333fe21509f92f05da73a13d3070fc3bfe
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5688899
2024-08-07 21:31:43 -04:00
deeppandya a9fbfc6537 Resolve billing client issues
Resolve presubmit error
2024-07-29 22:47:10 +05:30
deeppandya 6062787818 Add pref changes for android day zero expt
Remove rewards bottom banner as it's onselete

Refactor NTPUtil class
2024-07-17 18:42:23 +05:30
Artem Samoilenko 5e26b1ecff [Android] ShowScrollableMVTOnNTP feature was removed
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d864e62dddc14e305f0a274f6058ab082ad2b99a

[SurfacePolish][CleanUp] Clean up surface polish code for MVT (Part 5)

This CL represents part 5 of the cleanup for the surface polish code in
the MVT, focusing on refining the code associated most visited tiles
layout. The update removes the grid layout from most visited tiles and
renames the most visited tiles carousel layout to simply most visited
tiles layout.

Bug: 331667743
2024-06-25 13:13:13 +01:00