diff --git a/.openclaw/settings.json b/.openclaw/settings.json deleted file mode 100644 index f63f93e..0000000 --- a/.openclaw/settings.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "hooks": { - "pre-exec": [ - { - "matcher": "", - "command": "scale gate pre-tool Bash --args-json \"$ARGS\" --session-id \"$SESSION_ID\"" - }, - { - "matcher": "edit|write", - "command": "scale gate pre-tool Edit --args-json \"$ARGS\" --session-id \"$SESSION_ID\"" - } - ], - "post-exec": [ - { - "matcher": "edit|write", - "command": "scale gate post-tool Edit --args-json \"$ARGS\" --exit-code \"$EXIT_CODE\" --session-id \"$SESSION_ID\"" - }, - { - "matcher": "", - "command": "scale gate post-tool Bash --args-json \"$ARGS\" --exit-code \"$EXIT_CODE\" --session-id \"$SESSION_ID\"" - } - ], - "before-stop": [ - { - "matcher": "", - "command": "scale gate before-stop --session-id \"$SESSION_ID\"" - } - ] - }, - "permissions": { - "allow": [ - "scale:*" - ] - } -} \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 607a4cd..a8e3dc1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1304,7 +1304,7 @@ checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59" [[package]] name = "eskin-model-player" -version = "0.5.0" +version = "5.0.0" dependencies = [ "anyhow", "bytemuck", diff --git a/Cargo.toml b/Cargo.toml index 7528720..34b2ff2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,14 @@ [package] name = "eskin-model-player" -version = "0.5.0" +version = "5.0.0" edition = "2024" +authors = ["JOYSONQUIN"] +description = "Desktop pressure sensor visualization and playback application." build = "build.rs" +[package.metadata.wix] +eula = false + [dependencies] eframe = { version = "0.34.2", features = ["default", "wgpu", "__screenshot"] } env_logger = { version = "0.11.10", features = ["auto-color", "humantime"] } @@ -22,3 +27,8 @@ gltf = "1.4.1" [build-dependencies] anyhow = "1.0.102" fs_extra = "1.3.0" + + +[[bin]] +name = "ESkinPlayer" +path = "src/main.rs" diff --git a/src/main.rs b/src/main.rs index 2428c51..96ac35d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ #![allow(dead_code)] - +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] mod app; mod breakout; mod connection; diff --git a/src/style.rs b/src/style.rs index c88aa9d..349c51d 100644 --- a/src/style.rs +++ b/src/style.rs @@ -29,7 +29,7 @@ pub struct DesignMetrics { } pub const ONE_DARK_PRO: AppTheme = AppTheme { - bg: egui::Color32::from_rgb(30, 40, 50), + bg: egui::Color32::BLACK, panel: egui::Color32::from_rgb(22, 28, 35), panel_strong: egui::Color32::from_rgb(34, 43, 54), panel_deep: egui::Color32::from_rgb(15, 20, 27), diff --git a/src/ui.rs b/src/ui.rs index 31e8e7e..e754965 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -699,8 +699,8 @@ pub fn draw_stats_panel( force_history: &[f32], _spatial_force: Option, ) { - const PANEL_WIDTH: f32 = 420.0; - const PANEL_HEIGHT: f32 = 380.0; + const PANEL_WIDTH: f32 = 380.0; + const PANEL_HEIGHT: f32 = 340.0; const PANEL_OUTSIDE_GAP: f32 = 18.0; let force_active = has_recent_resultant_force(force_history); diff --git a/static/wgsl/shader.wgsl b/static/wgsl/shader.wgsl index bbd5168..1797361 100644 --- a/static/wgsl/shader.wgsl +++ b/static/wgsl/shader.wgsl @@ -126,15 +126,7 @@ fn vs_background(@builtin(vertex_index) vertex_index: u32) -> BackgroundVertexOu @fragment fn fs_background(@builtin(position) frag_coord: vec4f) -> @location(0) vec4f { - let pixel = frag_coord.xy; - let viewport = u.viewport.xy; - let uv = pixel / max(viewport, vec2f(1.0, 1.0)); - var color = mix(vec3f(0.018, 0.019, 0.022), vec3f(0.038, 0.040, 0.046), 1.0 - uv.y); - let vignette = smoothstep(0.18, 0.92, length((uv - vec2f(0.52, 0.48)) * vec2f(viewport.x / viewport.y, 1.0))); - color *= 1.0 - vignette * 0.22; - color += vec3f(0.010, 0.010, 0.012) * (1.0 - smoothstep(0.0, 0.85, abs(uv.y - 0.50))); - - return output_color(color, 1.0); + return output_color(vec3f(0.0, 0.0, 0.0), 1.0); } diff --git a/wix/main.wxs b/wix/main.wxs new file mode 100644 index 0000000..c6bd3de --- /dev/null +++ b/wix/main.wxs @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + +