mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 03:08:19 +00:00
Make plugin window smaller and use purple colour for successful connection
This commit is contained in:
parent
36baab4a06
commit
cb5dbcfb06
@ -14,7 +14,7 @@ const statusElement = document.getElementById("connection-status");
|
||||
function updateConnectionStatus(status: string, isConnectedState: boolean): void {
|
||||
if (statusElement) {
|
||||
statusElement.textContent = status;
|
||||
statusElement.style.color = isConnectedState ? "#4CAF50" : "#666";
|
||||
statusElement.style.color = isConnectedState ? "#6911d4" : "#600";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import { Task, TaskHandler } from "./TaskHandler";
|
||||
*/
|
||||
const taskHandlers: TaskHandler[] = [new PrintTextTaskHandler(), new ExecuteCodeTaskHandler()];
|
||||
|
||||
penpot.ui.open("Penpot MCP Plugin", `?theme=${penpot.theme}`);
|
||||
penpot.ui.open("Penpot MCP Plugin", `?theme=${penpot.theme}`, { width: 400, height: 300 });
|
||||
|
||||
// Handle both legacy string messages and new request-based messages
|
||||
penpot.ui.onMessage<string | { id: string; task: string; params: any }>((message) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user