Skip to content

Commit a0dda12

Browse files
author
Ritika Mishra
committed
updated ui of buttons
1 parent d753999 commit a0dda12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/serial-plotter/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ const SerialPlotter = () => {
411411
onClick={isConnected ? disconnectSerial : connectToSerial}
412412
className={`px-4 py-2 text-sm font-semibold transition rounded-xl ${isConnected ? "text-sm" : "text-sm"}`}
413413
>
414-
{isConnected ? "Disconnect" : "Connect Serial"}
414+
{isConnected ? "Disconnect" : "Connect"}
415415
</Button>
416416
</div>
417417

@@ -423,8 +423,8 @@ const SerialPlotter = () => {
423423
onClick={() => setViewMode(mode)}
424424
className={`px-4 py-2 text-sm transition font-semibold
425425
${viewMode === mode
426-
? "bg-primary text-white dark:text-gray-800 shadow-md" // Active state
427-
: "bg-gray-700 text-gray-300 hover:bg-gray-600"} // Inactive state
426+
? "bg-primary text-white dark:text-gray-900 shadow-md" // Active state
427+
: "bg-gray-500 text-gray-900 hover:bg-gray-300"} // Inactive state (lighter shade)
428428
${index === 0 ? "rounded-xl rounded-r-none" : ""}
429429
${index === arr.length - 1 ? "rounded-xl rounded-l-none" : ""}
430430
${index !== 0 && index !== arr.length - 1 ? "rounded-none" : ""}`}
@@ -434,6 +434,7 @@ const SerialPlotter = () => {
434434
))}
435435
</div>
436436

437+
437438
{/* Baud Rate Selector */}
438439
<div className="flex items-center space-x-2">
439440
<label className="text-sm font-semibold">Baud Rate:</label>

0 commit comments

Comments
 (0)