From e8093b579747f3a6f5f20295a4340d72f99d3aac Mon Sep 17 00:00:00 2001
From: cTn
Date: Thu, 26 Jun 2014 15:12:38 +0200
Subject: [PATCH] polishing some of the UI outstanding quirks
---
_locales/en/messages.json | 5 +----
changelog.html | 1 +
tabs/motor_outputs.css | 36 ++++++++++++++++++------------------
tabs/motor_outputs.html | 39 +++++++++++++++++++--------------------
4 files changed, 39 insertions(+), 42 deletions(-)
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 965491ba..b42441e1 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -51,7 +51,7 @@
"message": "GPS"
},
"tab7": {
- "message": "Motor/Servo Outputs"
+ "message": "Motor Testing"
},
"tab8": {
"message": "Raw Sensor Data"
@@ -442,9 +442,6 @@
"message": "Signal Strength"
},
- "motorsBarInfo": {
- "message": "Bars on the left are representing raw PWM signal for ESCs.
Bars on the right are representing raw PWM signal for Servos.
"
- },
"motorsMaster": {
"message": "Master"
},
diff --git a/changelog.html b/changelog.html
index 4613a090..bc6d994c 100644
--- a/changelog.html
+++ b/changelog.html
@@ -3,6 +3,7 @@
- Experimental passthrough support for logging
- MSP_ANALOG support for logging
- Allow running motors (testing) while monitoring sensors
+ - Major UI changes in Motor Testing tab
- Tiny cosmetic changes
- Initial set of UI bugfixes for Chrome 36+
diff --git a/tabs/motor_outputs.css b/tabs/motor_outputs.css
index 96dfc865..8a4eae75 100644
--- a/tabs/motor_outputs.css
+++ b/tabs/motor_outputs.css
@@ -84,15 +84,19 @@
.tab-motor_outputs .left.motors {
float: left;
- margin-right: 50px;
-
width: calc(50% - 50px);
}
.tab-motor_outputs .right.servos {
- float: left;
+ float: right;
width: 50%;
}
+.tab-motor_outputs .title {
+ padding-bottom: 2px;
+
+ text-align: center;
+ font-weight: bold;
+}
.tab-motor_outputs .titles {
height: 20px;
}
@@ -118,7 +122,7 @@
float: left;
width: calc((100% / 9) - 12px);
- height: 80px;
+ height: 100px;
margin-right: 10px;
@@ -137,28 +141,23 @@
width: 100%;
}
-.tab-motor_outputs p {
- margin-top: 10px;
- margin-bottom: 10px;
- padding: 5px;
-
- border: 1px dotted silver;
-}
.tab-motor_outputs .motor_testing {
display: none;
+ margin-top: 15px;
}
.tab-motor_outputs .motor_testing .left {
- margin-right: 50px;
-
width: calc(50% - 50px);
- }
- .tab-motor_outputs .motor_testing .sliders {
}
.tab-motor_outputs .motor_testing .sliders input {
-webkit-appearance: slider-vertical;
- width: calc((100% / 9) - 3px); /* - (width / 9 elements, not sure about -3 */
- height: 80px;
+ width: calc((100% / 9) - 13px);
+ height: 100px;
+
+ margin-right: 10px;
+ }
+ .tab-motor_outputs .motor_testing .sliders input:first-child {
+ /* margin-left: 2px; */ /* seems to vary depending on chrome version O.o */
}
.tab-motor_outputs .motor_testing .values {
margin-top: 5px;
@@ -166,7 +165,8 @@
.tab-motor_outputs .motor_testing .values li {
float: left;
- width: calc((100% / 9));
+ width: calc((100% / 9) - 10px);
+ margin-right: 10px;
text-align: center;
}
diff --git a/tabs/motor_outputs.html b/tabs/motor_outputs.html
index 605fdeed..6717554f 100644
--- a/tabs/motor_outputs.html
+++ b/tabs/motor_outputs.html
@@ -40,15 +40,16 @@
+
Motors
- - M - 1
- - M - 2
- - M - 3
- - M - 4
- - M - 5
- - M - 6
- - M - 7
- - M - 8
+ - 1
+ - 2
+ - 3
+ - 4
+ - 5
+ - 6
+ - 7
+ - 8
+
Servos
- - S - 8
- - S - 7
- - S - 6
- - S - 5
- - S - 4
- - S - 3
- - S - 2
- - S - 1
+ - 8
+ - 7
+ - 6
+ - 5
+ - 4
+ - 3
+ - 2
+ - 1
-
-
\ No newline at end of file