Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-12 20:56:19 +08:00
parent f6ca007815
commit 510bfe01be
34 changed files with 154 additions and 189 deletions

View File

@@ -334,16 +334,14 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
() {
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,
icon: const Icon(Icons.text_format),
iconColor: isEmoji
? themeData.colorScheme.primary
: themeData.colorScheme.onSurfaceVariant,
@@ -393,30 +391,26 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
Obx(
() => enablePublish.value
? iconButton(
context: context,
bgColor: Colors.transparent,
iconSize: 22,
iconColor: themeData.colorScheme.onSurfaceVariant,
onPressed: () {
editController.clear();
enablePublish.value = false;
},
icon: Icons.clear,
icon: const Icon(Icons.clear),
)
: const SizedBox.shrink(),
),
const SizedBox(width: 12),
Obx(
() => iconButton(
context: context,
tooltip: '发送',
bgColor: Colors.transparent,
iconSize: 22,
iconColor: enablePublish.value
? themeData.colorScheme.primary
: themeData.colorScheme.outline,
onPressed: enablePublish.value ? onPublish : null,
icon: Icons.send,
icon: const Icon(Icons.send),
),
),
],