idhyksi097's picture
I still can't press the button while the maid with deep sight is still there can you just create me a shortcut where I just press Q
a63efb1 verified
Raw History Blame Contribute Delete
2.39 kB
class QuantumTaskbar extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 48px;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
padding: 0 10px;
z-index: 1000;
}
.start-button {
height: 36px;
padding: 0 12px;
background: linear-gradient(to right, #4a00e0, #8e2de2);
color: white;
border: none;
border-radius: 4px;
display: flex;
align-items: center;
cursor: pointer;
}
.tray {
margin-left: auto;
display: flex;
align-items: center;
gap: 15px;
}
.window-list {
display: flex;
align-items: center;
gap: 5px;
margin-left: 20px;
}
.window-button {
height: 36px;
padding: 0 12px;
background: rgba(255, 255, 255, 0.1);
color: white;
border: none;
border-radius: 4px;
display: flex;
align-items: center;
cursor: pointer;
}
</style>
<button class="start-button">
<slot name="start-icon"></slot>
<span>Start</span>
<span class="shortcut-hint">(Q)</span>
</button>
<div class="window-list" id="window-list"></div>
<div class="tray">
<slot name="tray-items"></slot>
</div>
`;
}
}
customElements.define('quantum-taskbar', QuantumTaskbar);