Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-18 12:02:42 +08:00
parent 8e4824ab6f
commit 3d4aa7d5a9
13 changed files with 71 additions and 76 deletions

View File

@@ -244,18 +244,23 @@ class _SuperChatCardState extends State<SuperChatCard> {
color: bottomColor,
),
padding: const .all(8),
child: SelectableText(
item.message,
selectionColor: Colors.black26,
scrollPhysics: const NeverSelectableScrollPhysics(),
style: TextStyle(
color: ColourUtils.parseColor(item.messageFontColor),
decoration: widget.persistentSC && item.deleted
? .lineThrough
: null,
decorationThickness: 1.5,
decorationStyle: .double,
decorationColor: Colors.white,
child: TextSelectionTheme(
data: TextSelectionThemeData(
selectionHandleColor: Color.lerp(bottomColor, Colors.white, .26),
),
child: SelectableText(
item.message,
scrollPhysics: const NeverSelectableScrollPhysics(),
selectionColor: Color.lerp(bottomColor, Colors.black, .26),
style: TextStyle(
color: ColourUtils.parseColor(item.messageFontColor),
// decoration: widget.persistentSC && item.deleted
// ? .lineThrough
// : null,
// decorationThickness: 1.5,
// decorationStyle: .double,
// decorationColor: Colors.white,
),
),
),
),

View File

@@ -184,28 +184,25 @@ class _LiveHeaderControlState extends State<LiveHeaderControl>
),
),
Obx(
() {
final onlyPlayAudio = plPlayerController.onlyPlayAudio.value;
return ComBtn(
height: 30,
tooltip: '仅播放音频',
onTap: () {
plPlayerController.onlyPlayAudio.value = !onlyPlayAudio;
widget.onPlayAudio();
},
icon: onlyPlayAudio
? const Icon(
size: 18,
MdiIcons.musicCircle,
color: Colors.white,
)
: const Icon(
size: 18,
MdiIcons.musicCircleOutline,
color: Colors.white,
),
);
},
() => ComBtn(
height: 30,
tooltip: '仅播放音频',
onTap: () {
plPlayerController.onlyPlayAudio.toggle();
widget.onPlayAudio();
},
icon: plPlayerController.onlyPlayAudio.value
? const Icon(
size: 18,
MdiIcons.musicCircle,
color: Colors.white,
)
: const Icon(
size: 18,
MdiIcons.musicCircleOutline,
color: Colors.white,
),
),
),
if (PlatformUtils.isMobile)
Obx(() {