mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
opt dyn panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -37,6 +37,7 @@ Widget livePanelSub(
|
|||||||
width: width,
|
width: width,
|
||||||
height: width / StyleString.aspectRatio,
|
height: width / StyleString.aspectRatio,
|
||||||
src: content.cover,
|
src: content.cover,
|
||||||
|
quality: 40,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
PBadge(
|
PBadge(
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ Widget liveRcmdPanel(
|
|||||||
width: width,
|
width: width,
|
||||||
height: width / StyleString.aspectRatio,
|
height: width / StyleString.aspectRatio,
|
||||||
src: liveRcmd.cover,
|
src: liveRcmd.cover,
|
||||||
|
quality: 40,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
PBadge(
|
PBadge(
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ Widget videoSeasonWidget(
|
|||||||
width: width,
|
width: width,
|
||||||
height: width / StyleString.aspectRatio,
|
height: width / StyleString.aspectRatio,
|
||||||
src: itemContent.cover,
|
src: itemContent.cover,
|
||||||
|
quality: 40,
|
||||||
),
|
),
|
||||||
if (itemContent.badge?.text != null)
|
if (itemContent.badge?.text != null)
|
||||||
PBadge(
|
PBadge(
|
||||||
@@ -111,10 +112,12 @@ Widget videoSeasonWidget(
|
|||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
if (itemContent.durationText != null) ...[
|
if (itemContent.durationText != null) ...[
|
||||||
Text(
|
DecoratedBox(
|
||||||
itemContent.durationText!,
|
decoration: const BoxDecoration(
|
||||||
semanticsLabel:
|
color: Colors.black45,
|
||||||
'时长${Utils.durationReadFormat(itemContent.durationText!)}',
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||||
|
),
|
||||||
|
child: Text(' ${itemContent.durationText} '),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -392,8 +392,7 @@ class LoginPageController extends GetxController
|
|||||||
onPressed: Get.back,
|
onPressed: Get.back,
|
||||||
child: Text(
|
child: Text(
|
||||||
"取消",
|
"取消",
|
||||||
style: TextStyle(
|
style: TextStyle(color: Get.theme.colorScheme.outline),
|
||||||
color: Theme.of(Get.context!).colorScheme.outline),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ List<SettingsModel> get styleSettings => [
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${GStorage.picQuality}%',
|
'${GStorage.picQuality}%',
|
||||||
style: Theme.of(Get.context!).textTheme.titleSmall,
|
style: Get.theme.textTheme.titleSmall,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -496,7 +496,7 @@ List<SettingsModel> get styleSettings => [
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${GStorage.previewQ}%',
|
'${GStorage.previewQ}%',
|
||||||
style: Theme.of(Get.context!).textTheme.titleSmall,
|
style: Get.theme.textTheme.titleSmall,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -528,7 +528,7 @@ List<SettingsModel> get styleSettings => [
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
GStorage.toastOpacity.toStringAsFixed(1),
|
GStorage.toastOpacity.toStringAsFixed(1),
|
||||||
style: Theme.of(Get.context!).textTheme.titleSmall,
|
style: Get.theme.textTheme.titleSmall,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -569,7 +569,7 @@ List<SettingsModel> get styleSettings => [
|
|||||||
setKey: SettingBoxKey.isPureBlackTheme,
|
setKey: SettingBoxKey.isPureBlackTheme,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
if (Theme.of(Get.context!).brightness == Brightness.dark ||
|
if (Get.theme.brightness == Brightness.dark ||
|
||||||
GStorage.darkVideoPage) {
|
GStorage.darkVideoPage) {
|
||||||
Get.forceAppUpdate();
|
Get.forceAppUpdate();
|
||||||
}
|
}
|
||||||
@@ -1657,7 +1657,7 @@ List<SettingsModel> get extraSettings => [
|
|||||||
setKey: SettingBoxKey.replyLengthLimit,
|
setKey: SettingBoxKey.replyLengthLimit,
|
||||||
getTrailing: () => Text(
|
getTrailing: () => Text(
|
||||||
'${GlobalData().replyLengthLimit}行',
|
'${GlobalData().replyLengthLimit}行',
|
||||||
style: Theme.of(Get.context!).textTheme.titleSmall,
|
style: Get.theme.textTheme.titleSmall,
|
||||||
),
|
),
|
||||||
onTap: (setState) {
|
onTap: (setState) {
|
||||||
String replyLengthLimit = GlobalData().replyLengthLimit.toString();
|
String replyLengthLimit = GlobalData().replyLengthLimit.toString();
|
||||||
@@ -1715,7 +1715,7 @@ List<SettingsModel> get extraSettings => [
|
|||||||
leading: const Icon(Icons.subtitles_outlined),
|
leading: const Icon(Icons.subtitles_outlined),
|
||||||
getTrailing: () => Text(
|
getTrailing: () => Text(
|
||||||
GStorage.danmakuLineHeight.toString(),
|
GStorage.danmakuLineHeight.toString(),
|
||||||
style: Theme.of(Get.context!).textTheme.titleSmall,
|
style: Get.theme.textTheme.titleSmall,
|
||||||
),
|
),
|
||||||
onTap: (setState) {
|
onTap: (setState) {
|
||||||
String danmakuLineHeight = GStorage.danmakuLineHeight.toString();
|
String danmakuLineHeight = GStorage.danmakuLineHeight.toString();
|
||||||
|
|||||||
@@ -842,6 +842,7 @@ class VideoDetailController extends GetxController
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget buildItem(dynamic item, Animation<double> animation) {
|
Widget buildItem(dynamic item, Animation<double> animation) {
|
||||||
|
final theme = Get.theme;
|
||||||
return Align(
|
return Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: SlideTransition(
|
child: SlideTransition(
|
||||||
@@ -858,12 +859,9 @@ class VideoDetailController extends GetxController
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: SearchText(
|
child: SearchText(
|
||||||
bgColor: Theme.of(Get.context!)
|
bgColor:
|
||||||
.colorScheme
|
theme.colorScheme.secondaryContainer.withValues(alpha: 0.8),
|
||||||
.secondaryContainer
|
textColor: theme.colorScheme.onSecondaryContainer,
|
||||||
.withValues(alpha: 0.8),
|
|
||||||
textColor:
|
|
||||||
Theme.of(Get.context!).colorScheme.onSecondaryContainer,
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
text: item is SegmentModel
|
text: item is SegmentModel
|
||||||
|
|||||||
Reference in New Issue
Block a user