chore: Improve read marker design

pull/1135/merge
Krille 9 months ago
parent a2cc1bc5b1
commit 694bc488fd
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -249,7 +249,8 @@ class Message extends StatelessWidget {
return Text( return Text(
displayname, displayname,
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 11,
fontWeight: FontWeight.bold,
color: (theme.brightness == color: (theme.brightness ==
Brightness.light Brightness.light
? displayname.color ? displayname.color
@ -469,27 +470,33 @@ class Message extends StatelessWidget {
Row( Row(
children: [ children: [
Expanded( Expanded(
child: Divider(color: theme.colorScheme.primary), child: Divider(color: theme.colorScheme.secondary),
), ),
Container( Container(
decoration: BoxDecoration( margin: const EdgeInsets.symmetric(
border: Border.all( horizontal: 4,
color: theme.colorScheme.primary, vertical: 16.0,
),
color: theme.colorScheme.primaryContainer,
borderRadius: BorderRadius.circular(4),
), ),
margin: const EdgeInsets.all(8.0),
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 8, horizontal: 8,
), ),
child: Text( child: Text(
L10n.of(context).readUpToHere, L10n.of(context).readUpToHere,
style: TextStyle(color: theme.colorScheme.primary), style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 12 * AppConfig.fontSizeFactor,
color: theme.colorScheme.secondary,
shadows: [
Shadow(
color: theme.colorScheme.surface,
blurRadius: 3,
),
],
),
), ),
), ),
Expanded( Expanded(
child: Divider(color: theme.colorScheme.primary), child: Divider(color: theme.colorScheme.secondary),
), ),
], ],
), ),

@ -14,7 +14,7 @@ extension StringColor on String {
Color get color { Color get color {
_colorCache[this] ??= {}; _colorCache[this] ??= {};
return _colorCache[this]![0.35] ??= _getColorLight(0.35); return _colorCache[this]![0.3] ??= _getColorLight(0.3);
} }
Color get darkColor { Color get darkColor {

Loading…
Cancel
Save