refactor: palette

This commit is contained in:
Rongjian Zhang
2020-01-27 15:11:51 +08:00
parent cc7a2f7075
commit da16197bb0
35 changed files with 120 additions and 149 deletions

View File

@@ -66,7 +66,7 @@ TextSpan createLinkSpan(
return TextSpan(
text: text,
style: TextStyle(
color: theme.paletteOf(context).primary,
color: theme.palette.primary,
fontWeight: FontWeight.w600,
),
recognizer: TapGestureRecognizer()
@@ -160,7 +160,7 @@ class PrimerBranchName extends StatelessWidget {
child: Text(
name,
style: TextStyle(
color: theme.paletteOf(context).primary,
color: theme.palette.primary,
fontSize: 14,
height: 1,
fontFamily: CommonStyle.monospace,