mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 11:18:37 +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 {
|
function updateConnectionStatus(status: string, isConnectedState: boolean): void {
|
||||||
if (statusElement) {
|
if (statusElement) {
|
||||||
statusElement.textContent = status;
|
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()];
|
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
|
// Handle both legacy string messages and new request-based messages
|
||||||
penpot.ui.onMessage<string | { id: string; task: string; params: any }>((message) => {
|
penpot.ui.onMessage<string | { id: string; task: string; params: any }>((message) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user