mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-11 04:54:20 +08:00
Monarch: Expose the themes
This commit is contained in:
@ -1,26 +1,33 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class Themes {
|
import 'package:monarch_annotations/monarch_annotations.dart';
|
||||||
static final light = ThemeData(
|
|
||||||
brightness: Brightness.light,
|
|
||||||
primaryColor: const Color(0xFF66bb6a),
|
|
||||||
primaryColorLight: const Color(0xFF98ee99),
|
|
||||||
primaryColorDark: const Color(0xFF338a3e),
|
|
||||||
accentColor: const Color(0xff6d4c41),
|
|
||||||
textSelectionTheme: const TextSelectionThemeData(
|
|
||||||
cursorColor: Color(0xFF338a3e),
|
|
||||||
selectionHandleColor: Color(0xFF66bb6a),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
static final dark = ThemeData(
|
@MonarchTheme('Light Theme', isDefault: true)
|
||||||
brightness: Brightness.dark,
|
final monarchLightTheme = ThemeData(
|
||||||
primaryColor: const Color(0xff212121),
|
brightness: Brightness.light,
|
||||||
accentColor: const Color(0xff689f38),
|
primaryColor: const Color(0xFF66bb6a),
|
||||||
toggleableActiveColor: const Color(0xFF66bb6a),
|
primaryColorLight: const Color(0xFF98ee99),
|
||||||
textSelectionTheme: const TextSelectionThemeData(
|
primaryColorDark: const Color(0xFF338a3e),
|
||||||
cursorColor: Color(0xFF66bb6a),
|
accentColor: const Color(0xff6d4c41),
|
||||||
selectionHandleColor: Color(0xFF66bb6a),
|
textSelectionTheme: const TextSelectionThemeData(
|
||||||
),
|
cursorColor: Color(0xFF338a3e),
|
||||||
);
|
selectionHandleColor: Color(0xFF66bb6a),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
@MonarchTheme('Dark Theme')
|
||||||
|
final monarchDarkTheme = ThemeData(
|
||||||
|
brightness: Brightness.dark,
|
||||||
|
primaryColor: const Color(0xff212121),
|
||||||
|
accentColor: const Color(0xff689f38),
|
||||||
|
toggleableActiveColor: const Color(0xFF66bb6a),
|
||||||
|
textSelectionTheme: const TextSelectionThemeData(
|
||||||
|
cursorColor: Color(0xFF66bb6a),
|
||||||
|
selectionHandleColor: Color(0xFF66bb6a),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
class Themes {
|
||||||
|
static final light = monarchLightTheme;
|
||||||
|
static final dark = monarchDarkTheme;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user