iter9-T5: 卡③ ui_kit 对比度与字号(圣经 v3.5 批 B3)——四处不达标修复:C 区属性行显式主墨(1.31:1→≈10:1)/结算明细条摘要+提示暖白(2.63:1→≥5:1)/菜单玩法说明暖白+16px(2.58:1→≈6.8:1)/菜单副标题 WARM_SOFT→WARM(3.54:1→≈6.8:1);字号下限:正文 ≥16 落地(帮助文 13→16/种子标签 15→16/强化行 13→16/明细摘要 14→16/区头 14·15→16,辅助提示 14 维持);暗底双色墨制=触达暗底文字簇显式暖白族(全暗底件扫尾由卡⑤四屏 ≥4.5:1 断言机检兜底);轻闸=冒烟 596/0+ui_input PASS+click 问题=0

This commit is contained in:
DKChan committed 2026-09-30 05:18:52 +08:00
1 parent f9965a4ce8
commit f0a77a4a8c
3 files changed
+17 -8

No files matched your search

+4 -1
View File
@@ -40,12 +40,15 @@ func _init(db_ref) -> void:
add_child(vb)
var head := HBoxContainer.new()
vb.add_child(head)
_summary = UiKit.label("", 14, false)
_summary = UiKit.label("", 16, false)
# 对比度修复(v3.5 批 B3 2026-09-30——明细条灰字对深灰底实测 2.63:1):暗底双色墨制=暖白族
_summary.add_theme_color_override("font_color", UiKit.WARM)
_summary.custom_minimum_size = Vector2(0, BAND_H_DIG - 4)
_summary.clip_text = true
_summary.text_overrun_behavior = TextServer.OVERRUN_TRIM_ELLIPSIS
head.add_child(_summary)
_hint = UiKit.label("结算明细 ▸ 点击展开回看", 14, false)
_hint.add_theme_color_override("font_color", UiKit.WARM) # 辅助提示(≥14 辅助档)随上暖白
_hint.size_flags_horizontal = Control.SIZE_SHRINK_END
head.add_child(_hint)
_log = RichTextLabel.new()
@@ -49,7 +49,7 @@ func _init() -> void:
# 魔法道具槽(预留):随身战斗用道具的唯一展示面——空槽占位承诺格子在此,
# 不预设交互(挖掘期指向交互归 E 区既有裁决);终稿样式/槽位数归魔法道具批
col.add_child(UiKit.label("魔法道具", 15, true))
col.add_child(UiKit.label("魔法道具", 16, true))
item_slots = HBoxContainer.new()
item_slots.add_theme_constant_override("separation", 10)
col.add_child(item_slots)
@@ -72,7 +72,7 @@ func _init() -> void:
_bonus_section.add_theme_constant_override("separation", 4)
_bonus_section.visible = false
col.add_child(_bonus_section)
_bonus_section.add_child(UiKit.label("本关强化", 14, true))
_bonus_section.add_child(UiKit.label("本关强化", 16, true))
_bonus_list = VBoxContainer.new()
_bonus_list.add_theme_constant_override("separation", 2)
_bonus_section.add_child(_bonus_list)
@@ -94,7 +94,7 @@ func set_level_bonuses(lines: Array) -> void:
_bonus_list.remove_child(c)
c.queue_free()
for line in lines:
var l := UiKit.label(String(line), 13, false)
var l := UiKit.label(String(line), 16, false) # 字号下限(v3.5 批 B3——正文 ≥16)
l.add_theme_color_override("font_color", COL_INK)
_bonus_list.add_child(l)
_bonus_section.visible = not lines.is_empty()
@@ -116,6 +116,9 @@ func armor_text() -> String:
func _data_line() -> Label:
var l := UiKit.label("", 16, false)
# 对比度修复(v3.5 批 B3 2026-09-30——非粗体 label 默认浅灰对米色数据框仅 1.31:1,
# 实测=ui-redesign 对比报告 §一):显式主墨(对 PANEL_DATA ≈10:1)
l.add_theme_color_override("font_color", UiKit.INK)
l.clip_text = true
l.text_overrun_behavior = TextServer.OVERRUN_TRIM_ELLIPSIS
return l