Merge upstream/dev (86 commits) into tth
Upstream redesigned the chat composer (bubble, round +/send button, ChatComposerQuote for the reply preview); our terminal theme had tweaked the old layout. Took upstream's structure and re-applied the terminal look to the new widgets: compact panel padding, square bubble, square button, square and one-line-low reply quote. The terminal reply padding in channel_chat_screen now lives in ChatComposerQuote, so DMs get it too. Also fixed for the merge: - mesh_ui: AvatarCircle uses upstream's avatarInitials() (nullable); the terminal glyph falls back to the person icon like upstream does; - chat_screen: upstream split maxMessageRetries into direct/flood limits, the terminal line now shows the bubble's maxSendAttempts; - test/screens/copy_messages_test.dart: the 1x1 PNG had a bad IDAT CRC. Its async decode failure leaked into the next test; upstream's real flutter_langdetect hides that by timing, our stub (instant init) does not, so the DM test failed ~3 of 5 runs. Replaced with a valid PNG. Checked in the CI image (Flutter 3.47.9): flutter analyze lib test clean; flutter test all green except settings_reveal_test "hides Image Messages sub-options", which fails the same way on plain upstream/dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
63907cb17d
210 files changed
+47623
-4900
No files matched your search
@@ -414,6 +414,25 @@ class MeshTheme {
|
||||
fontFamilyFallback: MeshFonts.sansFallback,
|
||||
);
|
||||
|
||||
// SettingsReveal uses surfaceContainerHighest, so inactive slider tracks and
|
||||
// drag bubbles need a distinct step toward onSurfaceVariant / inverseSurface
|
||||
// to stay legible inside both MeshCard and SettingsReveal.
|
||||
final sliderInactiveTrack = Color.lerp(
|
||||
scheme.surfaceContainerHighest,
|
||||
scheme.onSurfaceVariant,
|
||||
brightness == Brightness.dark ? 0.42 : 0.54,
|
||||
)!;
|
||||
final sliderInactiveTick = Color.lerp(
|
||||
sliderInactiveTrack,
|
||||
scheme.onSurface,
|
||||
0.7,
|
||||
)!;
|
||||
final sliderActiveTick = Color.lerp(
|
||||
scheme.primary,
|
||||
scheme.onPrimary,
|
||||
0.65,
|
||||
)!;
|
||||
|
||||
return ThemeData(
|
||||
useMaterial3: true,
|
||||
extensions: [bubble, icons, map],
|
||||
@@ -660,14 +679,19 @@ class MeshTheme {
|
||||
),
|
||||
sliderTheme: SliderThemeData(
|
||||
activeTrackColor: scheme.primary,
|
||||
inactiveTrackColor: scheme.surfaceContainerHighest,
|
||||
inactiveTrackColor: sliderInactiveTrack,
|
||||
disabledActiveTrackColor: scheme.onSurface.withValues(alpha: 0.38),
|
||||
disabledInactiveTrackColor: sliderInactiveTrack.withValues(alpha: 0.38),
|
||||
activeTickMarkColor: sliderActiveTick,
|
||||
inactiveTickMarkColor: sliderInactiveTick,
|
||||
thumbColor: scheme.primary,
|
||||
disabledThumbColor: scheme.onSurface.withValues(alpha: 0.38),
|
||||
overlayColor: scheme.primary.withValues(alpha: 0.12),
|
||||
valueIndicatorColor: scheme.surfaceContainerHighest,
|
||||
valueIndicatorColor: scheme.inverseSurface,
|
||||
valueIndicatorTextStyle: TextStyle(
|
||||
fontFamily: MeshFonts.mono,
|
||||
fontFamilyFallback: MeshFonts.monoFallback,
|
||||
color: scheme.onSurface,
|
||||
color: scheme.onInverseSurface,
|
||||
fontSize: 12,
|
||||
),
|
||||
trackHeight: 3,
|
||||
|
||||
Reference in new issue
Block a user