Skip to content

Conversation

@dicarobinho
Copy link
Collaborator

πŸ“œ Tickets

Jira ticket
Github issue

πŸ’‘ Description

Every Done/Save button from an edit screen should have tint color textAccent
Every Done/Save button from a normal screen should have tint color textPrimary

πŸŽ₯ Demos

IMG_3003
IMG_3002
IMG_3004

Before After
Demo

πŸ“ Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code

@dicarobinho dicarobinho requested a review from lmarceau October 22, 2025 11:46
@dicarobinho dicarobinho marked this pull request as ready for review October 22, 2025 11:46
@dicarobinho dicarobinho requested a review from a team as a code owner October 22, 2025 11:46
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Oct 22, 2025

Messages
πŸ“– Project coverage: 38.5%

πŸ₯‡ Perfect PR size

Smaller PRs are easier to review. Thanks for making life easy for reviewers! ✨

πŸ™Œ Friday high-five

Thanks for pushing us across the finish line this week! πŸ™Œ

❌ Per-file test coverage gate

The following changed file(s) are below 35.0% coverage:

File Coverage Required
firefox-ios/Client/Frontend/Autofill/CreditCard/CreditCardSettingsView/CreditCardInputView.swift 1.5% 35.0%
firefox-ios/Client/Frontend/Library/Bookmarks/BookmarksViewController.swift 10.3% 35.0%
firefox-ios/Client/Frontend/Library/Bookmarks/Edit Bookmark/EditBookmarkViewController.swift 2.3% 35.0%
firefox-ios/Client/Frontend/Library/Bookmarks/Edit Folder/EditFolderViewController.swift 2.9% 35.0%
firefox-ios/Client/Frontend/Onboarding/Views/PrivacyPolicyViewController.swift 15.4% 35.0%
firefox-ios/Client/Frontend/Onboarding/Views/PrivacyPreferencesViewController.swift 0.0% 35.0%
firefox-ios/Client/Frontend/PasswordManagement/AddCredentialViewController.swift 2.6% 35.0%
firefox-ios/Client/Frontend/Settings/AppearanceSettings/StylingViewModifiers.swift 0.0% 35.0%
firefox-ios/Client/Frontend/Settings/Main/AppSettingsTableViewController.swift 34.2% 35.0%
firefox-ios/Client/Frontend/Settings/SearchSettingsTableViewController.swift 10.3% 35.0%

Client.app: Coverage: 37.24

File Coverage
CustomSearchViewController.swift 19.08% ⚠️
ContentBlockerSettingViewController.swift 56.92% βœ…
EditBookmarkViewController.swift 2.35% ⚠️
AddCredentialViewController.swift 2.58% ⚠️
HomePageSettingViewController.swift 6.08% ⚠️
LibraryViewController.swift 43.0% ⚠️
AppSettingsTableViewController.swift 34.2% ⚠️
BookmarksViewController.swift 10.27% ⚠️
OnboardingService.swift 69.64% βœ…
OnboardingCardDelegate.swift 14.42% ⚠️
PrivacyPolicyViewController.swift 15.38% ⚠️
EditFolderViewController.swift 2.87% ⚠️
SearchSettingsTableViewController.swift 10.27% ⚠️
CreditCardInputView.swift 1.51% ⚠️
StylingViewModifiers.swift 0.0% ⚠️
PrivacyPreferencesViewController.swift 0.0% ⚠️

Generated by 🚫 Danger Swift against 1594197

Copy link
Collaborator

@FilippoZazzeroni FilippoZazzeroni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great to me @dicarobinho great work, just some small nits comment

@State var borderColor: Color = .clear
@State var textFieldBackgroundColor: Color = .clear
@State var barButtonColor: Color = .clear
@State var saveButtonColor: Color = .clear
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add directly ThemeableView from ComponentLibrary so we can simplify a lot this code ? cc @razvanlitianu ?

case .bookmarks(state: .mainView), .bookmarks(state: .inFolder):
bottomRightButton.title = .BookmarksEdit
if #available(iOS 26.0, *) {
bottomRightButton.tintColor = themeManager.getCurrentTheme(for: windowUUID).colors.textPrimary
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of querying the theme all time, can we just add it to a variable theme in and just pass the color ?

case .bookmarks(state: .itemEditMode):
topRightButton.title = .SettingsAddCustomEngineSaveButtonText
if #available(iOS 26.0, *) {
topRightButton.tintColor = themeManager.getCurrentTheme(for: windowUUID).colors.textAccent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

if #available(iOS 26.0, *) {
content
.foregroundColor(
!isEnabled ? saveDisableStateColor :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this easier to read ? Also with the ThemeableView we can just pass the Theme there

@lmarceau lmarceau removed their request for review October 27, 2025 14:35
@dicarobinho dicarobinho requested review from lmarceau and removed request for FilippoZazzeroni October 28, 2025 11:51
@lmarceau lmarceau requested review from FilippoZazzeroni and removed request for lmarceau October 28, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants