fix: use brand color for error toast#1023
Merged
Merged
Conversation
Greptile SummaryThis PR fixes the error toast color by changing it from
Confidence Score: 5/5Safe to merge — the change is a one-line color swap in a single composable function with no logic impact. The only changed behavior is the toast tint color for ERROR toasts. The mapping is trivially correct and the rest of the component is untouched. The one observation — that WARNING and ERROR now share the same color — is acknowledged and intentional per the PR description. No files require special attention.
|
| Filename | Overview |
|---|---|
| app/src/main/java/to/bitkit/ui/components/ToastView.kt | Single-line change swapping Colors.Red to Colors.Brand for the ERROR toast tint; WARNING already used Colors.Brand so both now share the same color. |
| changelog.d/next/1009.fixed.md | New changelog entry describing the error toast color fix for issue #1009. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
T[Toast.tintColor] -->|SUCCESS| G[Colors.Green]
T -->|INFO| B[Colors.Blue]
T -->|LIGHTNING| P[Colors.Purple]
T -->|WARNING| BR[Colors.Brand #FF4400]
T -->|ERROR| BR
style BR fill:#FF4400,color:#fff
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
T[Toast.tintColor] -->|SUCCESS| G[Colors.Green]
T -->|INFO| B[Colors.Blue]
T -->|LIGHTNING| P[Colors.Purple]
T -->|WARNING| BR[Colors.Brand #FF4400]
T -->|ERROR| BR
style BR fill:#FF4400,color:#fff
Reviews (1): Last reviewed commit: "chore: rename changelog fragment" | Re-trigger Greptile
jvsena42
enabled auto-merge
June 17, 2026 17:31
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1009
This PR switches the
.errortoast color from the crimson red accent to the brand orange so it matches the design prototype.Description
The error toast type previously used the red accent (#E95164), a crimson that does not appear in the prototype. The prototype's failure toasts ("Spending Balance Setup Failed", "Instant Payments Unavailable") all use the brand orange (#FF4400), so error toasts now use the brand color too.
The separate warning toast branch is intentionally left in place even though it currently resolves to the same brand color, so a distinct color can be reintroduced for errors in the future without reworking the mapping.
Design reference: Figma prototype
Preview
Screen_recording_20260617_142317.webm
QA Notes
Manual Tests
Automated Checks