mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 18:31:12 +00:00
* feat(linux): add Quick Chat floating composer to the Tauri companion - frameless transparent always-on-top quickchat window (on-demand, canvas pattern), positioned top-third on the cursor monitor, CSS fade+zoom in/out - global shortcut Ctrl+Shift+Space on X11 (GNOME reserves Alt+Space); tray 'Quick Chat' item is the Wayland entry point; blur/Esc/close-request hide - sends via the CLI agent turn with --message-file staged 0600 (argv is world-readable procfs) and cleaned up after the turn; failures surface as desktop notifications; Ctrl+Enter also opens the dashboard - default-agent identity chip (emoji/monogram) from agents list --json, 60s cache - window-scoped capability + permission set; window-state denylist; docs * chore(linux): register quickchat.js as a knip native-asset entry
175 lines
2.8 KiB
CSS
175 lines
2.8 KiB
CSS
:root {
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
color: #f7f7f8;
|
|
background: transparent;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.composer {
|
|
width: 100%;
|
|
padding: 9px 11px;
|
|
overflow: hidden;
|
|
border: 1px solid rgb(255 255 255 / 9%);
|
|
border-radius: 16px;
|
|
opacity: 0;
|
|
background: rgb(28 28 30 / 94%);
|
|
box-shadow: 0 10px 36px rgb(0 0 0 / 34%);
|
|
transform: scale(0.97);
|
|
transition:
|
|
opacity 100ms ease-in,
|
|
transform 100ms ease-in;
|
|
}
|
|
|
|
body.shown .composer {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
transition-duration: 140ms;
|
|
transition-timing-function: ease-out;
|
|
}
|
|
|
|
.composer-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
min-height: 34px;
|
|
}
|
|
|
|
.agent-chip {
|
|
display: grid;
|
|
flex: 0 0 28px;
|
|
width: 28px;
|
|
height: 28px;
|
|
place-items: center;
|
|
border: 1px solid rgb(255 255 255 / 10%);
|
|
border-radius: 50%;
|
|
color: white;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
background: hsl(var(--agent-hue, 4) 58% 42%);
|
|
}
|
|
|
|
#message {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 34px;
|
|
padding: 0;
|
|
border: 0;
|
|
outline: 0;
|
|
color: #f7f7f8;
|
|
font: 400 14px/1.4 inherit;
|
|
caret-color: #ff6b6b;
|
|
background: transparent;
|
|
}
|
|
|
|
#message::placeholder {
|
|
color: #8e8e93;
|
|
opacity: 1;
|
|
}
|
|
|
|
.send {
|
|
display: grid;
|
|
flex: 0 0 30px;
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
place-items: center;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
color: #1c1c1e;
|
|
cursor: pointer;
|
|
background: #ff6b6b;
|
|
transition:
|
|
opacity 120ms ease,
|
|
transform 120ms ease;
|
|
}
|
|
|
|
.send:hover:not(:disabled) {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.send:disabled {
|
|
cursor: default;
|
|
opacity: 0.34;
|
|
}
|
|
|
|
.send.sending,
|
|
.send.accepted {
|
|
opacity: 1;
|
|
}
|
|
|
|
.send-icon {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.send.sending .send-icon {
|
|
width: 13px;
|
|
height: 13px;
|
|
border: 2px solid rgb(28 28 30 / 35%);
|
|
border-top-color: #1c1c1e;
|
|
border-radius: 50%;
|
|
animation: spin 700ms linear infinite;
|
|
}
|
|
|
|
.send.accepted .send-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.status {
|
|
max-height: 0;
|
|
margin: 0 0 0 38px;
|
|
overflow: hidden;
|
|
color: #ff7b7b;
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
opacity: 0;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
transition:
|
|
max-height 120ms ease,
|
|
opacity 120ms ease;
|
|
}
|
|
|
|
.composer.has-error .status {
|
|
max-height: 16px;
|
|
opacity: 1;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|