refactor dyn page

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-24 10:47:27 +08:00
parent 63fa031137
commit ebcbe8143b
10 changed files with 385 additions and 492 deletions

View File

@@ -134,7 +134,7 @@ class Word {
style = json['style'] == null ? null : Style.fromJson(json['style']);
if (json['color'] case final String rawColor
when rawColor.startsWith('#')) {
color = ColourUtils.parse2Int(json['color']);
color = ColourUtils.parse2Int(rawColor);
}
fontLevel = json['font_level'];
}