1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 15:06:06 +00:00

Localisations

This commit is contained in:
Yan Maniez 2020-03-05 16:50:31 +01:00
parent 512adf99d8
commit bc8bb68a28
15 changed files with 1002 additions and 73 deletions

View file

@ -1,6 +1,17 @@
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
const Color colorHDRed = Color(0xFF9B1C47);
const Color colorHDBlue = Color(0xFF5B61FF);
const Color colorHDGrey = Color(0xFF563F5A);
const Color colorHDMidGrey = Color(0xFF6F5B73);
const Color colorHDLightGrey = Color(0xFF7C7B7B);
const Color colorHDLightBlack = Color(0xFF3A213C);
const Color colorHDBackMidGrey = Color(0xFFB5AAB9);
const Color colorHDBackLightGrey = Color(0xFFEDEDED);
const Color colorHDWhite = Color(0xFFFFFFFF);
const Color colorHDBlack = Color(0xFF000000);
ThemeData mainTheme() {
return ThemeData(
primarySwatch: Colors.deepOrange,
@ -15,21 +26,53 @@ ThemeData mainTheme() {
fontFamily: 'Cinzel')),
),
brightness: Brightness.light,
primaryColor: Colors.lightBlue[800],
accentColor: Colors.cyan[600],
primaryColor: colorHDBlack,
accentColor: colorHDRed,
fontFamily: 'LinuxLibertine',
textTheme: TextTheme(
// p
body1: TextStyle(
fontSize: 15.0,
color: Colors.black,
fontFamily: 'LinuxLibertine',
),
// h1
headline: TextStyle(
fontSize: 28.0, fontWeight: FontWeight.bold, fontFamily: 'Cinzel'),
title: TextStyle(fontSize: 22.0, fontStyle: FontStyle.normal),
body1: TextStyle(fontSize: 16.0),
fontSize: 30.0,
color: colorHDRed,
fontWeight: FontWeight.bold,
fontFamily: 'Cinzel-Bold',
),
// h2
title: TextStyle(
fontSize: 25.0,
color: Colors.black,
fontWeight: FontWeight.bold,
fontFamily: 'Cinzel-Regular',
),
// h3
subhead: TextStyle(
fontSize: 20.0,
color: Colors.black,
fontWeight: FontWeight.bold,
fontFamily: 'Cinzel-Regular',
),
// h4, h5, h6
body2: TextStyle(
fontSize: 18.0,
color: Colors.black,
fontWeight: FontWeight.bold,
fontFamily: 'Cinzel-Regular',
),
),
);
}
MarkdownStyleSheet mainMarkdownStyleSheet(BuildContext context) {
return MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
a: const TextStyle(color: colorHDBlue),
tableColumnWidth: IntrinsicColumnWidth(),
tableCellsPadding: EdgeInsets.all(0.2),
tableCellsPadding: EdgeInsets.all(1.0),
tableHeadAlign: TextAlign.center,
);
}