mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-06 02:30:12 +08:00
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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(() {
|
||||
|
||||
Reference in New Issue
Block a user