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

@@ -131,7 +131,7 @@ class _MediaPageState extends State<MediaPage>
children: [
Divider(
height: 20,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
ListTile(
onTap: () async {
@@ -214,7 +214,7 @@ class _MediaPageState extends State<MediaPage>
return Theme.of(context)
.colorScheme
.primaryContainer
.withValues(alpha: 0.5);
.withOpacity(0.5);
}),
),
onPressed: () async {
@@ -302,13 +302,13 @@ class FavFolderItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withValues(alpha: 0.4),
.withOpacity(0.4),
boxShadow: [
BoxShadow(
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withValues(alpha: 0.4),
.withOpacity(0.4),
offset: const Offset(4, -12), // 阴影与容器的距离
blurRadius: 0.0, // 高斯的标准偏差与盒子的形状卷积。
spreadRadius: 0.0, // 在应用模糊之前,框应该膨胀的量。