Added a setting to change the size of the interface (#1136)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Paul KoudelkaandThorsten Sommer authored and GitHub committed 2026-10-30 20:01:57 +01:00
1 parent c2b62c6dbd
commit e0337a99bc
27 files changed
+1742 -27

No files matched your search

@@ -146,6 +146,19 @@ public static class ConfigurationSelectDataFactory
yield return new(TB("Settings"), StartPage.SETTINGS);
}
/// <summary>
/// The interface sizes a screen offers.
/// </summary>
/// <param name="offerAppDefault">Whether to offer the app default, which only differs from the system scaling on the screen of a laptop.</param>
public static IEnumerable<ConfigurationSelectData<InterfaceSize>> GetInterfaceSizeData(bool offerAppDefault)
{
yield return new(TB("System scaling"), InterfaceSize.SYSTEM_SCALING);
if (offerAppDefault)
yield return new(TB("App default"), InterfaceSize.APP_DEFAULT);
yield return new(TB("Custom"), InterfaceSize.CUSTOM);
}
public static IEnumerable<ConfigurationSelectData<IconSources>> GetIconSourcesData()
{
foreach (var source in Enum.GetValues<IconSources>())