mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-06 15:22:40 +08:00
48 lines
1.3 KiB
HTML
48 lines
1.3 KiB
HTML
<html>
|
|
<head>
|
|
<title>Window Menu Demo</title>
|
|
<style>
|
|
body {
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
margin: 0;
|
|
padding: 2rem;
|
|
background: #f5f5f5;
|
|
color: #333;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
h1 {
|
|
margin-top: 0;
|
|
color: #2d2d2d;
|
|
}
|
|
.key {
|
|
background: #e9e9e9;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
font-family: monospace;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Window Menu Demo</h1>
|
|
<p>This example demonstrates the menu bar visibility toggle feature.</p>
|
|
<p>Press <span class="key">F1</span> to toggle the menu bar.</p>
|
|
<p>Press <span class="key">F2</span> to show the menu bar.</p>
|
|
<p>Press <span class="key">F3</span> to hide the menu bar.</p>
|
|
<p>The menu includes:</p>
|
|
<ul>
|
|
<li>File menu with Exit option</li>
|
|
<li>MenuBar menu with Hide options</li>
|
|
<li>Help menu with About</li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html> |