| @@ -50,10 +50,16 @@ | ||
| 50 | 50 | // system default (and nothing else about themes runs at all). |
| 51 | 51 | $desktop_theme = function_exists( 'openstation_active_desktop_theme_slug' ) |
| 52 | 52 | ? openstation_active_desktop_theme_slug() |
| 53 | 53 | : ''; |
| 54 | + | |
| 55 | + // A shell asked to boot into overview (a switch from another site's | |
| 56 | + // switcher) arrives with its desk hidden until overview is up, so the | |
| 57 | + // desk slides in as one piece instead of the bare desk flashing first. | |
| 58 | + // See `src/multisite/instance-transition.ts`. | |
| 59 | + $arriving = openstation_shell_lands_in_overview() ? ' os-shell--arriving' : ''; | |
| 54 | 60 | ?> |
| 55 | - <div id="os-shell" class="os-shell" data-os-scheme="<?php echo esc_attr( $scheme ); ?>"<?php echo '' !== $desktop_theme ? ' data-os-desktop-theme="' . esc_attr( $desktop_theme ) . '"' : ''; ?> role="application" aria-label="<?php esc_attr_e( 'Desktop shell', 'desktop-mode' ); ?>"> | |
| 61 | + <div id="os-shell" class="os-shell<?php echo esc_attr( $arriving ); ?>" data-os-scheme="<?php echo esc_attr( $scheme ); ?>"<?php echo '' !== $desktop_theme ? ' data-os-desktop-theme="' . esc_attr( $desktop_theme ) . '"' : ''; ?> role="application" aria-label="<?php esc_attr_e( 'Desktop shell', 'desktop-mode' ); ?>"> | |
| 56 | 62 | <?php |
| 57 | 63 | /* |
| 58 | 64 | * Wallpaper layer — sits behind both the dock and the desktop |
| 59 | 65 | * area so a translucent dock bleeds through to the wallpaper |