-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Ubuntu Butterfly variant (#220)
Now that yaru_colors.dart has the Ubuntu Butterfly Pink, we can have the variant in yaru.dart
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:yaru_colors/yaru_colors.dart'; | ||
import 'package:yaru/src/themes/common_themes.dart'; | ||
|
||
const _primaryColor = YaruColors.ubuntuButterflyPink; | ||
|
||
final _lightColorScheme = ColorScheme.fromSwatch( | ||
primarySwatch: _primaryColor, | ||
primaryColorDark: YaruColors.coolGrey, | ||
accentColor: _primaryColor, | ||
cardColor: Colors.white, | ||
backgroundColor: YaruColors.porcelain, | ||
errorColor: YaruColors.error, | ||
brightness: Brightness.light, | ||
); | ||
|
||
final yaruUbuntuButterflyLight = createYaruLightTheme( | ||
colorScheme: _lightColorScheme, | ||
primaryColor: _primaryColor, | ||
); | ||
|
||
final _darkColorScheme = ColorScheme.fromSwatch( | ||
primarySwatch: _primaryColor, | ||
primaryColorDark: YaruColors.coolGrey, | ||
accentColor: _primaryColor, | ||
cardColor: YaruColors.jet, | ||
backgroundColor: YaruColors.jet, | ||
errorColor: YaruColors.error, | ||
brightness: Brightness.dark, | ||
); | ||
|
||
final yaruUbuntuButterflyDark = createYaruDarkTheme( | ||
colorScheme: _darkColorScheme, | ||
primaryColor: _primaryColor, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters