mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-03 01:00:14 +08:00
feat: pure black theme
Closes #254 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -557,6 +557,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
? videoDetail.stat?.view ?? '-'
|
||||
: videoItem['stat']?.view ?? '-',
|
||||
size: 'medium',
|
||||
textColor: t.colorScheme.outline,
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
statDanMu(
|
||||
@@ -566,6 +567,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
? videoDetail.stat?.danmu ?? '-'
|
||||
: videoItem['stat']?.danmu ?? '-',
|
||||
size: 'medium',
|
||||
textColor: t.colorScheme.outline,
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Text(
|
||||
|
||||
@@ -88,6 +88,7 @@ class _FavPanelState extends State<FavPanel> {
|
||||
),
|
||||
Expanded(
|
||||
child: Material(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
child: FutureBuilder(
|
||||
future: _futureBuilderFuture,
|
||||
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||
|
||||
@@ -98,6 +98,7 @@ class _GroupPanelState extends State<GroupPanel> {
|
||||
),
|
||||
Expanded(
|
||||
child: Material(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
child: FutureBuilder(
|
||||
future: _futureBuilderFuture,
|
||||
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||
|
||||
@@ -60,11 +60,9 @@ class _RelatedVideoPanelState extends State<RelatedVideoPanel>
|
||||
height: MediaQuery.of(context).padding.bottom,
|
||||
);
|
||||
} else {
|
||||
return Material(
|
||||
child: VideoCardH(
|
||||
videoItem: loadingState.response[index],
|
||||
showPubdate: true,
|
||||
),
|
||||
return VideoCardH(
|
||||
videoItem: loadingState.response[index],
|
||||
showPubdate: true,
|
||||
);
|
||||
}
|
||||
}, childCount: loadingState.response.length + 1),
|
||||
|
||||
@@ -134,10 +134,7 @@ class ReplyItem extends StatelessWidget {
|
||||
indent: 55,
|
||||
endIndent: 15,
|
||||
height: 0.3,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onInverseSurface
|
||||
.withOpacity(0.5),
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(0.08),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -160,8 +160,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
indent: 55,
|
||||
endIndent: 15,
|
||||
height: 0.3,
|
||||
color:
|
||||
Theme.of(context).colorScheme.onInverseSurface.withOpacity(0.5),
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(0.08),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
||||
@@ -1280,75 +1280,72 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Material(
|
||||
child: Row(
|
||||
children: [
|
||||
if (tabs.isEmpty)
|
||||
const Spacer()
|
||||
else
|
||||
Flexible(
|
||||
flex: tabs.length == 3 ? 2 : 1,
|
||||
child: showReply ? Obx(() => tabbar()) : tabbar(),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
if (tabs.isEmpty)
|
||||
const Spacer()
|
||||
else
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: Center(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 32,
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||
),
|
||||
onPressed: videoDetailController.showShootDanmakuSheet,
|
||||
child: Text(
|
||||
'发弹幕',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color:
|
||||
Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
flex: tabs.length == 3 ? 2 : 1,
|
||||
child: showReply ? Obx(() => tabbar()) : tabbar(),
|
||||
),
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: Center(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 32,
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||
),
|
||||
onPressed: videoDetailController.showShootDanmakuSheet,
|
||||
child: Text(
|
||||
'发弹幕',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 38,
|
||||
height: 38,
|
||||
child: Obx(
|
||||
() => IconButton(
|
||||
onPressed: () {
|
||||
videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value =
|
||||
!videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value;
|
||||
setting.put(
|
||||
SettingBoxKey.enableShowDanmaku,
|
||||
videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value);
|
||||
},
|
||||
icon: SvgPicture.asset(
|
||||
videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value
|
||||
? 'assets/images/video/danmu_open.svg'
|
||||
: 'assets/images/video/danmu_close.svg',
|
||||
// ignore: deprecated_member_use
|
||||
color: videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value
|
||||
? Theme.of(context).colorScheme.secondary
|
||||
: Theme.of(context).colorScheme.outline,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 38,
|
||||
height: 38,
|
||||
child: Obx(
|
||||
() => IconButton(
|
||||
onPressed: () {
|
||||
videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value =
|
||||
!videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value;
|
||||
setting.put(
|
||||
SettingBoxKey.enableShowDanmaku,
|
||||
videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value);
|
||||
},
|
||||
icon: SvgPicture.asset(
|
||||
videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value
|
||||
? 'assets/images/video/danmu_open.svg'
|
||||
: 'assets/images/video/danmu_close.svg',
|
||||
// ignore: deprecated_member_use
|
||||
color: videoDetailController
|
||||
.plPlayerController.isOpenDanmu.value
|
||||
? Theme.of(context).colorScheme.secondary
|
||||
: Theme.of(context).colorScheme.outline,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 14),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 14),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -1521,7 +1518,10 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
height: 1,
|
||||
indent: 12,
|
||||
endIndent: 12,
|
||||
color: Theme.of(context).dividerColor.withOpacity(0.06),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.outline
|
||||
.withOpacity(0.08),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user