Skip to content

Commit

Permalink
[SuperEditor] Add list item customization via stylesheet (Resolves #1912
Browse files Browse the repository at this point in the history
) (#2017)
  • Loading branch information
angelosilvestre authored and web-flow committed May 22, 2024
1 parent 7082b08 commit 3903673
Show file tree
Hide file tree
Showing 10 changed files with 446 additions and 47 deletions.
15 changes: 15 additions & 0 deletions super_editor/lib/src/core/styles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,19 @@ class Styles {

/// Applies a [AttributionStyleAdjuster] to a text node.
static const String inlineTextStyler = 'inlineTextStyler';

/// Applies a [Color] to the dot of an unordered list item.
static const String dotColor = 'dotColor';

/// Applies a [BoxShape] to the dot of an unordered list item.
static const String dotShape = 'dotShape';

/// Applies a [Size] to the dot of an unordered list item.
///
/// This is a [Size] instead of a radius because the dot can be rendered
/// as a rectangle.
static const String dotSize = 'dotSize';

/// Applies a [OrderedListNumeralStyle] to an ordered list item.
static const String listNumeralStyle = 'listNumeralStyle';
}

0 comments on commit 3903673

Please sign in to comment.