summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2023-03-12 01:08:26 -0700
committerGitHub <noreply@github.com>2023-03-12 01:08:26 -0700
commit84ac57b311f2e936ebff4aa8c410c2dd2edb6887 (patch)
tree3d161197f3cbb84e281b8017f82b53fe79f88465 /lib
parent6f6d9aab531ce5fc2b7b32aee9c2bd63fcbafd00 (diff)
resolves #2402 add callout-list-marker-font-color theme key to control color of conum marker in callout list (PR #2403)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/pdf/converter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb
index 2f8913cd..15f80011 100644
--- a/lib/asciidoctor/pdf/converter.rb
+++ b/lib/asciidoctor/pdf/converter.rb
@@ -1383,9 +1383,10 @@ module Asciidoctor
@list_numerals << (index = @list_numerals.pop).next
theme_font :conum do
marker_width = rendered_width_of_string %(#{marker = conum_glyph index}x)
+ marker_font_color = @theme.callout_list_marker_font_color || @font_color
float do
bounding_box [bounds.left, cursor], width: marker_width do
- ink_prose marker, align: :center, inline_format: false, margin: 0
+ ink_prose marker, align: :center, inline_format: false, margin: 0, color: marker_font_color
end
end
end