mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 09:30:46 +00:00
help: use heavy font weight for emphasis instead of serif
This commit is contained in:
parent
6929ace250
commit
24d3ba375a
|
@ -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:
|
||||
|
||||
• <span face='Serif' size='15'>LAWFUL</span> units get +25% damage in daytime, and −25% damage at night.
|
||||
• <span face='Serif' size='15'>CHAOTIC</span> units get +25% damage at night, and −25% in daytime.
|
||||
• <span face='Serif' size='15'>NEUTRAL</span> units are unaffected by the time of day.
|
||||
• <span face='Serif' size='15'>LIMINAL</span> units get +25% damage during twilight." + _ "
|
||||
• <span weight='heavy' size='15'>LAWFUL</span> units get +25% damage in daytime, and −25% damage at night.
|
||||
• <span weight='heavy' size='15'>CHAOTIC</span> units get +25% damage at night, and −25% in daytime.
|
||||
• <span weight='heavy' size='15'>NEUTRAL</span> units are unaffected by the time of day.
|
||||
• <span weight='heavy' size='15'>LIMINAL</span> 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:" +
|
||||
"
|
||||
|
|
|
@ -573,7 +573,7 @@ std::pair<config, point> 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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user