This commit is contained in:
zoe 2022-09-02 23:47:22 +02:00
parent 62fc7a17be
commit f2405f750b
2 changed files with 39 additions and 0 deletions

36
lib/themes/gruvbox.dart Normal file
View File

@ -0,0 +1,36 @@
import 'package:flutter/material.dart';
import 'themes.dart' as themes;
themes.CustomColors themeDark = themes.CustomColors(
"gruvbox dark",
const Color.fromARGB(255, 175, 58, 3),
const ColorScheme(
brightness: Brightness.dark,
primary: Color.fromARGB(255, 211, 134, 155),
onPrimary: Color.fromARGB(255, 29, 32, 33),
secondary: Color.fromARGB(255, 184, 187, 38),
onSecondary: Color.fromARGB(255, 29, 32, 33),
error: Color.fromARGB(255, 251, 73, 52),
onError: Color.fromARGB(255, 29, 32, 33),
background: Color.fromARGB(255, 29, 32, 33),
onBackground: Color.fromARGB(255, 249, 245, 215),
surface: Color.fromARGB(255, 50, 48, 47),
onSurface: Color.fromARGB(255, 249, 245, 215),
));
themes.CustomColors themeLight = themes.CustomColors(
"gruvbox light",
const Color.fromARGB(255, 255, 190, 111),
const ColorScheme(
brightness: Brightness.light,
primary: Color.fromARGB(255, 175, 58, 3),
onPrimary: Color.fromARGB(255, 249, 245, 215),
secondary: Color.fromARGB(255, 121, 116, 14),
onSecondary: Color.fromARGB(255, 249, 245, 215),
error: Color.fromARGB(255, 255, 85, 85),
onError: Color.fromARGB(255, 249, 245, 215),
background: Color.fromARGB(255, 242, 229, 188),
onBackground: Color.fromARGB(255, 29, 32, 33),
surface: Color.fromARGB(255, 249, 245, 215),
onSurface: Color.fromARGB(255, 29, 32, 33),
));

View File

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'dracula.dart' as color_dracula;
import 'tess.dart' as color_tess;
import 'adwaita.dart' as color_adwaita;
import 'gruvbox.dart' as color_gruvbox;
// color schemes to pick from can be added here
// there is a class to create these
@ -10,6 +11,8 @@ final available = [
color_adwaita.themeDark,
color_adwaita.themeLight,
color_tess.theme,
color_gruvbox.themeDark,
color_gruvbox.themeLight,
];
ThemeData getTheme(CustomColors colors) {