first commit

This commit is contained in:
2025-04-07 07:44:27 -07:00
commit d6cde0c05e
512 changed files with 142392 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using OxyPlot;
using OxyPlot.Legends;
namespace LibreHardwareMonitor.UI;
class ScaledPlotModel : PlotModel
{
public ScaledPlotModel(double dpiXscale, double dpiYscale)
{
PlotMargins = new OxyThickness(PlotMargins.Left * dpiXscale,
PlotMargins.Top * dpiYscale,
PlotMargins.Right * dpiXscale,
PlotMargins.Bottom * dpiYscale);
Padding = new OxyThickness(Padding.Left * dpiXscale,
Padding.Top * dpiYscale,
Padding.Right * dpiXscale,
Padding.Bottom * dpiYscale);
TitlePadding *= dpiXscale;
Legend legend = new();
legend.LegendSymbolLength *= dpiXscale;
legend.LegendSymbolMargin *= dpiXscale;
legend.LegendPadding *= dpiXscale;
legend.LegendColumnSpacing *= dpiXscale;
legend.LegendItemSpacing *= dpiXscale;
legend.LegendMargin *= dpiXscale;
Legends.Add(legend);
}
}