mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-19 21:33:40 +00:00
gui/plotxy: implement background ticks
Improve trace readability when is displayed on xy plot. The user is able to enable this option throughout preferences dialog.
This commit is contained in:
parent
ea8693566f
commit
6ef0d9e87a
6 changed files with 94 additions and 31 deletions
|
|
@ -70,7 +70,13 @@ public:
|
|||
struct {
|
||||
QColor background;
|
||||
QColor axis;
|
||||
QColor divisions;
|
||||
struct {
|
||||
QColor divisions;
|
||||
struct {
|
||||
bool enabled;
|
||||
QColor background;
|
||||
} Background;
|
||||
} Ticks;
|
||||
} Color;
|
||||
GraphDomainChangeBehavior domainChangeBehavior;
|
||||
struct {
|
||||
|
|
@ -93,7 +99,7 @@ private:
|
|||
QString name;
|
||||
QVariant def;
|
||||
};
|
||||
const std::array<SettingDescription, 35> descr = {{
|
||||
const std::array<SettingDescription, 37> descr = {{
|
||||
{&Startup.ConnectToFirstDevice, "Startup.ConnectToFirstDevice", true},
|
||||
{&Startup.RememberSweepSettings, "Startup.RememberSweepSettings", false},
|
||||
{&Startup.DefaultSweep.type, "Startup.DefaultSweep.type", "Frequency"},
|
||||
|
|
@ -123,7 +129,9 @@ private:
|
|||
{&Acquisition.RBWLimitForDFT, "Acquisition.RBWLimitForDFT", 3000.0},
|
||||
{&Graphs.Color.background, "Graphs.Color.background", QColor(Qt::black)},
|
||||
{&Graphs.Color.axis, "Graphs.Color.axis", QColor(Qt::white)},
|
||||
{&Graphs.Color.divisions, "Graphs.Color.divisions", QColor(Qt::gray)},
|
||||
{&Graphs.Color.Ticks.Background.enabled, "Graphs.Color.Ticks.Background.enabled", true},
|
||||
{&Graphs.Color.Ticks.Background.background, "Graphs.Color.Ticks.Background.background", QColor(Qt::white)},
|
||||
{&Graphs.Color.Ticks.divisions, "Graphs.Color.Ticks.divisions", QColor(Qt::gray)},
|
||||
{&Graphs.domainChangeBehavior, "Graphs.domainChangeBehavior", GraphDomainChangeBehavior::AdjustGraphs},
|
||||
{&Graphs.markerBehavior.showDataOnGraphs, "Graphs.markerBehavior.ShowDataOnGraphs", true},
|
||||
{&Graphs.markerBehavior.showAllData, "Graphs.markerBehavior.ShowAllData", false},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue