mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:37:33 +00:00
Add Spectrum gradient fill toggle in settings
Mirror the existing Wideband gradient fill option for the main spectrum: a "Spectrum gradient fill" checkbox on the Display settings tab gates the under-curve gradient in TSpectrumView.DrawSpectrum. The curve, grid, filter band and VFO markers always draw; only the gradient is optional. Persisted as spectrum_fill in settings JSON (default True, preserving current appearance). Wired through Settings -> SettingsForm visibility event -> MainForm -> TSpectrumView.FillSpectrum, same path as WidebandFill. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
2a7bf8528a
commit
655d242d02
@@ -224,6 +224,7 @@ type
|
||||
ShowWaterfall: Boolean; // True = draw waterfall on main form
|
||||
ShowWideband: Boolean; // True = draw raw ADC wideband pane on main form
|
||||
WidebandFill: Boolean; // True = fill wideband spectrum with gradient
|
||||
SpectrumFill: Boolean; // True = fill main spectrum under the curve with gradient
|
||||
DisplayDuplex: Boolean; // DUP: при TX показывать RX-водопад, TX-фильтр overlay'ем
|
||||
// --- Display FPS ---
|
||||
DisplayFPS: Integer; // spectrum/waterfall timer fps (1..100)
|
||||
@@ -402,6 +403,7 @@ begin
|
||||
G.ShowWaterfall := True;
|
||||
G.ShowWideband := False;
|
||||
G.WidebandFill := False;
|
||||
G.SpectrumFill := True;
|
||||
G.DisplayDuplex := False;
|
||||
G.DisplayFPS := 60;
|
||||
G.FreqMhzDigits := 3;
|
||||
@@ -621,6 +623,7 @@ begin
|
||||
G.ShowWaterfall := JB(GObj,'show_waterfall',True);
|
||||
G.ShowWideband := JB(GObj,'show_wideband',False);
|
||||
G.WidebandFill := JB(GObj,'wideband_fill',False);
|
||||
G.SpectrumFill := JB(GObj,'spectrum_fill',True);
|
||||
G.DisplayDuplex := JB(GObj,'display_duplex',False);
|
||||
G.DisplayFPS := JI(GObj,'display_fps',60);
|
||||
G.LightTheme := JB(GObj,'light_theme',False);
|
||||
@@ -708,6 +711,7 @@ begin
|
||||
JW(O,'show_waterfall',G.ShowWaterfall);
|
||||
JW(O,'show_wideband',G.ShowWideband);
|
||||
JW(O,'wideband_fill',G.WidebandFill);
|
||||
JW(O,'spectrum_fill',G.SpectrumFill);
|
||||
JW(O,'display_duplex',G.DisplayDuplex);
|
||||
JW(O,'display_fps',G.DisplayFPS);
|
||||
JW(O,'light_theme',G.LightTheme);
|
||||
|
||||
Reference in New Issue
Block a user