opt: color

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-14 12:25:42 +08:00
parent b898a78e62
commit bc0914e146
17 changed files with 115 additions and 61 deletions

View File

@@ -305,8 +305,9 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 12,
color: t.colorScheme.primary),
fontSize: 12,
// color: t.colorScheme.primary,
),
// semanticsLabel: "UP主${owner.name}",
),
const SizedBox(height: 0),
@@ -667,11 +668,12 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
onPressed: () => videoIntroController.actionRelationMod(context),
style: TextButton.styleFrom(
visualDensity: const VisualDensity(horizontal: -2, vertical: -3),
foregroundColor:
attr != 0 ? t.colorScheme.outline : t.colorScheme.onPrimary,
foregroundColor: attr != 0
? t.colorScheme.outline
: t.colorScheme.onSecondaryContainer,
backgroundColor: attr != 0
? t.colorScheme.onInverseSurface
: t.colorScheme.primary, // 设置按钮背景色
: t.colorScheme.secondaryContainer,
),
child: Text(
attr == 128

View File

@@ -179,9 +179,8 @@ class _FavPanelState extends State<FavPanel> {
vertical: -2,
),
foregroundColor: Theme.of(context).colorScheme.outline,
backgroundColor: Theme.of(context)
.colorScheme
.onInverseSurface, // 设置按钮背景色
backgroundColor:
Theme.of(context).colorScheme.onInverseSurface,
),
child: const Text('取消'),
),

View File

@@ -178,8 +178,7 @@ class _GroupPanelState extends State<GroupPanel> {
style: TextButton.styleFrom(
padding: const EdgeInsets.only(left: 30, right: 30),
foregroundColor: Theme.of(context).colorScheme.onPrimary,
backgroundColor:
Theme.of(context).colorScheme.primary, // 设置按钮背景色
backgroundColor: Theme.of(context).colorScheme.primary,
),
child: Text(showDefaultBtn ? '保存至默认分组' : '保存'),
),

View File

@@ -150,11 +150,19 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
child: TextButton.icon(
onPressed: () =>
_videoReplyController.queryBySort(),
icon: const Icon(Icons.sort, size: 16),
icon: Icon(
Icons.sort,
size: 16,
color: Theme.of(context).colorScheme.secondary,
),
label: Obx(
() => Text(
_videoReplyController.sortTypeLabel.value,
style: const TextStyle(fontSize: 13),
style: TextStyle(
fontSize: 13,
color:
Theme.of(context).colorScheme.secondary,
),
),
),
),

View File

@@ -373,7 +373,7 @@ class ReplyItem extends StatelessWidget {
child: Text(
'UP主觉得很赞',
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
color: Theme.of(context).colorScheme.secondary,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
fontWeight: FontWeight.normal,
),
@@ -387,7 +387,7 @@ class ReplyItem extends StatelessWidget {
Text(
'热评',
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
color: Theme.of(context).colorScheme.secondary,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize),
),
const Spacer(),
@@ -459,7 +459,7 @@ class ReplyItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.85),
.withOpacity(0.8),
height: 1.6),
overflow: TextOverflow.ellipsis,
maxLines: 2,
@@ -471,7 +471,7 @@ class ReplyItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.85),
.withOpacity(0.8),
),
recognizer: TapGestureRecognizer()
..onTap = () {
@@ -541,14 +541,14 @@ class ReplyItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.85))),
.withOpacity(0.8))),
TextSpan(
text: replyControl!.entryText!,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.85),
.withOpacity(0.8),
),
)
],

View File

@@ -371,7 +371,7 @@ class ReplyItemGrpc extends StatelessWidget {
child: Text(
'UP主觉得很赞',
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
color: Theme.of(context).colorScheme.secondary,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
fontWeight: FontWeight.normal,
),
@@ -387,7 +387,7 @@ class ReplyItemGrpc extends StatelessWidget {
Text(
'热评',
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
color: Theme.of(context).colorScheme.secondary,
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize),
),
if (replyLevel == '2' &&
@@ -475,7 +475,7 @@ class ReplyItemGrpc extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.85),
.withOpacity(0.8),
height: 1.6),
overflow: TextOverflow.ellipsis,
maxLines: 2,
@@ -487,7 +487,7 @@ class ReplyItemGrpc extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.85),
.withOpacity(0.8),
),
recognizer: TapGestureRecognizer()
..onTap = () {
@@ -560,14 +560,14 @@ class ReplyItemGrpc extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.85))),
.withOpacity(0.8))),
TextSpan(
text: replyItem.replyControl.subReplyEntryText,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.85),
.withOpacity(0.8),
),
)
],

View File

@@ -248,14 +248,21 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
height: 35,
child: TextButton.icon(
onPressed: () => _videoReplyReplyController.queryBySort(),
icon: const Icon(Icons.sort, size: 16),
icon: Icon(
Icons.sort,
size: 16,
color: Theme.of(context).colorScheme.secondary,
),
label: Obx(
() => Text(
_videoReplyReplyController.mode.value ==
Mode.MAIN_LIST_HOT
? '按热度'
: '按时间',
style: const TextStyle(fontSize: 13),
style: TextStyle(
fontSize: 13,
color: Theme.of(context).colorScheme.secondary,
),
),
),
),

View File

@@ -1201,7 +1201,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
// ignore: deprecated_member_use
color: videoDetailController
.plPlayerController.isOpenDanmu.value
? Theme.of(context).colorScheme.primary
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.outline,
),
),