mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 20:52:32 +00:00
NEW - [Sonarr/Queue] Check and update the queue in the background every 60 seconds - [Sonarr/Queue] Ability to view and manage your queue - [Sonarr/Queue] Ability to delete an item in the queue - [Sonarr/Sorting] Ability to set the initial sorting direction alongside the sorting type for series and releases TWEAKS - [Radarr] Use Radarr v3 icon across the UI - [Settings/Dialogs] Small tweaks and additional notes for entering hosts and passwords - [Settings/Host Dialog] Add validator on host to ensure user adds http:// or https:// FIXES - [UI/Checkbox] Fix overly vibrant checkbox background - [Sonarr/Add] Fix possible grey screen when adding a show with no seasons yet - [Flutter] Upgraded Flutter & Packages
97 lines
3.3 KiB
Dart
97 lines
3.3 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),
|
|
toggleableActiveColor: LunaColours.accent,
|
|
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),
|
|
toggleableActiveColor: LunaColours.accent,
|
|
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,
|
|
);
|
|
}
|
|
} |