Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-09-12 18:12:21 +08:00
committed by GitHub
parent da17725616
commit d6bff33d29
130 changed files with 1036 additions and 834 deletions

View File

@@ -329,23 +329,24 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
child: Row(
children: [
Obx(
() => iconButton(
context: context,
tooltip: '弹幕样式',
onPressed: () {
updatePanelType(
panelType.value == PanelType.keyboard
? PanelType.emoji
: PanelType.keyboard,
);
},
bgColor: Colors.transparent,
iconSize: 24,
icon: Icons.text_format,
iconColor: panelType.value == PanelType.emoji
? themeData.colorScheme.primary
: themeData.colorScheme.onSurfaceVariant,
),
() {
final isEmoji = panelType.value == PanelType.emoji;
return iconButton(
context: context,
tooltip: '弹幕样式',
onPressed: () {
updatePanelType(
isEmoji ? PanelType.keyboard : PanelType.emoji,
);
},
bgColor: Colors.transparent,
iconSize: 24,
icon: Icons.text_format,
iconColor: isEmoji
? themeData.colorScheme.primary
: themeData.colorScheme.onSurfaceVariant,
);
},
),
const SizedBox(width: 12),
Expanded(