Skip to content

Commit

Permalink
chore: update new toggle heading icons
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Nov 14, 2024
1 parent 2eb9eca commit adcdb70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ class _TurnInfoButton extends StatelessWidget {
} else if (type == ToggleListBlockKeys.type) {
switch (level) {
case 1:
return FlowySvgs.slash_menu_icon_h1_s;
return FlowySvgs.toggle_heading1_s;
case 2:
return FlowySvgs.slash_menu_icon_h2_s;
return FlowySvgs.toggle_heading2_s;
case 3:
return FlowySvgs.slash_menu_icon_h3_s;
return FlowySvgs.toggle_heading3_s;
default:
return FlowySvgs.slash_menu_icon_toggle_s;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final toggleHeading1SlashMenuItem = SelectionMenuItem(
getName: () => LocaleKeys.document_slashMenu_name_toggleHeading1.tr(),
nameBuilder: _slashMenuItemNameBuilder,
icon: (editorState, isSelected, style) => SelectableSvgWidget(
data: FlowySvgs.slash_menu_icon_h1_s,
data: FlowySvgs.toggle_heading1_s,
isSelected: isSelected,
style: style,
),
Expand All @@ -99,7 +99,7 @@ final toggleHeading2SlashMenuItem = SelectionMenuItem(
getName: () => LocaleKeys.document_slashMenu_name_toggleHeading2.tr(),
nameBuilder: _slashMenuItemNameBuilder,
icon: (editorState, isSelected, style) => SelectableSvgWidget(
data: FlowySvgs.slash_menu_icon_h2_s,
data: FlowySvgs.toggle_heading2_s,
isSelected: isSelected,
style: style,
),
Expand All @@ -117,7 +117,7 @@ final toggleHeading3SlashMenuItem = SelectionMenuItem(
getName: () => LocaleKeys.document_slashMenu_name_toggleHeading3.tr(),
nameBuilder: _slashMenuItemNameBuilder,
icon: (editorState, isSelected, style) => SelectableSvgWidget(
data: FlowySvgs.slash_menu_icon_h3_s,
data: FlowySvgs.toggle_heading3_s,
isSelected: isSelected,
style: style,
),
Expand Down

0 comments on commit adcdb70

Please sign in to comment.