From 24d3ba375a76de1e23ce7187ac545e7c29798ae2 Mon Sep 17 00:00:00 2001 From: Subhraman Sarkar Date: Fri, 7 Mar 2025 11:45:24 +0530 Subject: [PATCH] help: use heavy font weight for emphasis instead of serif --- data/core/help.cfg | 8 ++++---- src/gui/widgets/rich_label.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/core/help.cfg b/data/core/help.cfg index dadfdb18da5..3e4cea61d7c 100644 --- a/data/core/help.cfg +++ b/data/core/help.cfg @@ -464,10 +464,10 @@ Of these categories, only leaders are built into the basic game rules. The other title= _ "Time of Day" text= _ "The time of day affects the damage of certain units as follows: -• LAWFUL units get +25% damage in daytime, and −25% damage at night. -• CHAOTIC units get +25% damage at night, and −25% in daytime. -• NEUTRAL units are unaffected by the time of day. -• LIMINAL units get +25% damage during twilight." + _ " +• LAWFUL units get +25% damage in daytime, and −25% damage at night. +• CHAOTIC units get +25% damage at night, and −25% in daytime. +• NEUTRAL units are unaffected by the time of day. +• LIMINAL units get +25% damage during twilight." + _ " The current time of day can be observed under the minimap in the status pane. For the usual day/night cycle, morning and afternoon count as day, first and second watch count as night:" + " diff --git a/src/gui/widgets/rich_label.cpp b/src/gui/widgets/rich_label.cpp index e41a325c353..11ba64fc947 100644 --- a/src/gui/widgets/rich_label.cpp +++ b/src/gui/widgets/rich_label.cpp @@ -573,7 +573,7 @@ std::pair rich_label::get_parsed_text( } else if(key == "header" || key == "h") { const auto [start, end] = add_text(*curr_item, line); - add_attribute(*curr_item, "face", start, end, "serif"); + add_attribute(*curr_item, "weight", start, end, "heavy"); add_attribute(*curr_item, "color", start, end, font::string_to_color("white").to_hex_string()); add_attribute(*curr_item, "size", start, end, std::to_string(font::SIZE_TITLE - 2));