Revert "mod: color alpha"

This reverts commit a7ffc3b05f.
This commit is contained in:
bggRGjQaUbCoE
2024-12-22 10:42:00 +08:00
parent fe2b4f6735
commit a01d54cd80
64 changed files with 168 additions and 210 deletions

View File

@@ -144,8 +144,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 5,
color:
Theme.of(context).colorScheme.outline.withValues(alpha: 0.8),
color: Theme.of(context).colorScheme.outline.withOpacity(0.8),
),
);
case MsgType.text:
@@ -196,7 +195,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context).withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -247,7 +246,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context).withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -262,7 +261,7 @@ class ChatItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.secondaryContainer
.withValues(alpha: 0.4),
.withOpacity(0.4),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
@@ -344,8 +343,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context)
.withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -354,8 +352,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context)
.withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -431,11 +428,11 @@ class ChatItem extends StatelessWidget {
? Theme.of(context)
.colorScheme
.onPrimary
.withValues(alpha: 0.8)
.withOpacity(0.8)
: Theme.of(context)
.colorScheme
.onSecondaryContainer
.withValues(alpha: 0.8)),
.withOpacity(0.8)),
),
item.msgStatus == 1
? Text(
@@ -474,7 +471,7 @@ class SystemNotice extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.secondaryContainer
.withValues(alpha: 0.4),
.withOpacity(0.4),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
@@ -500,10 +497,7 @@ class SystemNotice extends StatelessWidget {
.copyWith(color: Theme.of(context).colorScheme.outline),
),
Divider(
color: Theme.of(context)
.colorScheme
.primary
.withValues(alpha: 0.05),
color: Theme.of(context).colorScheme.primary.withOpacity(0.05),
),
SelectableText(
content['text'],