mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:47:22 +00:00
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:
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>())
|
||||
|
||||
Reference in new issue
Block a user