Files
Erik W. a62da8926d release: v2.3.0 refactor and UI/audio fixes
- bump project/runtime version markers to v2.3.0 (pyproject + TetriNode UI version)

- complete behavior-preserving refactor from monoliths into modular Python and JS architecture (tetrinode/ + js/live/)

- add parity + standard regression harnesses under qa/

- fix queue panel layout so Queue bottom stays aligned to matrix bottom regardless of Controls visibility

- fix music playback fallback when selected track is none, including modal Play behavior and runtime playback path
2026-02-08 17:14:25 -05:00

88 lines
2.0 KiB
JavaScript

import { THEME_PRESETS } from "./theme_presets.js";
export const DEFAULT_CONFIG = {
theme: "glass",
theme_colors: JSON.parse(JSON.stringify(THEME_PRESETS)),
theme_settings: {
glass_radius: 6,
neon_glow: 8,
neon_radius: 6,
},
block_style: {
border: 1,
border_blur: 0,
gradient: 0.35,
gradient_angle: 45,
fill_blur: 0,
alpha: 1,
clearcoat: 0,
clearcoat_size: 0.3,
rim_light: 0,
roughness: 0,
metallic: 0,
scanlines: 0,
shadow: 0,
shadow_angle: 135,
corner_radius: 0,
bevel: 0,
specular_size: 0,
specular_strength: 0,
inner_shadow: 0,
inner_shadow_strength: 0,
outline_opacity: 1,
gradient_contrast: 1,
saturation_shift: 0,
brightness_shift: 0,
noise: 0,
glow: 0,
glow_opacity: 0.5,
pixel_snap: 0,
texture_id: "",
texture_opacity: 0,
texture_scale: 1,
texture_angle: 0,
},
bindings: {
move_left: ["arrowleft", "numpad4"],
move_right: ["arrowright", "numpad6"],
rotate_cw: ["arrowup", "numpad5", "x", "numpad1", "numpad9"],
rotate_ccw: ["control", "numpad3", "z", "numpad7"],
soft_drop: ["arrowdown", "numpad2"],
hard_drop: [" ", "numpad8"],
hold: ["shift", "numpad0", "c"],
reset: ["r"],
pause: ["escape", "f1"],
settings: ["f10"],
},
colors: {
color_i: "#55D6FF",
color_j: "#5669FF",
color_l: "#FFA74F",
color_o: "#FFE757",
color_s: "#7AEB84",
color_t: "#BB80FF",
color_z: "#FF7676",
background_color: "#32343E",
},
ghost_piece: true,
next_piece: true,
hold_queue: true,
show_controls: true,
lock_down_mode: "extended",
start_level: 1,
level_progression: "fixed",
queue_size: 6,
grid_enabled: true,
grid_color: "rgba(255,255,255,0.2)",
anim_hard_drop_trail: true,
anim_lock_flash: true,
anim_line_clear: true,
anim_score_toasts: true,
music_track: "none",
music_custom_path: "",
music_volume: 100,
music_muted: false,
music_prev_volume: 100,
music_speed_progressive: true,
};