1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 16:55:24 +03:00

Remove the OSD preview logo switch

This commit is contained in:
Miguel Angel Mulero Martinez 2019-05-27 15:20:18 +02:00
parent aa81de133d
commit c284b5fda7
4 changed files with 1 additions and 30 deletions

View file

@ -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"
},

View file

@ -349,11 +349,6 @@
cursor: move;
}
.tab-osd .preview-logo {
position: absolute;
right: 0;
}
.tab-osd .preview .row {
height: 18px;
}

View file

@ -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(
$('<label for="preview-logo">Logo: </label><input type="checkbox" name="preview-logo" class="togglesmall"></input>')
.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) {

View file

@ -37,7 +37,7 @@
<div class="gui_box_titlebar image">
<div class="spacer_box_title">
<span i18n_title="osdSetupPreviewForTitle">
<span class="cf_tip" i18n_title="osdSetupPreviewForTitle">
<label id="osdprofile-selector-label" i18n="osdSetupPreviewSelectProfileTitle"/>
<select class="osdprofile-selector">
<!-- Populated at runtime -->
@ -46,7 +46,6 @@
<!-- Populated at runtime -->
</select>
</span>
<span class="preview-logo cf_tip" i18n_title="osdSetupPreviewTitleTip"></span>
</div>
</div>