diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 34d6584c..f625be91 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -12,7 +12,13 @@ "options_improve_configurator": { "message": "Send anonymous usage data to the developer team" }, - + "options_unit_type": { + "message": "Set how the units render on the configurator only" + }, + "options_render": { + "message": "Configurator rendering options" + }, + "connect": { "message": "Connect" }, diff --git a/main.css b/main.css index 80672514..8351cacf 100644 --- a/main.css +++ b/main.css @@ -516,6 +516,11 @@ input[type="number"]::-webkit-inner-spin-button { z-index: 10000; } +/* options modified GUI BOX */ +#options-window .gui_box { + float: none; +} + .options_container__checkbox input { float: left; margin-top: 3px; @@ -2198,4 +2203,37 @@ ol li { .red-background td, .red-background th { background-color: tomato !important; -} \ No newline at end of file +} + +/* Wrapper for inputs with unit displays */ +.unit_wrapper { + display: inline-block; + position: relative; +} + +/* Position the unit to the right of the wrapper */ +.unit_wrapper::after { + position: absolute; + top: 2px; + right: .7em; + transition: all .05s ease-in-out; +} + +/* Move unit more to the left on hover or focus within + for arrow buttons will appear to the right of number inputs */ +.unit_wrapper:hover::after, +.unit_wrapper:focus-within::after { + right: 1.3em; +} + +/* Handle Firefox (arrows always shown) */ +@supports (-moz-appearance:none) { + .unit_wrapper::after { + right: 1.3em; + } +} + +/* Set the unit abbreviation for each unit class */ +.unit::after { + content: attr(data-unit) ; +} diff --git a/tabs/advanced_tuning.html b/tabs/advanced_tuning.html index f24e55ed..8edd2b87 100644 --- a/tabs/advanced_tuning.html +++ b/tabs/advanced_tuning.html @@ -21,7 +21,7 @@
- +
@@ -31,22 +31,22 @@
- +
- +
- +
- +
@@ -61,17 +61,17 @@
- +
- +
- +
@@ -89,12 +89,12 @@
- +
- +
@@ -216,11 +216,11 @@
- +
- +
@@ -253,19 +253,19 @@
- +
- +
- +
@@ -277,19 +277,19 @@
- +
- +
- +
@@ -324,13 +324,13 @@
- +
- +
@@ -363,13 +363,13 @@
- +
- +
@@ -387,13 +387,13 @@
- +
- +
@@ -407,13 +407,13 @@
- +
- +
@@ -451,7 +451,7 @@
- +
diff --git a/tabs/failsafe.html b/tabs/failsafe.html index 4aacf70f..1ff8fc9d 100644 --- a/tabs/failsafe.html +++ b/tabs/failsafe.html @@ -7,7 +7,7 @@
-
diff --git a/tabs/setup.js b/tabs/setup.js index eb3ffc63..d982b97a 100755 --- a/tabs/setup.js +++ b/tabs/setup.js @@ -8,6 +8,12 @@ TABS.setup = { TABS.setup.initialize = function (callback) { var self = this; + // Update the osd units in global settings + // but only if we need it + if (globalSettings.unitType === UnitType.OSD) { + get_osd_settings(); + } + if (GUI.active_tab != 'setup') { GUI.active_tab = 'setup'; googleAnalytics.sendAppView('Setup');