Added optional 2-pixel boarder around receiver panel.

This commit is contained in:
Marat Fayzullin 2023-03-28 16:26:35 -04:00
parent 4c856c7894
commit ea95721c88
4 changed files with 12 additions and 0 deletions

View File

@ -1056,6 +1056,11 @@ function on_ws_recv(evt) {
$('.openwebrx-panel').css('opacity', x/100);
}
if ('ui_frame' in config) {
var x = config['ui_frame'];
$('#openwebrx-panel-receiver').css('border', x? '2px solid':'');
}
break;
case "secondary_config":
var s = json['value'];

View File

@ -156,6 +156,7 @@ defaultConfig = PropertyLayer(
waterfall_auto_levels=PropertyLayer(min=3, max=10),
waterfall_auto_min_range=50,
ui_opacity=100,
ui_frame=False,
tuning_precision=2,
squelch_auto_margin=10,
google_maps_api_key="",

View File

@ -138,6 +138,7 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
"max_clients",
"tuning_precision",
"ui_opacity",
"ui_frame",
]
def __init__(self, conn):

View File

@ -7,6 +7,7 @@ from owrx.form.input import (
FloatInput,
TextAreaInput,
DropdownInput,
CheckboxInput,
Option,
)
from owrx.form.input.validator import RangeValidator
@ -173,6 +174,10 @@ class GeneralSettingsController(SettingsFormController):
validator=RangeValidator(10, 100),
append="%",
),
CheckboxInput(
"ui_frame",
"Show frame around receiver panel",
),
DropdownInput(
"tuning_precision",
"Tuning precision",