From fa8b45b74a38ee60cec05cc4b21bf45f79daae78 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 02:44:14 -0500 Subject: [PATCH] style: Update TurtleCard and TurtleDetails components for improved UI consistency --- client/src/components/ControlPanel.jsx | 40 +++++++++++++------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/client/src/components/ControlPanel.jsx b/client/src/components/ControlPanel.jsx index 6ed0763..1dd54e8 100644 --- a/client/src/components/ControlPanel.jsx +++ b/client/src/components/ControlPanel.jsx @@ -9,22 +9,22 @@ function TurtleCard({ turtle, isSelected, onSelect }) { const displayName = turtle.label || `Turtle ${turtle.turtleID}`; const modeColors = { - mining: '#4ade80', - exploring: '#60a5fa', - returning: '#f59e0b', - goHome: '#f59e0b', - idle: '#9ca3af', - manual: '#a78bfa', - refueling: '#ef4444', - farming: '#22c55e', - dumpInventory: '#a855f7', - dumping: '#a855f7', - moving: '#06b6d4', - scan: '#8b5cf6', - extraction: '#f97316', - building: '#14b8a6', - autocraft: '#ec4899', - unknown: '#6b7280' + mining: '#55ff55', + exploring: '#55ffff', + returning: '#ffaa00', + goHome: '#ffaa00', + idle: '#aaaaaa', + manual: '#ff55ff', + refueling: '#ff5555', + farming: '#55ff55', + dumpInventory: '#aa00aa', + dumping: '#aa00aa', + moving: '#55ffff', + scan: '#5555ff', + extraction: '#ffaa00', + building: '#00aaaa', + autocraft: '#ff55ff', + unknown: '#555555' }; return ( @@ -132,7 +132,7 @@ function TurtleDetails({ turtle }) { return (
-

{displayName} #{turtle.turtleID}

+

{displayName} #{turtle.turtleID}

{/* Rename + Config bar */}
@@ -143,7 +143,7 @@ function TurtleDetails({ turtle }) { onKeyDown={(e) => e.key === 'Enter' && handleRename()} placeholder="Rename turtle..." className="rename-input" - style={{ flex: 1, minWidth: '120px', padding: '4px 8px', borderRadius: '4px', border: '1px solid #4b5563', background: '#1f2937', color: '#fff' }} + style={{ flex: 1, minWidth: '120px', padding: '4px 8px', border: '2px solid #333', background: '#1a1a1a', color: '#e0e0e0' }} /> @@ -153,12 +153,12 @@ function TurtleDetails({ turtle }) { {/* Config Modal */} {showConfig && ( -
+

⚙️ Configuration