From c284b5fda7efce470c5d74c7aa1a30b4fdb5ace5 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Mon, 27 May 2019 15:20:18 +0200 Subject: [PATCH] Remove the OSD preview logo switch --- locales/en/messages.json | 3 --- src/css/tabs/osd.css | 5 ----- src/js/tabs/osd.js | 20 -------------------- src/tabs/osd.html | 3 +-- 4 files changed, 1 insertion(+), 30 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index dcf09c46..862137d0 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -3616,9 +3616,6 @@ "message": "Font {{fontName}}", "description": "Content of the selector for the OSD Font in the preview" }, - "osdSetupPreviewTitleTip": { - "message": "Show or hide the logo in the preview window. This will not change any settings on the flight controller." - }, "osdSetupVideoFormatTitle": { "message": "Video Format" }, diff --git a/src/css/tabs/osd.css b/src/css/tabs/osd.css index 7f2c1da2..59564919 100644 --- a/src/css/tabs/osd.css +++ b/src/css/tabs/osd.css @@ -349,11 +349,6 @@ cursor: move; } -.tab-osd .preview-logo { - position: absolute; - right: 0; -} - .tab-osd .preview .row { height: 18px; } diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 12209384..fad90a0e 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -271,7 +271,6 @@ OSD.initData = function () { display_items: [], timers: [], last_positions: {}, - preview_logo: true, preview: [], tooltips: [], osd_profiles: {} @@ -1947,17 +1946,6 @@ TABS.osd.initialize = function (callback) { } $('.supported').fadeIn(); - // show Betaflight logo in preview - var $previewLogo = $('.preview-logo').empty(); - $previewLogo.append( - $('') - .attr('checked', OSD.data.preview_logo) - .change(function (e) { - OSD.data.preview_logo = $(this).attr('checked') == undefined; - updateOsdView(); - }) - ); - // video mode var $videoTypes = $('.video-types').empty(); for (var i = 0; i < OSD.constants.VIDEO_TYPES.length; i++) { @@ -2303,14 +2291,6 @@ TABS.osd.initialize = function (callback) { for (var i = 0; i < OSD.data.display_size.total; i++) { OSD.data.preview.push([null, ' '.charCodeAt(0), null, null]); } - // logo first, so it gets overwritten by subsequent elements - if (OSD.data.preview_logo) { - var x = 160; - for (var i = 1; i < 5; i++) { - for (var j = 3; j < 27; j++) - OSD.data.preview[i * 30 + j] = [{ name: 'LOGO', positionable: false }, x++, i, j]; - } - } // draw all the displayed items and the drag and drop preview images for (let field of OSD.data.display_items) { diff --git a/src/tabs/osd.html b/src/tabs/osd.html index 04035d98..0e100954 100644 --- a/src/tabs/osd.html +++ b/src/tabs/osd.html @@ -37,7 +37,7 @@
- + -