mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-23 06:58:05 +02:00
feat(design): Warm Cinema redesign + fast-start players
Full visual overhaul from Cyber-Cinematic Glass to "Warm Cinema": warm charcoal (#0B0908), cream (#F3E9DF), ember (#D9541F). Fraunces (editorial serif) for display, Karla for body/UI. Design - app_colors: new palette, all existing token names preserved, plus posterScrim/heroScrim gradients and lift()/emberFocus() shadows - app_theme: new type scale, tighter radii, 20+ component themes - mobile_theme aligned on the same tokens - glass_container: opaque layered surfaces replace glassmorphism; adds GlassCard (hover + remote-focus states) and CinemaBackdrop - players and boot splash restyled (film-leader motif, no web fonts) Performance - remove every BackdropFilter (33 call sites): backdrop blur forced a full framebuffer read per frame per card, the main scroll jank source - bundle Fraunces/Karla as assets: google_fonts no longer fetches from fonts.gstatic.com at startup - drop the blocking hls.js CDN script from index.html; no Dart code ever used it, only the player iframes need it - self-host hls.js/mpegts.js and load them on demand, so ~213 KB of mpegts is never downloaded for HLS streams - bound image decode size on 10 sites: a 40-poster grid drops from ~240 MB to a few tens of MB of GPU memory Players (new shared engine: web/xf-player-core.js) - event-driven start instead of a 200 ms buffer poll plus a 1.5 s wait - initialLiveManifestSize 3 -> 1, liveSyncDurationCount 10 -> 2, startFragPrefetch on, testBandwidth off - MPEG-TS initial stash 512 KB -> 64 KB - adaptive escalation fast -> balanced -> safe on repeated stalls (60 s rolling window), applied live for HLS so there is no visible cut Pre-existing build breakage fixed along the way - undefined AppColors.shimmer, AppTheme.durationXs and spacing8/12/16/32 - broken relative imports in channel_card and quality_selector_widget - missing GlassCard widget and hasBorder/showShadow parameters Also resolves a leftover unmerged .claude/settings.local.json by keeping the remote version. Still broken (pre-existing, dead code, not reachable from main.dart): recommendations_provider.dart and continue_watching_widget.dart import a models/playlist.dart that no longer exists. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cb5eca7547
commit
6f0f51384a
54 files changed
+2425
-1775
No files matched your search
@@ -19,7 +19,7 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
// Header
|
||||
Text(
|
||||
'Paramètres Streaming Live TV',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.karla(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: AppColors.onSurface,
|
||||
@@ -28,7 +28,7 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'Ces paramètres s\'appliquent uniquement aux flux TV en direct.',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.karla(
|
||||
fontSize: 12,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
@@ -101,18 +101,18 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
ConnectionTimeout.long => 'Long (60s)',
|
||||
},
|
||||
),
|
||||
Divider(height: 1, color: Colors.white.withOpacity(0.1)),
|
||||
Divider(height: 1, color: AppColors.onSurface.withOpacity(0.1)),
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
'Reconnexion automatique',
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
style: GoogleFonts.karla(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'Se reconnecter en cas de coupure',
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
style: GoogleFonts.karla(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
value: settings.autoReconnect,
|
||||
activeThumbColor: Colors.blueAccent,
|
||||
activeThumbColor: AppColors.primary,
|
||||
onChanged: (v) => notifier.setAutoReconnect(v),
|
||||
),
|
||||
],
|
||||
@@ -137,18 +137,18 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
TranscodingMode.disabled => 'Désactivé (direct)',
|
||||
},
|
||||
),
|
||||
Divider(height: 1, color: Colors.white.withOpacity(0.1)),
|
||||
Divider(height: 1, color: AppColors.onSurface.withOpacity(0.1)),
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
'Préférer lecture directe',
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
style: GoogleFonts.karla(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'Utiliser le flux original si compatible',
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
style: GoogleFonts.karla(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
value: settings.preferDirectPlay,
|
||||
activeThumbColor: Colors.blueAccent,
|
||||
activeThumbColor: AppColors.primary,
|
||||
onChanged: (v) => notifier.setPreferDirectPlay(v),
|
||||
),
|
||||
],
|
||||
@@ -186,11 +186,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
'Accélération NVIDIA GPU',
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
style: GoogleFonts.karla(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'Utiliser NVENC/NVDEC pour le transcodage (requiert GPU NVIDIA)',
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
style: GoogleFonts.karla(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
value: settings.enableNvidiaGpu,
|
||||
activeThumbColor: Colors.green,
|
||||
@@ -204,20 +204,20 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.blue.withOpacity(0.1),
|
||||
color: AppColors.primaryContainer.withValues(alpha: 0.10),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(color: Colors.blue.withOpacity(0.3)),
|
||||
border: Border.all(color: AppColors.primaryContainer.withValues(alpha: 0.32)),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.info_outline, color: Colors.blue),
|
||||
const Icon(Icons.info_outline, color: AppColors.primary),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'Les changements prennent effet immédiatement pour les nouveaux flux.',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.karla(
|
||||
fontSize: 12,
|
||||
color: Colors.blue.shade700,
|
||||
color: AppColors.primary,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -236,9 +236,9 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
}) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.onSurface.withOpacity(0.05),
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.onSurface.withOpacity(0.1)),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -247,11 +247,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(icon, size: 20, color: Colors.blueAccent),
|
||||
Icon(icon, size: 20, color: AppColors.primary),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
title,
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.karla(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.onSurface,
|
||||
@@ -260,7 +260,7 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
Divider(height: 1, color: Colors.white.withOpacity(0.1)),
|
||||
Divider(height: 1, color: AppColors.onSurface.withOpacity(0.1)),
|
||||
...children,
|
||||
],
|
||||
),
|
||||
@@ -278,11 +278,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
return ListTile(
|
||||
title: Text(
|
||||
title,
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
style: GoogleFonts.karla(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
subtitle,
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
style: GoogleFonts.karla(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
trailing: DropdownButton<T>(
|
||||
value: value,
|
||||
@@ -293,12 +293,12 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
value: item,
|
||||
child: Text(
|
||||
labelBuilder(item),
|
||||
style: GoogleFonts.inter(fontSize: 13, color: AppColors.onSurface),
|
||||
style: GoogleFonts.karla(fontSize: 13, color: AppColors.onSurface),
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
onChanged: onChanged,
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
style: GoogleFonts.karla(color: AppColors.onSurface),
|
||||
iconEnabledColor: AppColors.onSurfaceVariant,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user