mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +08:00
MarkdownToolbar: Make the header icon bolder
Ideally, we should just use the FontAwesome icons for each of these instead of relying on the normal font.
This commit is contained in:
@ -9,21 +9,24 @@ class MarkdownToolBar extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
var textTheme = Theme.of(context).textTheme;
|
||||||
|
var style = textTheme.bodyText2.copyWith(fontWeight: FontWeight.bold);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Text('H1'),
|
icon: Text('H1', style: style),
|
||||||
padding: const EdgeInsets.all(0.0),
|
padding: const EdgeInsets.all(0.0),
|
||||||
onPressed: () => _modifyCurrentLine('# '),
|
onPressed: () => _modifyCurrentLine('# '),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Text('I'),
|
icon: Text('I', style: style),
|
||||||
padding: const EdgeInsets.all(0.0),
|
padding: const EdgeInsets.all(0.0),
|
||||||
onPressed: () => _modifyCurrentWord('*'),
|
onPressed: () => _modifyCurrentWord('*'),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Text('B'),
|
icon: Text('B', style: style),
|
||||||
padding: const EdgeInsets.all(0.0),
|
padding: const EdgeInsets.all(0.0),
|
||||||
onPressed: () => _modifyCurrentWord('**'),
|
onPressed: () => _modifyCurrentWord('**'),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user