The stylesheet is mostly for convenience.
It allows me to store styles like:
#my_plot {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: 0 white, stop: 0.2 lightgrey, stop: 1 darkgray);
}
#my_plot {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: 0 white, stop: 0.2 lightgrey, stop: 1 darkgray);
}
To copy to clipboard, switch view to plain text mode
or
#my_plot {
background-color: lightsteelblue;
}
#my_plot {
background-color: lightsteelblue;
}
To copy to clipboard, switch view to plain text mode
as a simple string in a configuration file.
I guess the easy way out is to change my config file format a bit and add the gradient code as you suggested.
Stylesheet support would be a nice feature to have though, you could then easily change the complete look of a plot simply by setting a new stylesheet.
Thanks,
Xander.
Bookmarks