瀏覽代碼

minotr style change

Tuan Nguyen 11 月之前
父節點
當前提交
f6d948769c
共有 2 個文件被更改,包括 11 次插入5 次删除
  1. 7 1
      static/css/style.css
  2. 4 4
      templates/index.html

+ 7 - 1
static/css/style.css

@@ -40,6 +40,8 @@
     --color-warning: #FF9800CC;
     --color-error: #E53935CC;
 
+    --color-success-dark: #4CAF50CC;
+
     /* Default to light theme */
     --background-primary: var(--background-primary-light);
     --background-secondary: var(--background-secondary-light);
@@ -1563,7 +1565,7 @@ input[type="number"]:focus {
 }
 
 :root[data-theme="dark"] button.cta:hover {
-    background: var(--color-success) !important;
+    background: var(--color-success-dark) !important;
 }
 
 :root[data-theme="dark"] button.warn:hover {
@@ -1576,3 +1578,7 @@ input[type="number"]:focus {
     color: var(--theme-primary-dark);
 }
 
+:root[data-theme="dark"] .header #open-settings-button:hover {
+    background: var(--color-success-dark);
+    color: var(--text-primary-dark);
+}

+ 4 - 4
templates/index.html

@@ -238,8 +238,8 @@
             </div>
             <div class="action-buttons square">
                 <button onclick="stopExecution()" class="cancel"><i class="fa-solid fa-stop"></i><span class="small">Stop</span></button>
-                <button onclick="moveToCenter()"><i class="fa-regular fa-circle-dot"></i><span class="small">Move to Center</span></button>
-                <button onclick="moveToPerimeter()"><i class="fa-solid fa-circle-notch"></i><span class="small">Move to Perimeter</span></button>
+                <button onclick="moveToCenter()" class="cta"><i class="fa-regular fa-circle-dot"></i><span class="small">Move to Center</span></button>
+                <button onclick="moveToPerimeter()" class="cta"><i class="fa-solid fa-circle-notch"></i><span class="small">Move to Perimeter</span></button>
                 <button onclick="sendHomeCommand()" class="warn"><i class="fa-solid fa-house"></i><span class="small">Home</span></button>
                 <div class="scrollable-selection">
                     <div class="selection-container">
@@ -266,7 +266,7 @@
                     <input type="number" id="rho_input" placeholder="Rho">
                 </div>
                 <div class="item cta">
-                    <button onclick="sendCoordinate()">
+                    <button onclick="sendCoordinate()" class="cta">
                         <i class="fa-solid fa-map-pin"></i><span class="small">Send</span>
                     </button>
                 </div>
@@ -280,7 +280,7 @@
                     <input type="number" id="speed_input" placeholder="1-100" min="1" step="1" max="100">
                 </div>
                 <div class="item cta">
-                    <button class="small-button" onclick="changeSpeed()">
+                    <button class="small-button cta" onclick="changeSpeed()">
                         <i class="fa-solid fa-gauge-high"></i>
                         <span class="small">Set Speed</span>
                     </button>