Fügt grundlegende Toolbox-HTML-Struktur hinzu
Erstellt die anfängliche HTML-Struktur für die Toolbox-Oberfläche. Dies beinhaltet das Hinzufügen von Head-, Header-, Main- und Footer-Bereichen, sowie grundlegende Button-Funktionalitäten und dynamisches Laden von Tool-Karten. Ebenfalls enthalten sind CSS-Styles, um das Aussehen zu gestalten und ein Stylesheet ist eingebettet.
This commit is contained in:
@@ -4,167 +4,11 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Toolbox</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background: linear-gradient(to bottom, #1e1e2e, #28293d);
|
||||
color: white;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
}
|
||||
.header {
|
||||
background: #1b1b2b;
|
||||
padding: 15px 20px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
position: relative; /* Für absolute Positionierung des Buttons */
|
||||
}
|
||||
<link rel="stylesheet" href="saucer://embedded/html/styles.css">
|
||||
|
||||
.button {
|
||||
position: absolute;
|
||||
transform: translateY(-50%);
|
||||
background: #2b2c3b;
|
||||
border: none;
|
||||
color: #ff79c6;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
#file-system-button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 20px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#reload-button{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 20px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#option-button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 80px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background: #32334a;
|
||||
}
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
color: #ff79c6;
|
||||
}
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: 15px;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin; /* Firefox */
|
||||
scrollbar-color: #ff79c6 #2b2c3b;
|
||||
}
|
||||
.main::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
.main::-webkit-scrollbar-track {
|
||||
background: #2b2c3b;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.main::-webkit-scrollbar-thumb {
|
||||
background-color: #ff79c6;
|
||||
border-radius: 4px;
|
||||
border: 2px solid #2b2c3b;
|
||||
}
|
||||
.tool-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #2b2c3b;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
||||
transition: transform 0.2s;
|
||||
color: inherit; /* Vererbt die Textfarbe */
|
||||
text-decoration: none; /* Entfernt die Unterstreichung */
|
||||
}
|
||||
|
||||
.tool-card:hover {
|
||||
transform: scale(1.02);
|
||||
background-color: #32334a;
|
||||
}
|
||||
|
||||
.tool-card img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin-right: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.tool-info {
|
||||
flex-grow: 1;
|
||||
color: #ff79c6;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tool-info h3 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.tool-info p {
|
||||
margin: 5px 0 0;
|
||||
font-size: 14px;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.tool-action {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.tool-action button {
|
||||
background: #ff79c6;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.tool-action button:hover {
|
||||
background: #ff47b4;
|
||||
}
|
||||
|
||||
.tool-action button.disabled {
|
||||
background: #777;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.tool-action button.running {
|
||||
background: #ffcc00;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: #1b1b2b;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #aaa;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="shell">
|
||||
<div class="header">
|
||||
<button onclick="getNewContent()" class="button" id="reload-button">↻</button>
|
||||
<button onclick="openEinstFirst()" class="button" id="option-button" style="display: none;">⚙️</button>
|
||||
@@ -177,6 +21,7 @@
|
||||
<div class="footer">
|
||||
<!--Schmidti.Digital © 2024-->
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function getNewContent(){
|
||||
saucer.exposed.getNewContent();
|
||||
|
||||
197
res/html/styles.css
Normal file
197
res/html/styles.css
Normal file
@@ -0,0 +1,197 @@
|
||||
:root {
|
||||
--sky-top: #0b1c2c;
|
||||
--sky-mid: #0f2a3d;
|
||||
--sky-low: #0a1a28;
|
||||
--aqua-1: rgba(210, 245, 255, 0.85);
|
||||
--aqua-2: rgba(120, 210, 255, 0.9);
|
||||
--aqua-3: rgba(60, 150, 220, 0.95);
|
||||
--glass: rgba(18, 40, 60, 0.55);
|
||||
--glass-strong: rgba(24, 55, 80, 0.75);
|
||||
--glass-border: rgba(140, 210, 255, 0.35);
|
||||
--ink: #e6f7ff;
|
||||
--ink-soft: #b9d9ee;
|
||||
--shadow: rgba(4, 10, 16, 0.6);
|
||||
--shine: rgba(255, 255, 255, 0.25);
|
||||
--accent: #4fc3ff;
|
||||
--accent-deep: #1e74c9;
|
||||
}
|
||||
html {
|
||||
background: transparent;
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
}
|
||||
body {
|
||||
font-family: "Frutiger", "Frutiger LT Std", "Segoe UI", "Tahoma", "Verdana", sans-serif;
|
||||
background: transparent;
|
||||
margin: 0;
|
||||
color: var(--ink);
|
||||
padding: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
#shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
background: rgba(10, 26, 40, 0.80);
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.header {
|
||||
background: linear-gradient(180deg, rgba(20, 45, 70, 0.85), rgba(12, 28, 45, 0.7));
|
||||
padding: 16px 20px;
|
||||
text-align: center;
|
||||
box-shadow: 0 10px 22px var(--shadow), inset 0 1px 0 var(--shine);
|
||||
border-bottom: 1px solid rgba(140, 210, 255, 0.2);
|
||||
position: relative;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.header:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
right: 12px;
|
||||
top: 8px;
|
||||
height: 16px;
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
|
||||
border-radius: 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.button {
|
||||
position: absolute;
|
||||
transform: translateY(-50%);
|
||||
background: linear-gradient(180deg, rgba(120, 210, 255, 0.35), rgba(60, 150, 220, 0.55));
|
||||
border: 1px solid rgba(140, 210, 255, 0.45);
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
padding: 7px 14px;
|
||||
border-radius: 999px;
|
||||
box-shadow: 0 6px 12px var(--shadow), inset 0 1px 0 var(--shine);
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,0.35);
|
||||
transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
.button:hover {
|
||||
background: linear-gradient(180deg, rgba(150, 225, 255, 0.45), rgba(80, 170, 235, 0.7));
|
||||
transform: translateY(-52%);
|
||||
box-shadow: 0 10px 18px var(--shadow), inset 0 1px 0 var(--shine);
|
||||
}
|
||||
.button:active {
|
||||
transform: translateY(-48%);
|
||||
box-shadow: 0 4px 10px var(--shadow), inset 0 2px 6px rgba(0,0,0,0.25);
|
||||
}
|
||||
#file-system-button {
|
||||
top: 50%;
|
||||
right: 18px;
|
||||
}
|
||||
#reload-button {
|
||||
top: 50%;
|
||||
left: 18px;
|
||||
}
|
||||
#option-button {
|
||||
top: 50%;
|
||||
right: 92px;
|
||||
}
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 19px;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--ink-soft);
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,0.45);
|
||||
}
|
||||
.main {
|
||||
flex: 1;
|
||||
padding: 16px;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(120, 210, 255, 0.7) rgba(20, 45, 70, 0.5);
|
||||
}
|
||||
.main::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
.main::-webkit-scrollbar-track {
|
||||
background: rgba(20, 45, 70, 0.45);
|
||||
border-radius: 999px;
|
||||
}
|
||||
.main::-webkit-scrollbar-thumb {
|
||||
background: linear-gradient(180deg, rgba(120, 210, 255, 0.8), rgba(60, 150, 220, 0.9));
|
||||
border-radius: 999px;
|
||||
border: 2px solid rgba(20, 45, 70, 0.4);
|
||||
}
|
||||
.tool-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--glass);
|
||||
padding: 12px;
|
||||
border-radius: 14px;
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 12px 22px var(--shadow), inset 0 1px 0 var(--shine);
|
||||
border: 1px solid var(--glass-border);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.tool-card:hover {
|
||||
transform: translateY(-2px) scale(1.01);
|
||||
background: var(--glass-strong);
|
||||
box-shadow: 0 16px 26px var(--shadow), inset 0 1px 0 var(--shine);
|
||||
}
|
||||
.tool-card img {
|
||||
width: 62px;
|
||||
height: 62px;
|
||||
margin-right: 12px;
|
||||
border-radius: 12px;
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 12px rgba(0,0,0,0.25);
|
||||
border: 1px solid rgba(140, 210, 255, 0.35);
|
||||
background: rgba(12, 28, 45, 0.6);
|
||||
}
|
||||
.tool-info {
|
||||
flex-grow: 1;
|
||||
color: var(--ink);
|
||||
text-align: left;
|
||||
}
|
||||
.tool-info h3 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
.tool-info p {
|
||||
margin: 6px 0 0;
|
||||
font-size: 13px;
|
||||
color: #9bc4dc;
|
||||
}
|
||||
.tool-action {
|
||||
margin-left: auto;
|
||||
}
|
||||
.tool-action button {
|
||||
background: linear-gradient(180deg, rgba(130, 220, 255, 0.9), rgba(40, 120, 190, 0.95));
|
||||
border: 1px solid rgba(140, 210, 255, 0.6);
|
||||
color: #e9f8ff;
|
||||
padding: 8px 14px;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 6px 12px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.2);
|
||||
transition: transform 0.15s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.tool-action button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 10px 16px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.25);
|
||||
}
|
||||
.tool-action button.disabled {
|
||||
background: linear-gradient(180deg, rgba(120, 120, 120, 0.6), rgba(80, 80, 80, 0.8));
|
||||
color: #9aa6b0;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
.tool-action button.running {
|
||||
background: linear-gradient(180deg, rgba(255, 215, 140, 0.95), rgba(215, 155, 60, 0.95));
|
||||
color: #3b2a00;
|
||||
cursor: progress;
|
||||
}
|
||||
.footer {
|
||||
background: linear-gradient(180deg, rgba(18, 40, 60, 0.65), rgba(8, 18, 28, 0.6));
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #9bbfd6;
|
||||
border-top: 1px solid rgba(140, 210, 255, 0.2);
|
||||
}
|
||||
@@ -159,7 +159,7 @@ void ToolboxWindow::configureWindow() {
|
||||
const int windowHeight = 720;
|
||||
|
||||
m_webview.parent().set_size({windowWidth, windowHeight});
|
||||
const saucer::color bg{0x1e, 0x1e, 0x2e, 0xFF};
|
||||
const saucer::color bg{0x0b, 0x1c, 0x2c, 0x00};
|
||||
m_webview.set_background(bg);
|
||||
m_webview.parent().set_background(bg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user