mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
* [Icon] Removed alpha channel from icon * [Sonarr] Fixed toast for season monitoring toggle * [Settings] Completely redesign, prepping for user configurable options * [Browsers] Ability to set which browser * [Settings/Modules] Long pressing 'Open Links In...' would open LunaSea website * [Navigation Bar] Fixed title regression * [Sliver AppBar] Defaults to collapsed, pull down to view * [Sliver AppBar] Left align title * [Settings/Calendar] Ability to configure starting day and starting size * [Settings] Added headers * [Settings] Cleaned folder structure of widgets * [Calendar] Added option to disable specific modules * [Theme] added AMOLED black theme * [Android] Build Configuration for Android (#198) * [Android] Implemented WIP android build configuration * [Android] Added splash, icons, dynamic platform-specific text * [Android] Added signing configuration, updated minimum version to Android 7.0 * [README] Updated README to reflect Android building * [README] Added stub Google Play shield * [README] Reordered shields
86 lines
3.0 KiB
Dart
86 lines
3.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lunasea/core.dart';
|
|
import 'package:lunasea/modules.dart';
|
|
|
|
class Constants {
|
|
Constants._();
|
|
//Services
|
|
static const Map SERVICE_MAP = {
|
|
'lidarr': LidarrConstants.SERVICE_MAP,
|
|
'radarr': RadarrConstants.SERVICE_MAP,
|
|
'sonarr': SonarrConstants.SERVICE_MAP,
|
|
'nzbget': {
|
|
'name': 'NZBGet',
|
|
'desc': 'Manage Usenet Downloads',
|
|
'icon': CustomIcons.nzbget,
|
|
'route': '/nzbget',
|
|
},
|
|
'sabnzbd': {
|
|
'name': 'SABnzbd',
|
|
'desc': 'Manage Usenet Downloads',
|
|
'icon': CustomIcons.sabnzbd,
|
|
'route': '/sabnzbd',
|
|
},
|
|
'search': {
|
|
'name': 'Search',
|
|
'desc': 'Search Newznab Indexers',
|
|
'icon': Icons.search,
|
|
'route': '/search',
|
|
},
|
|
'settings': {
|
|
'name': 'Settings',
|
|
'desc': 'Update Configuration',
|
|
'icon': Icons.settings,
|
|
'route': '/settings',
|
|
}
|
|
};
|
|
//Colors
|
|
static const PRIMARY_COLOR = 0xFF32323E;
|
|
static const SECONDARY_COLOR = 0xFF282834;
|
|
static const ACCENT_COLOR = 0xFF4ECCA3;
|
|
static const SPLASH_COLOR = 0xFF2EA07B;
|
|
static const LIST_COLOR_ICONS = [
|
|
Colors.blue,
|
|
Color(ACCENT_COLOR),
|
|
Colors.orange,
|
|
Colors.red,
|
|
Colors.deepPurpleAccent,
|
|
Colors.blueGrey,
|
|
];
|
|
//UI
|
|
static const UI_ELEVATION = 2.0;
|
|
static const UI_CARD_MARGIN = EdgeInsets.symmetric(horizontal: 12.0, vertical: 6.0);
|
|
static const UI_LETTER_SPACING = -0.375;
|
|
static const UI_NAVIGATION_SPEED = 250;
|
|
//General
|
|
static const EMPTY_MAP = {};
|
|
static const EMPTY_LIST = [];
|
|
static const EMPTY_STRING = '';
|
|
//Error Values
|
|
static const CONFIGURATION_INVALID = '<<INVALID_CONFIGURATION>>';
|
|
static const ENCRYPTION_FAILURE = '<<INVALID_ENCRYPTION>>';
|
|
static const NO_SERVICES_ENABLED = '<<NO_SERVICES_ENABLED>>';
|
|
static const CHECK_LOGS_MESSAGE = 'Please check the logs for more details';
|
|
//Extensions
|
|
static const BYTE_SIZES = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB'];
|
|
//URLs
|
|
static const URL_DOCUMENTATION = 'https://docs.lunasea.app';
|
|
static const URL_GITHUB = 'https://github.com/JagandeepBrar/LunaSea';
|
|
static const URL_REDDIT = 'https://www.reddit.com/r/LunaSeaApp';
|
|
static const URL_WEBSITE = 'https://www.lunasea.app';
|
|
static const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15';
|
|
//Changelog
|
|
static const EMPTY_CHANGELOG = [{
|
|
"version": "Changelog Error",
|
|
"new": ['Unable to fetch changes'],
|
|
"fixes": ['Unable to fetch changes'],
|
|
"tweaks": ['Unable to fetch changes'],
|
|
}];
|
|
//Automation
|
|
static const Map historyReasonMessages = {
|
|
'Upgrade': 'Upgraded File',
|
|
'MissingFromDisk': 'Missing From Disk',
|
|
'Manual': 'Manually Removed',
|
|
};
|
|
}
|