Use file-scoped namespaces (#842)

This commit is contained in:
PhyxionNL
2022-10-09 13:22:57 +02:00
committed by GitHub
parent 3ac329f247
commit 58cef111a1
175 changed files with 34026 additions and 34204 deletions
+22 -23
View File
@@ -1,34 +1,33 @@
using OxyPlot;
using OxyPlot.Legends;
namespace LibreHardwareMonitor.UI
namespace LibreHardwareMonitor.UI;
class ScaledPlotModel : PlotModel
{
class ScaledPlotModel : PlotModel
public ScaledPlotModel(double dpiXscale, double dpiYscale)
{
public ScaledPlotModel(double dpiXscale, double dpiYscale)
{
PlotMargins = new OxyThickness(PlotMargins.Left * dpiXscale,
PlotMargins.Top * dpiYscale,
PlotMargins.Right * dpiXscale,
PlotMargins.Bottom * 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);
Padding = new OxyThickness(Padding.Left * dpiXscale,
Padding.Top * dpiYscale,
Padding.Right * dpiXscale,
Padding.Bottom * dpiYscale);
TitlePadding *= dpiXscale;
TitlePadding *= dpiXscale;
Legend legend = new();
Legend legend = new();
legend.LegendSymbolLength *= dpiXscale;
legend.LegendSymbolMargin *= dpiXscale;
legend.LegendPadding *= dpiXscale;
legend.LegendColumnSpacing *= dpiXscale;
legend.LegendItemSpacing *= dpiXscale;
legend.LegendMargin *= dpiXscale;
legend.LegendSymbolLength *= dpiXscale;
legend.LegendSymbolMargin *= dpiXscale;
legend.LegendPadding *= dpiXscale;
legend.LegendColumnSpacing *= dpiXscale;
legend.LegendItemSpacing *= dpiXscale;
legend.LegendMargin *= dpiXscale;
Legends.Add(legend);
}
Legends.Add(legend);
}
}
}