Skip to content

Commit

Permalink
update md code color
Browse files Browse the repository at this point in the history
  • Loading branch information
Luozf12345 committed Nov 30, 2023
1 parent d8a62c7 commit bc71b9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tdesign-site/src/icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ icon数量: 244
child: Column(
children: [
Container(
color: showBorder ? Colors.green : Colors.transparent,
color: showBorder ? TDTheme.of(context).brandDisabledColor : Colors.transparent,
child: Icon(iconData),
),
TDText(iconData.name)
Expand Down
8 changes: 4 additions & 4 deletions tdesign-site/src/text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import 'package:tdesign_flutter/tdesign_flutter.dart';
exampleTxt,
font: TDTheme.of(context).fontHeadlineLarge,
textColor: TDTheme.of(context).brandNormalColor,
backgroundColor: TDTheme.of(context).successHoverColor,
backgroundColor: TDTheme.of(context).brandFocusColor,
);
}</pre>

Expand Down Expand Up @@ -139,7 +139,7 @@ TDText.rich测试:
Widget _getSystemText(BuildContext context) {
return TDText(
exampleTxt,
backgroundColor: TDTheme.of(context).successHoverColor,
backgroundColor: TDTheme.of(context).brandHoverColor,
).getRawText(context: context);
}</pre>

Expand All @@ -152,11 +152,11 @@ TDText.rich测试:

<pre slot="Dart" lang="javascript">
Widget _buildVerticalCenterText(BuildContext context) {
return const TDText(
return TDText(
'中华人民共和国腾讯科技',
// font: Font(size: 100, lineHeight: 100),
forceVerticalCenter: true,
backgroundColor: Colors.orange,
backgroundColor: TDTheme.of(context).brandHoverColor,
);
}</pre>

Expand Down

0 comments on commit bc71b9d

Please sign in to comment.