mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: color
This commit is contained in:
@@ -132,7 +132,6 @@ class VideoCardV extends StatelessWidget {
|
|||||||
label: Utils.videoItemSemantics(videoItem),
|
label: Utils.videoItemSemantics(videoItem),
|
||||||
excludeSemantics: true,
|
excludeSemantics: true,
|
||||||
child: Card(
|
child: Card(
|
||||||
elevation: 0,
|
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
|
|||||||
@@ -180,6 +180,20 @@ class MyApp extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
popupMenuTheme: PopupMenuThemeData(
|
||||||
|
surfaceTintColor: lightColorScheme.surfaceTint,
|
||||||
|
),
|
||||||
|
cardTheme: CardTheme(
|
||||||
|
elevation: 2,
|
||||||
|
surfaceTintColor: lightColorScheme.surfaceTint,
|
||||||
|
shadowColor: Colors.transparent,
|
||||||
|
),
|
||||||
|
dialogTheme: DialogTheme(
|
||||||
|
surfaceTintColor: lightColorScheme.surfaceTint,
|
||||||
|
),
|
||||||
|
progressIndicatorTheme: ProgressIndicatorThemeData(
|
||||||
|
refreshBackgroundColor: lightColorScheme.onSecondary,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
darkTheme: ThemeData(
|
darkTheme: ThemeData(
|
||||||
// fontFamily: 'HarmonyOS',
|
// fontFamily: 'HarmonyOS',
|
||||||
@@ -198,6 +212,20 @@ class MyApp extends StatelessWidget {
|
|||||||
contentTextStyle: TextStyle(color: darkColorScheme.secondary),
|
contentTextStyle: TextStyle(color: darkColorScheme.secondary),
|
||||||
elevation: 20,
|
elevation: 20,
|
||||||
),
|
),
|
||||||
|
popupMenuTheme: PopupMenuThemeData(
|
||||||
|
surfaceTintColor: darkColorScheme.surfaceTint,
|
||||||
|
),
|
||||||
|
cardTheme: CardTheme(
|
||||||
|
elevation: 2,
|
||||||
|
surfaceTintColor: darkColorScheme.surfaceTint,
|
||||||
|
shadowColor: Colors.transparent,
|
||||||
|
),
|
||||||
|
dialogTheme: DialogTheme(
|
||||||
|
surfaceTintColor: darkColorScheme.surfaceTint,
|
||||||
|
),
|
||||||
|
progressIndicatorTheme: ProgressIndicatorThemeData(
|
||||||
|
refreshBackgroundColor: darkColorScheme.onSecondary,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
localizationsDelegates: const [
|
localizationsDelegates: const [
|
||||||
GlobalCupertinoLocalizations.delegate,
|
GlobalCupertinoLocalizations.delegate,
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ class BangumiCardV extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
String heroTag = Utils.makeHeroTag(bangumiItem.mediaId);
|
String heroTag = Utils.makeHeroTag(bangumiItem.mediaId);
|
||||||
return Card(
|
return Card(
|
||||||
elevation: 0,
|
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ class LiveCardV extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
String heroTag = Utils.makeHeroTag(liveItem.roomId);
|
String heroTag = Utils.makeHeroTag(liveItem.roomId);
|
||||||
return Card(
|
return Card(
|
||||||
elevation: 0,
|
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
@@ -60,18 +59,18 @@ class LiveCardV extends StatelessWidget {
|
|||||||
height: maxHeight,
|
height: maxHeight,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
child: AnimatedOpacity(
|
child: AnimatedOpacity(
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
child: VideoStat(
|
child: VideoStat(
|
||||||
liveItem: liveItem,
|
liveItem: liveItem,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
@@ -88,9 +87,7 @@ class LiveCardV extends StatelessWidget {
|
|||||||
|
|
||||||
class LiveContent extends StatelessWidget {
|
class LiveContent extends StatelessWidget {
|
||||||
final dynamic liveItem;
|
final dynamic liveItem;
|
||||||
const LiveContent(
|
const LiveContent({Key? key, required this.liveItem}) : super(key: key);
|
||||||
{Key? key, required this.liveItem})
|
|
||||||
: super(key: key);
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Expanded(
|
return Expanded(
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
|
|||||||
onChanged: (dynamic val) async {
|
onChanged: (dynamic val) async {
|
||||||
ctr.type.value = 0;
|
ctr.type.value = 0;
|
||||||
ctr.setting.put(SettingBoxKey.dynamicColor, true);
|
ctr.setting.put(SettingBoxKey.dynamicColor, true);
|
||||||
|
Get.forceAppUpdate();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user