|
|
|
@ -410,11 +410,11 @@ void Tooltip::wrap_lines() { |
|
|
|
void Tooltip::create_tags() { |
|
|
|
void Tooltip::create_tags() { |
|
|
|
if(!h1_tag) { |
|
|
|
if(!h1_tag) { |
|
|
|
h1_tag = buffer->create_tag(); |
|
|
|
h1_tag = buffer->create_tag(); |
|
|
|
h1_tag->property_weight() = Pango::WEIGHT_ULTRAHEAVY; |
|
|
|
h1_tag->property_weight() = Pango::WEIGHT_BOLD; |
|
|
|
h1_tag->property_underline() = Pango::UNDERLINE_SINGLE; |
|
|
|
h1_tag->property_underline() = Pango::UNDERLINE_SINGLE; |
|
|
|
|
|
|
|
|
|
|
|
h2_tag = buffer->create_tag(); |
|
|
|
h2_tag = buffer->create_tag(); |
|
|
|
h2_tag->property_weight() = Pango::WEIGHT_ULTRAHEAVY; |
|
|
|
h2_tag->property_weight() = Pango::WEIGHT_BOLD; |
|
|
|
|
|
|
|
|
|
|
|
h3_tag = buffer->create_tag(); |
|
|
|
h3_tag = buffer->create_tag(); |
|
|
|
h3_tag->property_style() = Pango::Style::STYLE_ITALIC; |
|
|
|
h3_tag->property_style() = Pango::Style::STYLE_ITALIC; |
|
|
|
@ -437,7 +437,7 @@ void Tooltip::create_tags() { |
|
|
|
code_block_tag->property_paragraph_background_rgba() = background_rgba; |
|
|
|
code_block_tag->property_paragraph_background_rgba() = background_rgba; |
|
|
|
|
|
|
|
|
|
|
|
bold_tag = buffer->create_tag(); |
|
|
|
bold_tag = buffer->create_tag(); |
|
|
|
bold_tag->property_weight() = Pango::WEIGHT_ULTRAHEAVY; |
|
|
|
bold_tag->property_weight() = Pango::WEIGHT_BOLD; |
|
|
|
|
|
|
|
|
|
|
|
italic_tag = buffer->create_tag(); |
|
|
|
italic_tag = buffer->create_tag(); |
|
|
|
italic_tag->property_style() = Pango::Style::STYLE_ITALIC; |
|
|
|
italic_tag->property_style() = Pango::Style::STYLE_ITALIC; |
|
|
|
|