Conversation
Replace the Material-default purple look with the neutral, modern style of OmniTavern's built-in "经典白 / 经典黑" presets (values taken from its theme-store.js): cool-gray page, white surfaces, slate text, #199AFF accent, and a GitHub-dark-style night palette. Structural changes, not just color: - Home: character cards become flat list rows with a hairline divider inset past the avatar; avatars go from circles to 48dp rounded squares, and the muted hash-derived initial colors are mapped onto a saturated palette at render time (stored accent_color values are untouched). - Chat: assistant bubbles drop the 1dp stroke for a light elevation shadow; the "‹" text back button becomes a vector chevron; header and composer get hairline dividers; search/message inputs become bordered white pills. - Typography: header 28sp bold -> 22sp medium, names 16sp medium. - Fix: the theme never set colorSecondary, so the create-character FAB was rendering in Material's default teal (#03DAC6). It now follows the accent. Other screens pick up the new palette through the shared color tokens but keep their existing layouts for now. Verified: ./gradlew testDebugUnitTest lintDebug assembleDebug passes. No on-device screenshot this session (emulator lacks hypervisor support here). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
android:maxWidth on the bubble LinearLayout was silently ignored (only TextView/ImageView honor it), so long messages stretched edge to edge. Move the limit onto the text views inside the bubble via a shared message_bubble_max_width dimen (280dp). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
User problem
The app looked like an untouched Material Components template: default purple accent, lavender-tinted background, floating rounded cards, round letter avatars in muddy hash-derived colors, and a 34sp
‹text glyph as the back button. It didn't read as a current, polished chat app.This restyles the two most-used screens (Home and Chat) after OmniTavern's built-in "经典白 / 经典黑" (classic light / classic dark) themes. Color values come from its
theme-store.jspresets rather than being eyeballed.Changes
values/colors.xml,values-night/colors.xml): cool-gray#F4F5F6page, white surfaces, slate text (#0F172A/#64748B),#199AFFaccent; GitHub-dark-style night palette (#171B20page,#2F81F7accent). Adds adividertoken.bg_character_card.xmlis now a layer-list; elevation and card margins removed).CharacterAdaptermaps the stored, muted hash-derivedaccent_coloronto a saturated palette at render time; database values are unchanged.elevation="1dp"; the message container gets 2dp padding so the shadow isn't clipped.TextViewwith‹→ImageButtonwith the existing chevron vector (the Java side only callssetOnClickListener, so the type change is safe). Adds anavigate_backcontent description.themes.xml):colorSecondarywas never set, so the create-character FAB rendered in Material's default teal#03DAC6. It now follows the accent.bg_agent_card.xmlno longer hardcodes a#F0EAF8lavender gradient; badge/tag radii tightened to 8dp.CHANGELOG.md: Unreleased entry.Other screens pick up the new palette through the shared color tokens but keep their existing layouts. Rolling the structural changes (e.g. the vector back button) out to them is left for a follow-up.
Verification
testDebugUnitTestlintDebugassembleDebugCHANGELOG.mdand relevant docs are updatedScreenshots
No device screenshots yet (see above). The before/after was reviewed with an HTML mockup built from the real layout XML and hex values; device screenshots should be added here after an on-device check.
docs/images/home.pngandchat.pngin the README still show the old look and will need refreshing too.🤖 Generated with Claude Code