From 88bbd57d62d7fa5f730026ad3db587dc647b1e15 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Tue, 5 Nov 2024 10:50:03 +0800 Subject: [PATCH] opt: live: text style --- lib/pages/dynamics/widgets/dynamic_panel.dart | 2 +- lib/pages/live_room/view.dart | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/pages/dynamics/widgets/dynamic_panel.dart b/lib/pages/dynamics/widgets/dynamic_panel.dart index 317a583f..f6bea46e 100644 --- a/lib/pages/dynamics/widgets/dynamic_panel.dart +++ b/lib/pages/dynamics/widgets/dynamic_panel.dart @@ -42,7 +42,7 @@ class DynamicPanel extends StatelessWidget { borderRadius: BorderRadius.circular(5), ), child: InkWell( - onTap: source == 'detail' && item.type == 'DYNAMIC_TYPE_DRAW' + onTap: source == 'detail' && item.type != 'DYNAMIC_TYPE_AV' ? null : () => _dynamicsController.pushDetail(item, 1), child: Column( diff --git a/lib/pages/live_room/view.dart b/lib/pages/live_room/view.dart index c49a0600..455d6358 100644 --- a/lib/pages/live_room/view.dart +++ b/lib/pages/live_room/view.dart @@ -355,6 +355,7 @@ class _LiveRoomPageState extends State { plPlayerController.isOpenDanmu.value ? Icons.subtitles_outlined : Icons.subtitles_off_outlined, + color: _color, ), ), ), @@ -363,6 +364,8 @@ class _LiveRoomPageState extends State { focusNode: _node, controller: _ctr, textInputAction: TextInputAction.send, + cursorColor: _color, + style: TextStyle(color: _color), onSubmitted: (value) { if (value.isNotEmpty) { _onSendMsg(value); @@ -372,7 +375,7 @@ class _LiveRoomPageState extends State { border: InputBorder.none, hintText: '发送弹幕', hintStyle: TextStyle( - color: Theme.of(context).colorScheme.outline, + color: Colors.white.withOpacity(0.6), ), ), ), @@ -385,7 +388,7 @@ class _LiveRoomPageState extends State { }, icon: Icon( Icons.send, - color: Colors.white, + color: _color, ), ), ], @@ -407,6 +410,8 @@ class _LiveRoomPageState extends State { } } + Color get _color => Color(0xFFEEEEEE); + void _onSendMsg(msg) async { if (!_isLogin) { SmartDialog.showToast('未登录');