mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-30 23:29:47 +08:00
opt desktop pip
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -2567,6 +2567,33 @@ class HeaderControlState extends State<HeaderControl>
|
||||
title,
|
||||
// show current datetime
|
||||
...?timeBatteryWidgets,
|
||||
if (Utils.isDesktop && !plPlayerController.isDesktopPip)
|
||||
Obx(() {
|
||||
final isAlwaysOnTop = plPlayerController.isAlwaysOnTop.value;
|
||||
return SizedBox(
|
||||
width: 42,
|
||||
height: 34,
|
||||
child: IconButton(
|
||||
tooltip: '${isAlwaysOnTop ? '取消' : ''}置顶',
|
||||
style: const ButtonStyle(
|
||||
padding: WidgetStatePropertyAll(EdgeInsets.zero),
|
||||
),
|
||||
onPressed: () =>
|
||||
plPlayerController.setAlwaysOnTop(!isAlwaysOnTop),
|
||||
icon: isAlwaysOnTop
|
||||
? const Icon(
|
||||
size: 19,
|
||||
Icons.push_pin,
|
||||
color: Colors.white,
|
||||
)
|
||||
: const Icon(
|
||||
size: 19,
|
||||
Icons.push_pin_outlined,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
if (!isFileSource) ...[
|
||||
if (!isFSOrPip) ...[
|
||||
if (videoDetailCtr.isUgc)
|
||||
|
||||
Reference in New Issue
Block a user