feat: add IPTV data models and application color palette

This commit is contained in:
Michael committed 2025-12-06 23:51:43 +01:00
1 parent e823086f58
commit 2d6def1f91
4 files changed
+76 -25

No files matched your search

+12 -2
View File
@@ -159,15 +159,25 @@ class EpgEntry {
return EpgEntry(
id: json['id']?.toString() ?? '',
epgId: json['epg_id']?.toString() ?? '',
title: json['title']?.toString() ?? '',
title: _decodeBase64(json['title']?.toString()),
lang: json['lang']?.toString() ?? '',
start: json['start']?.toString() ?? '',
end: json['end']?.toString() ?? '',
description: json['description']?.toString() ?? '',
description: _decodeBase64(json['description']?.toString()),
channelId: json['channel_id']?.toString() ?? '',
);
}
static String _decodeBase64(String? text) {
if (text == null || text.isEmpty) return '';
try {
final bytes = base64Decode(text);
return utf8.decode(bytes, allowMalformed: true);
} catch (_) {
return text;
}
}
/// Calculate progress percentage for current program
double getProgress() {
try {
+2 -2
View File
@@ -15,10 +15,10 @@ class AppColors {
static const Color background = Color(0xFF000000);
/// Very deep grey for surfaces that need to be distinct but subtle (Apple Dark Grey)
static const Color surface = Color(0xFF1C1C1E);
static const Color surface = Color(0xFF2C2C2E);
/// Slightly lighter grey for secondary surfaces or hover states
static const Color surfaceVariant = Color(0xFF2C2C2E);
static const Color surfaceVariant = Color(0xFF3A3A3C);
/// Focused element background (often white in tvOS for text, or bright accent)
static const Color focusColor = Color(0xFFFFFFFF);