Skip to content

Point the Compose theme at the shared Scribe colors - #790

Merged
andrewtavis merged 4 commits into
scribe-org:mainfrom
bhanu-dev82:feat/782-compose-shared-colors
Nov 25, 2026
Merged

andrewtavis merged 4 commits into
scribe-org:mainfrom
bhanu-dev82:feat/782-compose-shared-colors

Conversation

@bhanu-dev82

Copy link
Copy Markdown
Collaborator

Contributor checklist


Description

ScribeTheme now reads the shared scribe_* color resources instead of a second copy of the hex values. The useDarkTheme argument still chooses day or night, including when that disagrees with the device.

Dark mode button text stays orange (#FFD17B0F) on the orange button. The dark caption slot now uses scribe_caption (#FFCAC4D0). That is the same grey Material 3 already used for this slot, so the screen should look the same. No other color change.

./gradlew lintKotlin detekt test completed successfully.

  • Colors.kt loads the scheme from the scribe_* resources and drops the unused hex copies.
  • ScribeTheme.kt uses that scheme.
  • ScribeColorSchemeTest.kt checks that the theme argument wins over the device night mode, and that dark button text stays orange.
  • CHANGELOG.md notes the change.

Related issue

@andrewtavis

Copy link
Copy Markdown
Member

@Roniscend and @prince-0408, maybe one of you could take an initial look at this one? :)

@Roniscend Roniscend left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you Assert all 14 color slots in ScribeColorSchemeTest it currently checks 6 per mode and a follow-up issue for the orange on orange onPrimary in dark mode.

ScribeColorSchemeTest now checks every slot set in Colors.kt for
both light and dark schemes, not only the previous six per mode.
@bhanu-dev82

Copy link
Copy Markdown
Collaborator Author

Thanks @Roniscend. ScribeColorSchemeTest now asserts all 14 color slots in both light and dark mode, and the branch is synced with main (no conflicts).

On the dark-mode onPrimary (orange on orange): @andrewtavis, you mentioned on #475 that you'd like to keep the dark-mode buttons as they are, and if anything lower the background opacity from 25% to about 15% (comment). Would you like me to make that opacity change here in this PR, or keep the current look? Happy to do either.

@prince-0408 prince-0408 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! 🚀

  • The updated now nicely asserts all 14 slots in both modes, addressing @Roniscend's feedback.
  • Keeping the dark mode button styling as-is here aligns with the scope of #782 ("no other recolor in this step"). Any opacity/contrast adjustment can be handled in a follow-up issue.
  • Clean implementation using and all CI checks are green.

Happy to approve!

@andrewtavis andrewtavis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

praise: From my end as well this is looking great, @bhanu-dev82! Thanks for really getting at these design/theme updates!

@andrewtavis
andrewtavis merged commit 969a8f2 into scribe-org:main Nov 25, 2026
7 checks passed
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.

Point the Compose theme at the shared Scribe colors

4 participants