Theme fixes: readable titles, no fake bold on IM Fell, List view hover, Gothic scene
- Cartographer's lit rows smeared: IM Fell has no bold, so the app faked one; now it never fakes bold for it. - Titles: Gothic uses IM Fell SC (was blackletter), Cartographer Alegreya (was Uncial). Very long title words wrap instead of running under the dice button. - List view rows get a theme hover instead of the engine's dark one. - Gothic's stand-in scene drops the red arch that read as a stray patch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b96fc02c0b
commit
4db69cee86
8 changed files with 17 additions and 10 deletions
|
|
@ -1 +1 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"><defs><radialGradient id="gothic_vignette" cx="0.5" cy="0.5" r="0.5" fx="0.5" fy="0.5"><stop offset="0.4" stop-color="#030909" stop-opacity="0"/><stop offset="1" stop-color="#030909" stop-opacity="1"/></radialGradient><linearGradient id="gothic_window" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#65060e" stop-opacity="1"/><stop offset="1" stop-color="#65060e" stop-opacity="0"/></linearGradient></defs><rect x="-384" y="-432" width="2688" height="1728" fill="url(#gothic_vignette)"/><path d="M940 360 V80 A120 120 0 0 1 1180 80 V360 Z" fill="url(#gothic_window)" opacity=".5"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"><defs><radialGradient id="gothic_vignette" cx="0.5" cy="0.5" r="0.5" fx="0.5" fy="0.5"><stop offset="0.4" stop-color="#030909" stop-opacity="0"/><stop offset="1" stop-color="#030909" stop-opacity="1"/></radialGradient></defs><rect x="-384" y="-432" width="2688" height="1728" fill="url(#gothic_vignette)"/></svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 404 B |
|
|
@ -10,7 +10,7 @@ const DATA := {
|
||||||
"logo": "fortune_teller",
|
"logo": "fortune_teller",
|
||||||
"card_frame": "art",
|
"card_frame": "art",
|
||||||
"font_body": "imfell",
|
"font_body": "imfell",
|
||||||
"font_display": "unifraktur",
|
"font_display": "imfellsc",
|
||||||
"background": {
|
"background": {
|
||||||
"kind": "radial",
|
"kind": "radial",
|
||||||
"colors": [
|
"colors": [
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const DATA := {
|
||||||
"logo": "fortune_teller",
|
"logo": "fortune_teller",
|
||||||
"card_frame": "art",
|
"card_frame": "art",
|
||||||
"font_body": "imfell",
|
"font_body": "imfell",
|
||||||
"font_display": "uncial",
|
"font_display": "alegreya",
|
||||||
"background": {
|
"background": {
|
||||||
"kind": "radial",
|
"kind": "radial",
|
||||||
"colors": [
|
"colors": [
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ def aero_scene(scene):
|
||||||
f'stroke-width="3" opacity=".45"/>')
|
f'stroke-width="3" opacity=".45"/>')
|
||||||
return defs, in_spread_space(body, 180), "bottom"
|
return defs, in_spread_space(body, 180), "bottom"
|
||||||
|
|
||||||
|
"""Dark edges (a vignette)."""
|
||||||
def vignette_scene(scene):
|
def vignette_scene(scene):
|
||||||
"""Dark edges and a faint red arched window glow at the top."""
|
"""Dark edges and a faint red arched window glow at the top."""
|
||||||
# CSS radial-gradient(70% 80% at 50% 40%, transparent 40%, s1): radii are 70% / 80% of the scene.
|
# CSS radial-gradient(70% 80% at 50% 40%, transparent 40%, s1): radii are 70% / 80% of the scene.
|
||||||
|
|
@ -104,8 +104,8 @@ def vignette_scene(scene):
|
||||||
defs = radial_gradient("gothic_vignette", [(0.4, scene["s1"], 0), (1, scene["s1"], 1)])
|
defs = radial_gradient("gothic_vignette", [(0.4, scene["s1"], 0), (1, scene["s1"], 1)])
|
||||||
body = (f'<rect x="{num(centre[0] - radii[0])}" y="{num(centre[1] - radii[1])}" width="{num(radii[0] * 2)}" '
|
body = (f'<rect x="{num(centre[0] - radii[0])}" y="{num(centre[1] - radii[1])}" width="{num(radii[0] * 2)}" '
|
||||||
f'height="{num(radii[1] * 2)}" fill="url(#gothic_vignette)"/>')
|
f'height="{num(radii[1] * 2)}" fill="url(#gothic_vignette)"/>')
|
||||||
defs += vertical_gradient("gothic_window", [(0, scene["s2"], 1), (1, scene["s2"], 0)])
|
# The red arch "window glow" read as a stray red patch (playtest 2026-11-14),
|
||||||
body += '<path d="M940 360 V80 A120 120 0 0 1 1180 80 V360 Z" fill="url(#gothic_window)" opacity=".5"/>'
|
# so the stand-in is the vignette alone; a real window is the user's art.
|
||||||
return defs, body, "center"
|
return defs, body, "center"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ THEMES = {
|
||||||
"overrides": {"ON_BG_MUTED": "#3e6688"},
|
"overrides": {"ON_BG_MUTED": "#3e6688"},
|
||||||
},
|
},
|
||||||
"gothic": {
|
"gothic": {
|
||||||
"name": "Gothic", "fonts": ("imfell", "unifraktur"),
|
"name": "Gothic", "fonts": ("imfell", "imfellsc"),
|
||||||
"background": {"kind": "radial", "colors": ["#223330", "#1b2826", "#081919"], "center": [0.5, 0.4]},
|
"background": {"kind": "radial", "colors": ["#223330", "#1b2826", "#081919"], "center": [0.5, 0.4]},
|
||||||
"panel": {"kind": "solid", "colors": ["#060f0f"]},
|
"panel": {"kind": "solid", "colors": ["#060f0f"]},
|
||||||
"colors": {"bg": "#1b2826", "onp": "#d9d4cc", "onpm": "#8f8a82", "card": "#d8d3c8", "card2": "#e2ddd3",
|
"colors": {"bg": "#1b2826", "onp": "#d9d4cc", "onpm": "#8f8a82", "card": "#d8d3c8", "card2": "#e2ddd3",
|
||||||
|
|
@ -180,7 +180,7 @@ THEMES = {
|
||||||
"overrides": {},
|
"overrides": {},
|
||||||
},
|
},
|
||||||
"map": {
|
"map": {
|
||||||
"name": "Cartographer", "fonts": ("imfell", "uncial"),
|
"name": "Cartographer", "fonts": ("imfell", "alegreya"),
|
||||||
"background": {"kind": "radial", "colors": ["#f0e2bf", "#dcc391"], "center": [0.5, 0.4]},
|
"background": {"kind": "radial", "colors": ["#f0e2bf", "#dcc391"], "center": [0.5, 0.4]},
|
||||||
# Deeper parchment, so the dark ink text reads on it and on the page.
|
# Deeper parchment, so the dark ink text reads on it and on the page.
|
||||||
"panel": {"kind": "linear", "colors": ["#e3cf9f", "#cdb47e"], "angle": 90},
|
"panel": {"kind": "linear", "colors": ["#e3cf9f", "#cdb47e"], "angle": 90},
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ const FAMILIES := {
|
||||||
"cinzel": {"name": "Cinzel (classical)", "group": "Themed", "roles": ["display"],
|
"cinzel": {"name": "Cinzel (classical)", "group": "Themed", "roles": ["display"],
|
||||||
"regular": "Cinzel-Variable.ttf", "variable": true},
|
"regular": "Cinzel-Variable.ttf", "variable": true},
|
||||||
"imfell": {"name": "IM Fell English (old book)", "group": "Themed", "roles": ["body", "display"],
|
"imfell": {"name": "IM Fell English (old book)", "group": "Themed", "roles": ["body", "display"],
|
||||||
"regular": "IMFellEnglish-Regular.ttf", "italic": "IMFellEnglish-Italic.ttf"},
|
"regular": "IMFellEnglish-Regular.ttf", "italic": "IMFellEnglish-Italic.ttf", "fake_bold": false},
|
||||||
"uncial": {"name": "Uncial Antiqua (Celtic)", "group": "Themed", "roles": ["display"],
|
"uncial": {"name": "Uncial Antiqua (Celtic)", "group": "Themed", "roles": ["display"],
|
||||||
"regular": "UncialAntiqua-Regular.ttf", "fake_bold": false},
|
"regular": "UncialAntiqua-Regular.ttf", "fake_bold": false},
|
||||||
"orbitron": {"name": "Orbitron (sci-fi)", "group": "Themed", "roles": ["display"],
|
"orbitron": {"name": "Orbitron (sci-fi)", "group": "Themed", "roles": ["display"],
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,13 @@ func _init(p_main: Main) -> void:
|
||||||
add_theme_stylebox_override("selected", Style.box(Style.LIT, 4))
|
add_theme_stylebox_override("selected", Style.box(Style.LIT, 4))
|
||||||
add_theme_stylebox_override("selected_focus", Style.box(Style.LIT, 4))
|
add_theme_stylebox_override("selected_focus", Style.box(Style.LIT, 4))
|
||||||
add_theme_stylebox_override("focus", StyleBoxEmpty.new())
|
add_theme_stylebox_override("focus", StyleBoxEmpty.new())
|
||||||
|
# Hover from the theme too: the engine's default hover (dark, with light
|
||||||
|
# text) made rows unreadable on light cards (Tarot, playtest 2026-11-14).
|
||||||
|
var hover := Style.box(Color(Style.LIT, 0.55), 4)
|
||||||
|
for box_name in ["hovered", "hovered_dimmed", "hovered_selected", "hovered_selected_focus"]:
|
||||||
|
add_theme_stylebox_override(box_name, hover if not box_name.begins_with("hovered_selected") else Style.box(Style.LIT, 4))
|
||||||
|
for colour_name in ["font_hovered_color", "font_hovered_dimmed_color", "font_hovered_selected_color"]:
|
||||||
|
add_theme_color_override(colour_name, Style.INK)
|
||||||
item_mouse_selected.connect(_on_click)
|
item_mouse_selected.connect(_on_click)
|
||||||
item_activated.connect(_on_activated)
|
item_activated.connect(_on_activated)
|
||||||
item_collapsed.connect(_on_folder_toggled)
|
item_collapsed.connect(_on_folder_toggled)
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ func make(build: bool, ranged: bool) -> Control:
|
||||||
titles.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
titles.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||||
titles.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
titles.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||||
var title := Style.make_label(Formatter.strip_tags(table.name), Style.display(true), 20, Style.INK)
|
var title := Style.make_label(Formatter.strip_tags(table.name), Style.display(true), 20, Style.INK)
|
||||||
title.autowrap_mode = TextServer.AUTOWRAP_WORD
|
title.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||||
if table.details.strip_edges() != "":
|
if table.details.strip_edges() != "":
|
||||||
# A small ⓘ after the name says hovering shows the table's details.
|
# A small ⓘ after the name says hovering shows the table's details.
|
||||||
var name_row := TableCard.hbox(4)
|
var name_row := TableCard.hbox(4)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue