|
|
|
@ -1,7 +1,13 @@
|
|
|
|
|
import 'package:dde_gesture_manager/constants/constants.dart';
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
var lightTheme = ThemeData.light().copyWith(
|
|
|
|
|
final _lightTheme = ThemeData(
|
|
|
|
|
brightness: Brightness.light,
|
|
|
|
|
fontFamily: kIsWeb ? null : defaultFontFamily,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
var lightTheme = _lightTheme.copyWith(
|
|
|
|
|
primaryColor: Colors.blue,
|
|
|
|
|
scaffoldBackgroundColor: Color(0xfff8f8f8),
|
|
|
|
|
backgroundColor: Color(0xffffffff),
|
|
|
|
@ -9,21 +15,23 @@ var lightTheme = ThemeData.light().copyWith(
|
|
|
|
|
color: Color(0xff414d68),
|
|
|
|
|
),
|
|
|
|
|
dividerColor: Colors.grey.shade600,
|
|
|
|
|
textTheme: ThemeData.light().textTheme.copyWith(
|
|
|
|
|
textTheme: _lightTheme.textTheme.copyWith(
|
|
|
|
|
headline1: TextStyle(
|
|
|
|
|
color: Color(0xff414d68),
|
|
|
|
|
fontFamilyFallback: kIsWeb ? null : [defaultFontFamily],
|
|
|
|
|
),
|
|
|
|
|
bodyText2: TextStyle(
|
|
|
|
|
color: Color(0xff414d68),
|
|
|
|
|
fontFamilyFallback: kIsWeb ? null : [defaultFontFamily],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
popupMenuTheme: ThemeData.dark().popupMenuTheme.copyWith(
|
|
|
|
|
popupMenuTheme: _lightTheme.popupMenuTheme.copyWith(
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(defaultBorderRadius),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
dialogBackgroundColor: Color(0xfffefefe),
|
|
|
|
|
tooltipTheme: ThemeData.dark().tooltipTheme.copyWith(
|
|
|
|
|
tooltipTheme: _lightTheme.tooltipTheme.copyWith(
|
|
|
|
|
textStyle: TextStyle(
|
|
|
|
|
color: Colors.grey.shade600,
|
|
|
|
|
),
|
|
|
|
|