mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-11-13 16:49:55 -08:00
b5386c0257
The darwin frame is the same as the original, however the button behavior is corrected. The win32 frame uses the traditional buttons found on windows. Also added a small logo image to the windows frame. Each frame is dynamically loaded on startup via ejs. Also disabled the server selection test UI.
33 lines
2.1 KiB
Plaintext
33 lines
2.1 KiB
Plaintext
<div id="frameBar">
|
|
<div id="frameResizableTop" class="frameDragPadder"></div>
|
|
<div id="frameMain">
|
|
<div class="frameResizableVert frameDragPadder"></div>
|
|
<%if (process.platform === 'darwin') { %>
|
|
<div id="frameContentDarwin">
|
|
<div id="frameButtonDockDarwin">
|
|
<button class="frameButtonDarwin fCb" id="frameButtonDarwin_close" tabIndex="-1"></button>
|
|
<button class="frameButtonDarwin fMb" id="frameButtonDarwin_minimize" tabIndex="-1"></button>
|
|
<button class="frameButtonDarwin fRb" id="frameButtonDarwin_restoredown" tabIndex="-1"></button>
|
|
</div>
|
|
</div>
|
|
<% } else{ %>
|
|
<div id="frameContentWin">
|
|
<div id="frameImageDock">
|
|
<img id= "frameImage" src="./assets/images/WCTextCrop.png" />
|
|
</div>
|
|
<div id="frameButtonDockWin">
|
|
<button class="frameButton fMb" id="frameButton_minimize" tabIndex="-1">
|
|
<svg name="TitleBarMinimize" width="10" height="10" viewBox="0 0 12 12"><rect stroke="#ffffff" fill="#ffffff" width="10" height="1" x="1" y="6"></rect></svg>
|
|
</button>
|
|
<button class="frameButton fRb" id="frameButton_restoredown" tabIndex="-1">
|
|
<svg name="TitleBarMaximize" width="10" height="10" viewBox="0 0 12 12"><rect width="9" height="9" x="1.5" y="1.5" fill="none" stroke="#ffffff" stroke-width="1.4px"></rect></svg>
|
|
</button>
|
|
<button class="frameButton fCb" id="frameButton_close" tabIndex="-1">
|
|
<svg name="TitleBarClose" width="10" height="10" viewBox="0 0 12 12"><polygon stroke="#ffffff" fill="#ffffff" fill-rule="evenodd" points="11 1.576 6.583 6 11 10.424 10.424 11 6 6.583 1.576 11 1 10.424 5.417 6 1 1.576 1.576 1 6 5.417 10.424 1"></polygon></svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
<div class="frameResizableVert frameDragPadder"></div>
|
|
</div>
|
|
</div> |