Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
return;
}

ConfigurationManager.Enable (ConfigLocations.All);
// Terminal.Gui 2.5 dropped ConfigurationManager (tui-cs/Terminal.Gui#5416). Library
// defaults, ~/.tui, ./.tui, and TUI_CONFIG are applied at assembly load via
// TuiConfigurationBuilder.Shared; re-apply explicitly so config is fresh at startup.
new TuiConfigurationBuilder ().ApplyToStaticFacades ();

if (print)
{
Expand Down Expand Up @@ -307,7 +310,12 @@ static void RunFullScreen (List<string> files, ThemeName syntaxTheme)
return;
}

// TG 2.5 marks GetThemeForBackground [Obsolete] (syntax colors now resolve from
// ThemeManager.Theme via VisualRole.Code* roles); it still works. Migrating the
// auto light/dark TextMate theme selection is tracked as follow-up.
#pragma warning disable CS0618 // Type or member is obsolete
ThemeName autoTheme = TextMateSyntaxHighlighter.GetThemeForBackground (attr.Background);
#pragma warning restore CS0618
markdownView.SyntaxHighlighter = new TextMateSyntaxHighlighter (autoTheme);
themeDropDown.Value = autoTheme;
};
Expand Down
2 changes: 1 addition & 1 deletion mdv.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.CommandLine" Version="2.0.6" />
<PackageReference Include="Terminal.Gui" Version="2.0.0-rc.3" />
<PackageReference Include="Terminal.Gui" Version="2.5.0-beta.1" />
</ItemGroup>
</Project>