|
410 | 410 | // this function is called onload so it is safe to be deferred loaded inline script as it is guarented to only |
411 | 411 | // get executed after all deferred scripts has been loaded |
412 | 412 | function _loadPhoenixAfterSplashScreen() { |
| 413 | + if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { |
| 414 | + // Dark mode is enabled |
| 415 | + document.body.classList.add('dark'); // This will later be overridden by the theme manager as required. |
| 416 | + } |
413 | 417 | _removeSplashScreenIfNeeded(); |
414 | 418 | if(window.cacheRefreshInProgress){ |
415 | 419 | // We should not load anything while the cache is inconsistent. |
|
502 | 506 | title="Phoenix Splash Screen" src="assets/phoenix-splash/index.html"></iframe> |
503 | 507 | </div> |
504 | 508 |
|
| 509 | +<div class="main-view"> |
| 510 | + <div id="notificationUIDefaultAnchor" href="#"> |
| 511 | + </div> |
| 512 | + <div id="sidebar" class="sidebar panel quiet-scrollbars horz-resizable right-resizer collapsible" data-minsize="0" data-maxsize="80%" data-forceleft=".content"> |
| 513 | + <div id="mainNavBar"> |
| 514 | + <div id="mainNavBarLeft"> |
| 515 | + <div id="newProject" class="new-project-btn btn-alt-quiet"></div> |
| 516 | + </div> |
| 517 | + <div id="mainNavBarRight"> |
| 518 | + <div id="navBackButton" class="nav-back-btn btn-alt-quiet"></div> |
| 519 | + <div id="navForwardButton" class="nav-forward-btn btn-alt-quiet"></div> |
| 520 | + <div id="showInfileTree" class="show-in-file-tree-btn btn-alt-quiet"></div> |
| 521 | + <div id="searchNav" class="search-nav-btn btn-alt-quiet"></div> |
| 522 | + <div class="working-set-splitview-btn btn-alt-quiet"></div> |
| 523 | + </div> |
| 524 | + </div> |
| 525 | + |
| 526 | + <div id="working-set-list-container"> |
| 527 | + |
| 528 | + </div> |
| 529 | + <div id="project-files-header"> |
| 530 | + <i id="project-operations-spinner" class="fa fa-spinner fa-spin forced-hidden"></i> |
| 531 | + <span id="project-title" class="title"></span> |
| 532 | + </div> |
| 533 | + <div id="project-files-container"> |
| 534 | + <!-- This will contain a dynamically generated <ul> hierarchy at runtime --> |
| 535 | + </div> |
| 536 | + </div> |
| 537 | + |
| 538 | + <!-- |
| 539 | + Vertical stack of titlebar (in-browser), editor, bottom panels, status bar |
| 540 | + (status bar is injected later - see StatusBar.init()). |
| 541 | + Note: all children must be in a vertical stack with heights explicitly set in a fixed |
| 542 | + unit such as px (not percent/em/auto). If you change the height later, you must |
| 543 | + call WorkspaceManager.recomputeLayout() each time. Otherwise the layout will |
| 544 | + not get set correctly. Use WorkspaceManager to have this managed for you automatically. |
| 545 | + --> |
| 546 | + <div class="content"> |
| 547 | + <!-- Horizontal titlebar containing menus & filename when inBrowser --> |
| 548 | + <div id="titlebar" class="toolbar no-focus"> |
| 549 | + <!-- Menu bar --> |
| 550 | + <ul class="nav" data-dropdown="dropdown"> |
| 551 | + </ul> |
| 552 | + |
| 553 | + <!-- Filename label --> |
| 554 | + <div class="title-wrapper"> |
| 555 | + <span class="title"></span> <span class='dirty-dot' style="visibility:hidden;">•</span> |
| 556 | + </div> |
| 557 | + </div> |
| 558 | + |
| 559 | + <div id="editor-holder"> |
| 560 | + <!-- View Panes are programatically created here --> |
| 561 | + </div> |
| 562 | + |
| 563 | + <!-- Bottom panels and status bar are programmatically created here --> |
| 564 | + |
| 565 | +</div> |
| 566 | + |
| 567 | +<!-- Vertical toolbar docked to right --> |
| 568 | +<div id="main-toolbar" class="toolbar no-focus collapsible"> |
| 569 | + <!-- Top-aligned buttons --> |
| 570 | + <div id="main-plugin-panel" class="plugin-panel"> |
| 571 | + </div> |
| 572 | + <div id="plugin-icons-bar"> |
| 573 | + <div class="buttons"> |
| 574 | + <a id="toolbar-go-live" href="#"></a> <!-- tooltip for this is set in JS --> |
| 575 | + <a id="toolbar-extension-manager" href="#"></a> |
| 576 | + <a id="update-notification" href="#" style="display: none"></a> |
| 577 | + </div> |
| 578 | + <div class="bottom-buttons"> |
| 579 | + </div> |
| 580 | + </div> |
| 581 | +</div> |
| 582 | + |
| 583 | +<!-- Hack to ensure that the code editor's web font is loaded early. --> |
| 584 | +<!-- For more info, see note in brackets.less for class .dummy-text, or issue 76 --> |
| 585 | +<div class="dummy-text">x</div> |
| 586 | +</div> |
| 587 | + |
| 588 | +<!-- Modal Windows --> |
| 589 | +<div id="context-menu-bar"> |
| 590 | + <ul data-dropdown="dropdown"></ul> |
| 591 | +</div> |
| 592 | +<div id="codehint-menu-bar"> |
| 593 | + <ul data-dropdown="dropdown"></ul> |
| 594 | +</div> |
| 595 | +<div id="inlinemenu-menu-bar"> |
| 596 | + <ul data-dropdown="dropdown"></ul> |
| 597 | +</div> |
| 598 | +<div id="hidden-editors"></div> |
| 599 | +<!-- Notification bar --> |
| 600 | +<div id="toast-notification-container"> |
| 601 | +</div> |
505 | 602 | <!-- HTML content is dynamically loaded and rendered by brackets.js after _loadPhoenixAfterSplashScreen. |
506 | 603 | Any modules that depend on or modify HTML during load should |
507 | 604 | require the "utils/AppInit" module and install a callback for |
|
0 commit comments