From 5b3be915c8bec0975caccb2d51de573f85047098 Mon Sep 17 00:00:00 2001 From: Manjunath Paparaju Date: Fri, 13 Nov 2026 15:42:31 +0530 Subject: [PATCH] Keep only what cockpit Display lacks in the Visual panel In cockpit, the Visual panel hides the HUD, detection, parameters and 3D-model groups, which the cockpit's Display panel already offers, and the celestial ring toggle. It keeps Look, Map source, Scope, Bloom and Sharpen. Co-authored-by: Sameh Khamis --- src/ui/styles/cockpit-panels.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/styles/cockpit-panels.css b/src/ui/styles/cockpit-panels.css index 30a9e2b39..ff457edb5 100644 --- a/src/ui/styles/cockpit-panels.css +++ b/src/ui/styles/cockpit-panels.css @@ -159,6 +159,22 @@ body.cockpit-mode border-radius: 14px; } +/* In cockpit, Visual keeps only what the cockpit's own Display panel does + not already offer: the HUD, detection, parameters and 3D-model groups live + there (its portal moves them while it shows; hidden here otherwise, so they + never appear twice), and the celestial ring has no place in first person. */ +body.cockpit-mode + #pp-toggles + :is( + .pp-toggle-group:has(#hud-toggle), + .pp-toggle-group:has(#detection-toggle), + .pp-toggle-group:has(#models3d-toggle), + .pp-toggle-group:has(#celestial-toggle), + #param-slider-panel + ) { + display: none !important; +} + /* Authoring or Utilities may still be open underneath; its hidden icon must not split the rail into islands. */ body.cockpit-mode