mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
Remove the Cyber HUD layout and keep its sonar as a visual style
Display > HUD > Sonar now turns the sonar sweep on over Tactical or Minimal. It is off by default, ON reveals its five sliders, and it keeps its guards: an OFF control, the sweep only while the HUD is visible and outside Cockpit, no animation under reduced motion, and repaint timers re-armed only after a drawn frame that still shows contacts. The Cyber layout, its shell skin and its Cockpit lanes are removed. Share links, scenes, saved views and set_hud that name Cyber open Tactical with Sonar on; links and scene shots record Tactical with Sonar under the same code, and a restored state that names another layout turns Sonar off. set_cyber_sonar keeps its name and works under any layout. A newer Sonar toggle or voice setting wins over a share-link restore that lands later. From 1200px wide the command dock and World Timeline sit 74px above the bottom edge, as in the Omnibar layout, leaving the bottom row to the map attribution (left) and the Power Up corner row (right). The attribution moves to the bottom right when the page runs right to left, where the corner row sits at the bottom left, and a long credit line wraps upward before reaching the corner row. The Tactical bottom-right readout sits 8px above Power Up and the coordinates start level with it. The World Timeline is narrowed to sit between the corners. Toasts keep clear of the raised dock and the chat and voice panel height budgets subtract its rise. Below 1200px the layout is unchanged. The left rail treats the centered World Timeline and voice control as obstacles only where they reach a laid-out panel. On top of the Omnibar: sonar.css replaces cyber.css after the Omnibar imports, the Omnibar's HUD guide step now says Layout picks Tactical or Minimal, and the Omnibar's Tactical bottom-right readout keeps the same 8px above Power Up. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
35b87c75f2
commit
d68adcea21
112 files changed
+1433
-5239
No files matched your search
+19
-15
@@ -366,15 +366,12 @@
|
||||
flex-basis: 1.25rem;
|
||||
}
|
||||
/* At this width main shows the wings' icons only (command-dock-trays.css);
|
||||
centre them in the slim wings. Cyber keeps its labels. */
|
||||
centre them in the slim wings. */
|
||||
@media (max-width: 900px) {
|
||||
:root:not([data-ui-theme='cyber'])
|
||||
#command-dock
|
||||
> :is(#location-bar, #control-panel)
|
||||
.dock-tray-toggle {
|
||||
:root #command-dock > :is(#location-bar, #control-panel) .dock-tray-toggle {
|
||||
justify-content: center;
|
||||
}
|
||||
:root:not([data-ui-theme='cyber'])
|
||||
:root
|
||||
#command-dock
|
||||
:is(#location-bar, #control-panel)
|
||||
:is(.location-toolbar-label, .panel-title) {
|
||||
@@ -382,7 +379,7 @@
|
||||
min-width: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
:root:not([data-ui-theme='cyber']) #command-dock .dock-label-icon {
|
||||
:root #command-dock .dock-label-icon {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
flex-basis: 1.25rem;
|
||||
@@ -1448,16 +1445,15 @@ body[data-assistant-docked='true'] #right-context-rail {
|
||||
box-shadow: 0 0 0 1px currentColor;
|
||||
}
|
||||
|
||||
/* Assistant panels share the left panels' glass surface (layers.css). Cyber
|
||||
keeps its own surfaces. */
|
||||
:root:not([data-ui-theme='cyber']) #gev-voice-control {
|
||||
/* Assistant panels share the left panels' glass surface (layers.css). */
|
||||
:root #gev-voice-control {
|
||||
--assistant-glass: var(--glass-bg);
|
||||
--assistant-glass-border: var(--glass-border);
|
||||
--assistant-glass-shadow:
|
||||
0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset,
|
||||
0 1px 0 rgba(255, 255, 255, 0.06) inset;
|
||||
}
|
||||
:root:not([data-ui-theme='cyber'])
|
||||
:root
|
||||
#command-dock
|
||||
#gev-voice-control
|
||||
:is(
|
||||
@@ -1472,14 +1468,14 @@ body[data-assistant-docked='true'] #right-context-rail {
|
||||
}
|
||||
/* The mini reply sits inside the chat panel, whose own blur makes it the
|
||||
backdrop root: a blur on the reply could not reach the map. */
|
||||
:root:not([data-ui-theme='cyber'])
|
||||
:root
|
||||
#command-dock
|
||||
#gev-voice-control
|
||||
:is(#gev-chat-panel, #gev-voice-panel, #gev-voice-panel[data-minimized]) {
|
||||
-webkit-backdrop-filter: blur(24px) saturate(1.4);
|
||||
backdrop-filter: blur(24px) saturate(1.4);
|
||||
}
|
||||
:root:not([data-ui-theme='cyber'])
|
||||
:root
|
||||
#command-dock
|
||||
#gev-voice-control
|
||||
#gev-chat-panel[data-minimized='true']:focus-within {
|
||||
@@ -1488,12 +1484,12 @@ body[data-assistant-docked='true'] #right-context-rail {
|
||||
|
||||
/* A backdrop-filter on the voice control would stop the panels inside it
|
||||
from blurring the map, so its own blur moves to a layer behind it. */
|
||||
:root:not([data-ui-theme='cyber']) #command-dock > #gev-voice-control {
|
||||
:root #command-dock > #gev-voice-control {
|
||||
isolation: isolate;
|
||||
-webkit-backdrop-filter: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
:root:not([data-ui-theme='cyber']) #command-dock > #gev-voice-control::before {
|
||||
:root #command-dock > #gev-voice-control::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
@@ -1698,3 +1694,11 @@ body[data-assistant-docked='true'] #right-context-rail {
|
||||
--dock-side-compact: 3.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* From 1200px the dock sits 74px up (command-dock.css), 74px - 2vh higher
|
||||
than the bottom-edge dock this height budget was written for. */
|
||||
@media (min-width: 1200px) {
|
||||
#gev-chat-panel {
|
||||
max-height: min(34rem, calc(100dvh - 10rem - 74px + 2vh));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user