[PR #6476] [MERGED] Lore tooltip harness: a line's own component styles #6901

Closed
opened 2026-11-03 06:28:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6476
Author: @MSedgeMC
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/lore-tooltip-styles


📝 Commits (1)

  • 5937b56 Lore tooltip harness: a line's own component styles

📊 Changes

1 file changed (+10 additions, -1 deletions)

View changed files

📝 tools/test_lore_tooltip_parity.py (+10 -1)

📄 Description

Vanilla's ItemLore.addToTooltip merges dark purple italic into each line as a parent style, so a line's own component styles win over it: an explicit italic:0b on a line with no text of its own reaches the children that set no italic, plain-string children take the line's styles, and a packed #rrggbb colour overrides dark purple.

Horizon is not wrong here: item_tooltip::lore_texts answers all three the same way as the pinned 26.3 client, and the harness had no case pinning them.

Proven: python3 tools/parity.py lore_tooltip on the build VM — PASS lore_tooltip 293s, 10 of 10 cases identical to the pinned client, 10 output lines compared.

Not proven: everything outside the ten lore stacks, in particular the drawing side of a tooltip (padding, wrapping, the colour a line is drawn in) and lore that arrives over the wire from a server.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6476 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lore-tooltip-styles` --- ### 📝 Commits (1) - [`5937b56`](https://github.com/horizon-rust/horizon/commit/5937b56a66963e1a37e7b2866ac39ae82f204a25) Lore tooltip harness: a line's own component styles ### 📊 Changes **1 file changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_lore_tooltip_parity.py` (+10 -1) </details> ### 📄 Description Vanilla's `ItemLore.addToTooltip` merges dark purple italic into each line as a parent style, so a line's own component styles win over it: an explicit `italic:0b` on a line with no text of its own reaches the children that set no italic, plain-string children take the line's styles, and a packed `#rrggbb` colour overrides dark purple. Horizon is not wrong here: `item_tooltip::lore_texts` answers all three the same way as the pinned 26.3 client, and the harness had no case pinning them. **Proven:** `python3 tools/parity.py lore_tooltip` on the build VM — `PASS lore_tooltip 293s`, 10 of 10 cases identical to the pinned client, 10 output lines compared. **Not proven:** everything outside the ten lore stacks, in particular the drawing side of a tooltip (padding, wrapping, the colour a line is drawn in) and lore that arrives over the wire from a server. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:28:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6901
No description provided.