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

@@ -444,7 +444,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
plPlayerController.vttSubtitlesIndex.value
? 0
: plPlayerController.vttSubtitlesIndex.value,
color: Colors.black.withValues(alpha: 0.8),
color: Colors.black.withOpacity(0.8),
itemBuilder: (BuildContext context) {
return plPlayerController.vttSubtitles
.asMap()
@@ -483,7 +483,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
plPlayerController.setPlaybackSpeed(value);
},
initialValue: plPlayerController.playbackSpeed,
color: Colors.black.withValues(alpha: 0.8),
color: Colors.black.withOpacity(0.8),
itemBuilder: (BuildContext context) {
return plPlayerController.speedList.map((double speed) {
return PopupMenuItem<double>(
@@ -1077,11 +1077,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
buffered: Duration(seconds: buffer),
total: Duration(seconds: max),
progressBarColor: colorTheme,
baseBarColor: Colors.white.withValues(alpha: 0.2),
baseBarColor: Colors.white.withOpacity(0.2),
bufferedBarColor: Theme.of(context)
.colorScheme
.primary
.withValues(alpha: 0.4),
.withOpacity(0.4),
timeLabelLocation: TimeLabelLocation.none,
thumbColor: colorTheme,
barHeight: 3.5,

View File

@@ -57,8 +57,8 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
buffered: Duration(seconds: buffer),
total: Duration(seconds: max),
progressBarColor: colorTheme,
baseBarColor: Colors.white.withValues(alpha: 0.2),
bufferedBarColor: colorTheme.withValues(alpha: 0.4),
baseBarColor: Colors.white.withOpacity(0.2),
bufferedBarColor: colorTheme.withOpacity(0.4),
timeLabelLocation: TimeLabelLocation.none,
thumbColor: colorTheme,
barHeight: 3.5,