blob: e66451158f6b7b4769de42edbf887d110987ebce [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'dart:ui' show Color;
import 'package:flutter/material.dart';
class Text {
static final TextStyle titleStyle = new TextStyle(fontSize: 18.0);
static final TextStyle subtitleStyle =
new TextStyle(fontSize: 12.0, color: secondaryTextColor);
static final TextStyle liveNow =
new TextStyle(fontSize: 12.0, color: theme.accentColor);
static final TextStyle error = new TextStyle(color: errorColor);
static final TextStyle hugeStyle = new TextStyle(fontSize: 32.0);
static final TextStyle hugeRedStyle =
new TextStyle(fontSize: 32.0, color: errorColor);
static final TextStyle largeStyle = new TextStyle(fontSize: 24.0);
static final TextStyle largeRedStyle =
new TextStyle(fontSize: 24.0, color: errorColor);
static final TextStyle splash =
new TextStyle(fontSize: 16.0, color: Colors.white);
}
class Size {
static const double splashLogo = 75.0;
static const double settingsHeight = 125.0;
static const double settingsWidth = 175.0;
}
class Spacing {
static final EdgeInsets smallPaddingSide =
new EdgeInsets.symmetric(horizontal: 5.0);
static final EdgeInsets smallPadding = new EdgeInsets.all(5.0);
static final EdgeInsets normalPadding = new EdgeInsets.all(10.0);
}
class Box {
static final BoxDecoration liveNow = new BoxDecoration(
border: new Border.all(color: theme.accentColor), borderRadius: 2.0);
static final BoxDecoration liveBackground =
new BoxDecoration(backgroundColor: theme.accentColor);
static final BoxDecoration background =
new BoxDecoration(backgroundColor: theme.primaryColor);
static final BoxDecoration brightBackground =
new BoxDecoration(backgroundColor: Colors.blueGrey[100]);
static final BoxDecoration errorBackground =
new BoxDecoration(backgroundColor: errorColor);
static final BoxDecoration border = new BoxDecoration(
border: new Border.all(color: theme.primaryColor), borderRadius: 2.0);
static final BoxDecoration borderInactive = new BoxDecoration(
border: new Border.all(color: Colors.grey[300]), borderRadius: 2.0);
}
Color secondaryTextColor = Colors.grey[500];
Color errorColor = Colors.red[500];
Color transparentColor = const Color(0x00000000);
ThemeData theme = new ThemeData(
primarySwatch: Colors.blueGrey, accentColor: Colors.orangeAccent[700]);