diff --git a/shell/windows/LayersShell/LayersShell.csproj b/shell/windows/LayersShell/LayersShell.csproj
index 71ff6df..8329328 100644
--- a/shell/windows/LayersShell/LayersShell.csproj
+++ b/shell/windows/LayersShell/LayersShell.csproj
@@ -14,9 +14,7 @@
latest
true
Layers
-
+ false
Assets\app.ico
$(MSBuildProjectDirectory)\..\..\..\resources\Layers.svg
@@ -25,15 +23,9 @@
-
-
+
-
diff --git a/src/bin/layers_shell.rs b/src/bin/layers_shell.rs
index 20a3d52..a6bd8fd 100644
--- a/src/bin/layers_shell.rs
+++ b/src/bin/layers_shell.rs
@@ -1,7 +1,3 @@
-// Suppress the console window on Windows release builds. The plugin launches from a GUI
-// context (KiCad pcbnew's toolbar button), not a terminal — the black cmd window that
-// `subsystem = "console"` would spawn is noise. Debug builds keep the console so stderr
-// streams when launched from a terminal for diagnostics.
#![cfg_attr(all(target_os = "windows", not(debug_assertions)), windows_subsystem = "windows")]
use std::num::NonZeroU32;
@@ -209,10 +205,6 @@ impl ShellApp {
} else {
colors.window.alpha_idle
};
- // winit 0.30 does not expose a per-platform runtime alpha setter for top-level windows;
- // `with_transparent(true)` lets the compositor clear-colour carry alpha on Windows/Linux
- // WMs that support it. The compositor clear is opaque-by-design, so fade happens through
- // wgpu alpha mode when a translucent background is configured. Stubbed for now.
let _ = alpha;
let _ = NonZeroU32::new(1);
}
diff --git a/src/ffi.rs b/src/ffi.rs
index bbf348e..e8c00aa 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -39,9 +39,6 @@ pub struct ViewportHandle {
}
impl ViewportHandle {
- /// Construct a viewport around already-realised raw window/display handles.
- /// Used by native shells (winit on Windows/Linux); the macOS FFI path wraps this
- /// through `layers_create` with AppKit handles built from an NSView pointer.
pub fn new_from_raw(
raw_window: RawWindowHandle,
raw_display: RawDisplayHandle,
@@ -123,8 +120,6 @@ pub extern "C" fn layers_startup() -> i32 {
if init_logging().is_err() {
return 2;
}
- // Preload colours from the compiled-in default so everything works if Swift never calls
- // `layers_set_plugin_root`. A subsequent call to that FFI will not replace the cache.
crate::ui::colors::init(None);
match single_instance::acquire_or_signal_existing() {
Ok(single_instance::AcquireOutcome::Primary(guard)) => {
@@ -139,8 +134,6 @@ pub extern "C" fn layers_startup() -> i32 {
}
}
-/// Point Rust at the installed plugin root so it can load resources/colors.toml.
-/// Must be called BEFORE `layers_startup` to take effect; subsequent calls are ignored.
#[unsafe(no_mangle)]
pub extern "C" fn layers_set_plugin_root(path_utf8: *const std::os::raw::c_char) {
if path_utf8.is_null() { return; }
@@ -167,9 +160,6 @@ pub extern "C" fn layers_create(
Box::into_raw(Box::new(handle))
}
-/// Windows — create a viewport whose surface renders into a WinUI 3 SwapChainPanel.
-/// `swap_chain_panel` is the native IInspectable / COM pointer of the XAML element,
-/// obtained on the C# side via `SwapChainPanelNative.GetSwapChain` friends.
#[cfg(target_os = "windows")]
#[unsafe(no_mangle)]
pub extern "C" fn layers_create_from_swap_chain_panel(