diff --git a/AppImage/components/gpu-switch-mode-indicator.tsx b/AppImage/components/gpu-switch-mode-indicator.tsx index 738727d0..6f7bb9b2 100644 --- a/AppImage/components/gpu-switch-mode-indicator.tsx +++ b/AppImage/components/gpu-switch-mode-indicator.tsx @@ -31,206 +31,249 @@ export function GpuSwitchModeIndicator({ } } + // Compact version for GPU card if (compact) { return (
- {/* GPU Chip Icon */} - + {/* GPU Chip Icon - LARGER and always colored */} + + {/* Chip body */} - {/* Chip pins */} - - - - - - - + {/* Chip pins top */} + + + + {/* Chip pins bottom */} + + + + {/* GPU text */} + GPU - {/* Connection lines from GPU */} - - {/* Main line from GPU */} - - - {/* Switch circle */} - + {/* Connection line from GPU to switch */} + - {/* LXC branch */} - - - {/* VM branch */} - - + {/* Switch node - central junction */} + + + {/* Animated dot inside switch */} + - {/* LXC Icon - Container */} - + {/* LXC branch line */} + + + {/* VM branch line */} + + + {/* LXC Icon - Container box */} + - - - - LXC - + {/* Container layers */} + + + {/* Dots */} + + + - {/* VM Icon - Monitor/PC */} - + {/* VM Icon - Monitor */} + + {/* Screen shine */} + - - + {/* Stand */} + + + + {/* LXC Label */} + + LXC + + + {/* VM Label */} + + VM + - {/* Status text */} - - {isLxcActive ? "LXC" : isVmActive ? "VM" : "N/A"} - - - {hasChanged && ( - - (pending) + {/* Status description */} +
+ + {isLxcActive + ? "Ready for LXC containers" + : isVmActive + ? "Ready for VM passthrough" + : "Mode unknown"} - )} + + {isLxcActive + ? "Native driver active" + : isVmActive + ? "VFIO-PCI driver active" + : "No driver detected"} + + {hasChanged && ( + + Change pending... + + )} +
) } + // Full version (not used in current implementation but kept for flexibility) return (
- {/* GPU Chip Icon */} - + {/* GPU Chip Icon - LARGE and colored */} + {/* Chip pins top */} - - - + + + {/* Chip pins bottom */} - - - - + + + + GPU - {/* Connection lines */} - - {/* Main line from GPU to switch */} - - - {/* Switch circle */} - - - {/* Switch indicator inside circle */} - - - {/* LXC branch - top */} - - - {/* Active glow for LXC */} - {isLxcActive && ( - + {/* Main connection line */} + - {/* VM branch - bottom */} - - - {/* Active glow for VM */} - {isVmActive && ( - + {/* Switch node */} + + strokeWidth="2" + /> + + - {/* LXC Icon - Container with layers */} - + {/* LXC branch */} + + + {/* VM branch */} + + + {/* LXC Container icon */} + - {/* Container layers */} - - - {/* Small dots on layers */} - - - + + + + + - {/* LXC label */} LXC - {/* VM Icon - Monitor/Desktop */} - + {/* VM Monitor icon */} + - {/* Screen content */} - {/* Stand */} - - + + - {/* VM label */} VM - {/* Status text and edit hint */} + {/* Status */}
diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index d70a7cf8..e84ddc0c 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -879,9 +879,9 @@ export default function Hardware() { Switch Mode -
+
{editingSwitchModeGpu === fullSlot ? ( - <> +
- +
) : ( )}