Titano: editor, import/archive screens, analysis and render jobs, server sync — in progress #2

Merged
Alby96 merged 86 commits from claude/keen-knuth-uhxv8w into main 2026-10-05 23:55:39 +02:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit 90321a7e53 - Show all commits

No files matched your search

+4 -1
View File
@@ -115,10 +115,13 @@ public sealed class ExposureTab : EditorTab
{
if (Editor.Session.Content.Deep is not { } deep) return (null, Loc.L("Tooltips.Editor.NotApplicable.NeedsAnalysis"));
if (deep.WhiteBalance is { KelvinLow: { } low, KelvinHigh: { } high })
return (Loc.L("Editor.Value.Kelvin", double.Round(low, -1).ToString("N0", Loc.Culture), double.Round(high, -1).ToString("N0", Loc.Culture)), null);
return (Loc.L("Editor.Value.Kelvin", RoundToTens(low).ToString("N0", Loc.Culture), RoundToTens(high).ToString("N0", Loc.Culture)), null);
return (null, Loc.L("Tooltips.Editor.NotApplicable.Kelvin"));
}
/// <summary>Kelvin shown to the nearest ten (Math.Round takes no negative digit count).</summary>
internal static double RoundToTens(double kelvin) => double.Round(kelvin / 10) * 10;
private void BuildChart()
{
var content = Editor.Session.Content;
@@ -11,6 +11,14 @@ public sealed class EditorTextTests
{
static EditorTextTests() => _ = EditorFixture.Sunset;
[Test]
public void ColourTemperatureShowsToTheNearestTen()
{
Assert.Equal(5560.0, ExposureTab.RoundToTens(5557.2));
Assert.Equal(3200.0, ExposureTab.RoundToTens(3203.9));
Assert.Equal(12_000.0, ExposureTab.RoundToTens(11_998));
}
[Test]
public void OptimiseReportsValuesAsTheControlsShowThem()
{