Browse Source

Changed bold tags from WEIGHT_ULTRAHEAVY to WEIGHT_BOLD

master
eidheim 2 months ago
parent
commit
811df7c34d
  1. 2
      src/source.cpp
  2. 2
      src/terminal.cpp
  3. 6
      src/tooltips.cpp

2
src/source.cpp

@ -157,7 +157,7 @@ Source::View::View(const boost::filesystem::path &file_path, const Glib::RefPtr<
views.emplace(this); views.emplace(this);
similar_symbol_tag = get_buffer()->create_tag(); similar_symbol_tag = get_buffer()->create_tag();
similar_symbol_tag->property_weight() = Pango::WEIGHT_ULTRAHEAVY; similar_symbol_tag->property_weight() = Pango::WEIGHT_BOLD;
similar_symbol_tag->property_background_rgba() = Gdk::RGBA("rgba(255, 255, 255, 0.075)"); similar_symbol_tag->property_background_rgba() = Gdk::RGBA("rgba(255, 255, 255, 0.075)");
clickable_tag = get_buffer()->create_tag(); clickable_tag = get_buffer()->create_tag();
clickable_tag->property_underline() = Pango::Underline::UNDERLINE_SINGLE; clickable_tag->property_underline() = Pango::Underline::UNDERLINE_SINGLE;

2
src/terminal.cpp

@ -16,7 +16,7 @@ Terminal::Terminal() : Source::CommonView() {
set_editable(false); set_editable(false);
bold_tag = get_buffer()->create_tag(); bold_tag = get_buffer()->create_tag();
bold_tag->property_weight() = Pango::WEIGHT_ULTRAHEAVY; bold_tag->property_weight() = Pango::WEIGHT_BOLD;
red_tag = get_buffer()->create_tag(); red_tag = get_buffer()->create_tag();
green_tag = get_buffer()->create_tag(); green_tag = get_buffer()->create_tag();

6
src/tooltips.cpp

@ -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;

Loading…
Cancel
Save