Prepare for Avalonia app - rename LHM UI project (#2360)

* Prepare for Avalonia app - rename LHM UI project.

* Rename

* Fix icons not being displayed.

* Rename workflow project
This commit is contained in:
Blacktempel
2026-05-15 10:29:57 +02:00
committed by GitHub
parent 91b01784ca
commit e1f284cbb6
133 changed files with 133 additions and 131 deletions
@@ -0,0 +1,33 @@
using OxyPlot;
using OxyPlot.Legends;
namespace LibreHardwareMonitor.Windows.Forms.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);
}
}