Commit Graph
481 Commits
Author SHA1 Message Date
AlexeyBarabash 75914cd582 Android tab switcher incognito icon (#31021)
* Updated icons with product-private-window.svg from Leo repository
* Moved incognito_simple icon corresponding to upstream's place

Resolves https://github.com/brave/brave-browser/issues/48913
2025-09-04 07:59:34 +09:00
AlexeyBarabash 1bdfeecdb5 [cr140][Android] Fixed color of search your downloads textbox (#30856)
* [cr140][Android] Fixed color of search your downloads textbox

The color `@color/toolbar_text_box_bg_color` was used which does not
depend on Brave's color accent.

Resolves https://github.com/brave/brave-browser/issues/48702

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

	Implement new Download page UI for LFF devices

	Implements the new UI for the Download Manager page on large-screen
	devices based on the approved UX spec, http://shortn/_9stIgUxL1u.

	UI behavior after changed: http://shortn/_FOLyyoTdOG

	Bug: 422042079
	Test: chrome://downloads should match UI team's design on LFF device
	Change-Id: Ieb77fcd38d86fd023a149c8186fc1de84819bb60
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6733725
2025-09-01 18:33:20 +03:00
AlexeyBarabash d7256b1461 [cr140][Android] Backport built-in Password Manager (#30433)
Starting from cr140 Password manager was removed from Android.

This commit switches Android to use the same PasswordManagerSettingsService
as Desktop does.
Also backports upstream's Password Manager classes and resources used at cr139.

Chromium changes:

https://source.chromium.org/chromium/chromium/src/+/7511b67d9208bd10463c1e5752976346ab6bd207
	[LoginDbDeprecationAndroid] Remove last usages and delete the flag

https://source.chromium.org/chromium/chromium/src/+/5794e9a0461497b7b810e9366c1c53eab711b6f2
	[passwords/android] Limit kPasswordsUseUPMLocalAndSeparateStores access

https://source.chromium.org/chromium/chromium/src/+/6875d2ce472e7f2097617525feec45313602e225
	[passwords/android] Remove unused password checkup UI

https://source.chromium.org/chromium/chromium/src/+/3662471ee9fabd6d1777b1d5316f0b9eede0f115
	[passwords/android] Remove unused PasswordSettings.java

Or see the log for `chrome/browser/password_manager/android/` directory
https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/password_manager/android/;bpv=1
2025-08-20 01:06:59 +03:00
AlexeyBarabash a578a9cfec [cr140][Android] Update btn_right and btn_back to newer asset
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/f5f7db8839213f6a812ba2fb5972547225d0347b

	Update btn_right and btn_back to newer asset

	Replaces btn_right.png and btn_left.png with a newer material vector drawables.

	Bug: 425739282
	Change-Id: Ic1c50a79c7c1eedb7d69e727bbc2463b1bc94cc7
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6692114
2025-08-19 19:54:21 +01: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
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
Simone Arpe 6e1791f50c Add PIP icon in omnibox (#29431) 2025-07-17 21:17:54 +02: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 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
AlexeyBarabash 619b26786d Fixed icons at CTA menu (#29688)
* Fixed icons at CTA menu

Resolves https://github.com/brave/brave-browser/issues/46811

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-25 02:03:32 +02: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 a7d72c4c33 [cr138][Android] Fixed Brave Password Manager icon at preferences
It was a name overlapping with the one from
`obj/third_party/androidx/androidx_credentials_credentials_java/res/drawable/ic_password.xml`

Chromium change probably:
https://source.chromium.org/chromium/chromium/src/+/dc70a40afac9726a01aa7c5330e0c51c2dc58a4b

	[DC] Move the DigitalCredentialsCreationDelegateImpl to the public code

	The androidx library has been released to the public and hence no need
	to keep it in the internal code.

	This CL is introducing minor behavioral changes limited to Null checks.
	The diff between the version in the internal code and this one is in
	http://go/webdiff#key=iVg4KJsYe0Gu

	Follow-up CLs will remove the internal pieces.

	Bug: 415967212
	Change-Id: Ief2df4b1654d9d2ea54506d9c846ea02dbbe0597
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6523383
2025-06-11 17:07:47 -04:00
Serg 7bcbc8bc21 Brings back upstream search widget on Android (#29416)
This is a revert of https://github.com/brave/brave-core/pull/28753
The reason: we received a lot of feedback from frustrated users that
the widget was very useful.
Resolves: https://github.com/brave/brave-browser/issues/46597
2025-06-05 16:17:04 -04:00
samartnik 81cd3abcd1 [Android] New Mobile Bookmarks homepage setting (#29051)
* [Android] New Mobile Bookmarks homepage setting

* [Android] Mobile bookmarks string correction

* [Android] Code review suggestions

* Replaces direct patch with bytecode and adds eol

* Moves test method from dummy to the main class

* Direct patch xmls and typo fix

* BaseJUnit4ClassRunner to ChromeJUnit4ClassRunner for tests

* Fixes presubmit issues for tests
2025-05-16 23:05:03 +02:00
samartnik a2725afde8 [Android] Updates download page menu icon (#29091)
* [Android] Updates download page menu icon

* [Android] Adds header to ic_download icon
2025-05-16 00:38:49 +02:00
Simone Arpe 7850105ddd (Wallet) Implement ZCash support on Android Wallet (#28883)
* Add required string for Android

* Perform small refactoring

* Introduce support for ZCash Mainnet and Testnet

* Implement logic to extract Zec data

* Improve fragment transaction UI

* Apply code formatting

* Switch ApproveTxBottomSheetDialogFragment to NullAway annotations

* Switch TxDetailsFragment to NullAway annotations

* Rename variable

* Switch SiweMessageFragment to NullAway annotations

* Switch AssetUtils to NullAway annotations

* Switch Utils to NullAway annotations

Removes unused methods and strings.
Adds missing ZCash vector asset.

* Switch ParsedTransaction to NullAway annotations

* Switch ParsedTransactionFees to NullAway annotations

* Remove unused parameters from methods and constructors

* Switch ApproveTxFragmentPageAdapter to NullAway annotations

* Switch TxFragment to NullAway annotations

* Introduce assert instead of throwing

* Add ZCash vector asset

* Extract Zec data into proper field
2025-05-07 20:01:03 +02: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 53ba9ecc1d Add patch to remove chromium search widget (#28753)
* Add patch to remove chromium search widget

* Add lint suppression for search widget
2025-04-23 10:38:26 -04:00
AlexeyBarabash 290d8493e4 [cr136][Android] SyncConsent fragments and activity were removed
FirstRunFlowSequencer.onFlowIsKnown() argument is changed from bundle to boolean

down_arrow drawable was used at
//chrome/browser/ui/android/signin/java/res/layout/signin_view.xml
and now is also removed

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

	[Android] Remove SyncConsent fragments and activity

	This cl removes the following classes:
	- SyncConsentFragmentBase
	- SyncConsentFragment
	- SyncConsentFirstRunFragment
	- SyncConsentActivity
	- All xml resources related to these classes

	FirstRunFlowSequencer.onFlowIsKnown() argument is changed from bundle
	to boolean.

	Bug: 350461111
	Change-Id: If1ad68f40e98f843d42f1b3903878c22af6ed2cb
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169618
2025-04-16 09:30:22 +01:00
Deep Pandya 2cfff090f4 Update changes for always on to auto reconnect (#28615)
* Update changes for always on to auto reconnect

* ADd quotes to hightlight Block connections without VPN
2025-04-13 23:16:06 +02: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 d0a6a9a06e [Android] Update icon names to match Figma 2025-03-27 13:10:04 -04:00
Artem Samoilenko 152d7a4103 [Android] Additional improvements for bottom address bar
- Moved address bar to bottom on NTP
- Moved menu and updated menu icons and texts
- Added request for relaunch when bottom navigation controls are enabled
- UI and visual improvements
2025-03-27 09:11:22 -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
Artem Samoilenko 37134ad086 [Android] Rename appearance settings resource
Chromium change:
https://chromium.googlesource.com/chromium/src/+/791fd6f95c875db2e132bee7f831563c690fe001

Add "Theme" settings menu option to new "Appearance" settings page.

This CL adds the "Theme" settings menu option to the new "Appearance"
settings page. In a follow up CL, a pref summary will be added as well.

Design: http://shortn/_oxzSbwNuTe

NO_IFTTT=New check

Bug: 397775252
2025-03-18 20:02:15 -04:00
vadims b3e162dba1 Additional Shields menu item to show all blocked elements(same as reset) (#27910)
Additional Shields menu item to show all blocked elements(same as reset)
(https://github.com/brave/brave-browser/issues/43955)

---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2025-03-13 15:54:57 +01:00
Deep Pandya 1247dd3771 Improve set as default prompt (#27779)
* Open settings to set default browser app from main menu

* Add conditions for app open count & dialog

* Remove notifications for set as default

* Add conditions for days timer

* Add changes to support < android 10 devices

* Add comments and refactor functions
2025-02-28 15:11:30 -05:00
Deep Pandya 50c2e997d9 Add Tabs icon in settings (#27725)
* Add Tabs icon in settings

* Update icon tint
2025-02-20 14:09:55 -03:00
Deep Pandya f7c6cfdd66 Add landscape UI for vpn paywall page (#27479) 2025-02-07 20:36:05 +01:00
Deep Pandya c96125629b Update search engine onboarding icons with vector drawables (#27541) 2025-02-07 11:57:02 -05:00
Deep Pandya 8a53a7facd Add leo paywall for landscape (#27482)
Update copyright year
2025-02-06 18:45:24 +01:00
Artem Samoilenko 17d0198f13 [Android] Empty Tab List Animation for the night mode
Chromium change:
https://chromium.googlesource.com/chromium/src/+/20b3b308ad1929de3048a600721e45faeadee89b

[Tab Groups] Empty Tab List Animation

- Visible only for phone users
- New class for building animations
- New animation factory for translations. Only really useful in niche situations.

Bug: 362329064
2025-01-27 09:41:40 -05:00
Artem Samoilenko cc8c69c7ec [Android] Clean up for UnusedMethod and UnusedVariable lint errors 2025-01-27 09:36:40 -05:00
Artem Samoilenko 0e2dd52b7b [Android] Rename secure state icons
Chromium change:
https://chromium.googlesource.com/chromium/src/+/18371dfa10268ba754ca5cbd75beda9038f82503

[omnibox] Rename Android secure state icons to reflect their function.

The omnibox secure state indicator was refreshed last year to show a page info icon instead of a lock icon. As of https://crrev.com/c/5982459, the refreshed state became the only state for the omnibox indicator but the icon was still named "refresh" and the old lock icon was still in use in other surfaces.

This CL changes the icon names to "page_info" and "lock" to clearly distinguish them.

Change-Id: Ic7175efccbed0dbbd1523827873b26c4209b4e67
2025-01-27 09:36:35 -05:00
Simone Arpe f4d205a7b6 (Wallet) Fix Dapps dialog not dismissed when creating a new tab (#27249)
Fix Dapps dialog not dismissed correctly when creating a new tab
2025-01-15 19:31:19 +01:00
deeppandya 90c24dd6d3 Remove cross promo dialog 2024-12-18 13:58:08 -07:00
Jay Harris e1a3daade2 [AI Chat]: Android history setting (#26988) 2024-12-18 11:41:30 -07:00
deeppandya f09c28a697 Add dark image res
Update bg color for the dialog
2024-12-18 09:36:36 -07:00
deeppandya 36c038c6cb Add static image as we removed the animation 2024-12-18 09:36:33 -07:00
deeppandya dc5098f382 Remove unused resources 2024-12-03 01:04:52 -05:00
deeppandya 874c3f61e4 Remove estimated earning text 2024-12-03 01:04:45 -05:00
deeppandya f0e8d21417 Add animations for open yt in brave dialog
Remove unused files

Use TabUtils function
2024-11-19 16:00:16 -05:00
deeppandya 0622296fe8 Add open youtube in brave dialog on upgrade 2024-11-19 15:59:46 -05:00
deeppandya b1b011fbe5 Add youtube in quick search engines
Add youtube string

Resolve format issue
2024-11-14 04:20:07 -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 3fcd34edcd Update quick search engines view 2024-11-06 11:18:11 -05:00
deeppandya 3d82e3dd11 Add quick search NTP view
Update changes in BravActivity to render the view

Add helper class for checking keyboard height
2024-11-06 11:18:07 -05:00