ADFA-3587 Change logo from ADFA to CoGo on Preferences > About page#1196
Conversation
📝 WalkthroughChanges
Risks & Best Practice ViolationsColor Hardcoding in Vector Drawables: The SVG assets use hardcoded hex color values ( Single Asset for Both Themes: The same SVG is used for both light and dark modes as noted by the submitter. While understandable if black-and-white variants appeared visually poor, consider validating that the blue ( WalkthroughThe changes introduce a new brand mark vector drawable with day and night theme variants, each 48dp × 89dp, featuring a phone design with navigation UI elements and globe icon. A layout file is updated to reference and display this new drawable instead of the previous launcher foreground icon. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
resources/src/main/res/drawable-night/cogo_brand_mark.xml (1)
1-47: Night variant duplicates the day drawable — consider removing it.This file is byte-for-byte identical to
resources/src/main/res/drawable/cogo_brand_mark.xml(same hard-coded fills#233490,#FFFFFF,#00BE00). Since the brand mark intentionally uses the same colors in both themes (per the PR description), thedrawable-night/qualifier adds no value and just doubles the maintenance cost — any future tweak to the artwork has to be made in two places and will silently drift if one copy is missed.Recommend deleting this file and keeping only
resources/src/main/res/drawable/cogo_brand_mark.xml; the default drawable resolves in both light and dark modes automatically. If a distinct dark-mode variant is planned later, it can be reintroduced at that time.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@resources/src/main/res/drawable-night/cogo_brand_mark.xml` around lines 1 - 47, The night-theme drawable is an exact duplicate of the default brand vector (the cogo_brand_mark.xml vector using fill colors `#233490`, `#FFFFFF` and `#00BE00`), so remove the redundant night variant file and keep only the single default drawable (the <vector> element with those fillColor values) so the same artwork is resolved in both light and dark modes; if a true dark-specific variant is needed later, reintroduce a drawable-night/cogo_brand_mark.xml at that time.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@resources/src/main/res/drawable-night/cogo_brand_mark.xml`:
- Around line 1-47: The night-theme drawable is an exact duplicate of the
default brand vector (the cogo_brand_mark.xml vector using fill colors `#233490`,
`#FFFFFF` and `#00BE00`), so remove the redundant night variant file and keep only
the single default drawable (the <vector> element with those fillColor values)
so the same artwork is resolved in both light and dark modes; if a true
dark-specific variant is needed later, reintroduce a
drawable-night/cogo_brand_mark.xml at that time.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2d7110c0-c3dd-4f24-a933-b9adc11b9579
📒 Files selected for processing (3)
app/src/main/res/layout/layout_about_header.xmlresources/src/main/res/drawable-night/cogo_brand_mark.xmlresources/src/main/res/drawable/cogo_brand_mark.xml
Add the new CoGo branding SVG to drawables
Start using it for About page within Preferences
I went with the same image for both light mode and dark mode. The pure black-n-white images didn't look good.