mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
NEW - [Networking] Strict TLS/SSL validation is now disabled globally - [Routing] Hold the AppBar back button to pop back to the home page of the module - [Settings/Sonarr] Toggle to enable Sonarr v3 features - [Sonarr] Complete rewrite of Sonarr - [Sonarr] State is now held across module switches - [Sonarr/Overview] View tags applied to series - [Sonarr/Catalogue] (v3 only) Ability to set and update language profile - [Sonarr/Catalogue] Ability to view all, only monitored, or only unmonitored series - [Sonarr/Releases] (v3 only) Ability to interactively search for season packs - [Sonarr/Releases] Ability to view all, only approved, or only rejected releases TWEAKS - [Settings] Removed all toggles for strict TLS - [Sonarr] Many tweaks to Sonarr's design - [Sonarr/Add] (v3 only) Tapping an already-added series will take you to the series page - [Sonarr/Add] Automatically navigate to newly added series - [Sonarr/Series] Toggling monitored state of series has now been moved to the edit prompt FIXES - [Images] Images will now load for invalid/self-signed certificates - [Tautulli/Activity] Fix grey screen for music activity - [TextField] Fix TextField actions (cut, copy, paste, etc.) not showing - [Timestamps] Fix 12:xx AM being shown as 00:xx AM - Additional small bug fixes
95 lines
3.2 KiB
Dart
95 lines
3.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:lunasea/core.dart';
|
|
|
|
class LunaTheme {
|
|
LunaTheme._();
|
|
|
|
static ThemeData get darkTheme => LunaSeaDatabaseValue.THEME_AMOLED.data
|
|
? _pureBlackTheme()
|
|
: _midnightTheme();
|
|
|
|
static ThemeData _midnightTheme() {
|
|
const _textStyle = TextStyle(
|
|
color: Colors.white,
|
|
);
|
|
return ThemeData(
|
|
brightness: Brightness.dark,
|
|
canvasColor: LunaColours.primary,
|
|
primaryColor: LunaColours.secondary,
|
|
accentColor: LunaColours.accent,
|
|
highlightColor: LunaColours.secondary,
|
|
cardColor: LunaColours.secondary,
|
|
splashColor: LunaColours.splash,
|
|
dialogBackgroundColor: LunaColours.secondary,
|
|
dividerColor: LunaColours.accent.withAlpha(0),
|
|
dividerTheme: DividerThemeData(
|
|
color: LunaColours.accent,
|
|
indent: 100.0,
|
|
endIndent: 100.0,
|
|
),
|
|
iconTheme: IconThemeData(
|
|
color: Colors.white,
|
|
),
|
|
unselectedWidgetColor: Colors.white,
|
|
textTheme: TextTheme(
|
|
bodyText1: _textStyle,
|
|
bodyText2: _textStyle,
|
|
headline1: _textStyle,
|
|
headline2: _textStyle,
|
|
headline3: _textStyle,
|
|
headline4: _textStyle,
|
|
headline5: _textStyle,
|
|
headline6: _textStyle,
|
|
button: _textStyle,
|
|
caption: _textStyle,
|
|
subtitle1: _textStyle,
|
|
subtitle2: _textStyle,
|
|
overline: _textStyle,
|
|
),
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
);
|
|
}
|
|
|
|
static ThemeData _pureBlackTheme() {
|
|
const _textStyle = TextStyle(
|
|
color: Colors.white,
|
|
);
|
|
return ThemeData(
|
|
brightness: Brightness.dark,
|
|
canvasColor: Colors.black,
|
|
primaryColor: Colors.black,
|
|
accentColor: LunaColours.accent,
|
|
highlightColor: LunaColours.secondary,
|
|
cardColor: Colors.black,
|
|
splashColor: LunaColours.splash,
|
|
dialogBackgroundColor: Colors.black,
|
|
dividerColor: LunaColours.accent.withAlpha(0),
|
|
dividerTheme: DividerThemeData(
|
|
color: LunaColours.accent,
|
|
indent: 72.0,
|
|
endIndent: 72.0,
|
|
),
|
|
iconTheme: IconThemeData(
|
|
color: Colors.white,
|
|
),
|
|
unselectedWidgetColor: Colors.white,
|
|
textTheme: TextTheme(
|
|
bodyText1: _textStyle,
|
|
bodyText2: _textStyle,
|
|
headline1: _textStyle,
|
|
headline2: _textStyle,
|
|
headline3: _textStyle,
|
|
headline4: _textStyle,
|
|
headline5: _textStyle,
|
|
headline6: _textStyle,
|
|
button: _textStyle,
|
|
caption: _textStyle,
|
|
subtitle1: _textStyle,
|
|
subtitle2: _textStyle,
|
|
overline: _textStyle,
|
|
),
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
);
|
|
}
|
|
} |