|
|
|
@ -32,6 +32,23 @@ class ChatEventList extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
final theme = Theme.of(context);
|
|
|
|
|
|
|
|
|
|
const saturation = 0.85;
|
|
|
|
|
final colors = theme.brightness == Brightness.light
|
|
|
|
|
? [
|
|
|
|
|
HSLColor.fromColor(theme.colorScheme.tertiary)
|
|
|
|
|
.withSaturation(saturation)
|
|
|
|
|
.toColor(),
|
|
|
|
|
theme.colorScheme.primary,
|
|
|
|
|
]
|
|
|
|
|
: [
|
|
|
|
|
HSLColor.fromColor(theme.colorScheme.tertiaryContainer)
|
|
|
|
|
.withSaturation(saturation)
|
|
|
|
|
.toColor(),
|
|
|
|
|
theme.colorScheme.primaryContainer,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
final horizontalPadding = FluffyThemes.isColumnMode(context) ? 8.0 : 0.0;
|
|
|
|
|
|
|
|
|
|
final events = timeline.events.filterByVisibleInGui();
|
|
|
|
@ -153,6 +170,7 @@ class ChatEventList extends StatelessWidget {
|
|
|
|
|
previousEvent: i > 0 ? events[i - 1] : null,
|
|
|
|
|
wallpaperMode: hasWallpaper,
|
|
|
|
|
scrollController: controller.scrollController,
|
|
|
|
|
colors: colors,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|