Initial TaskbarLauncher release baseline
This commit is contained in:
30
Services/DisplayModeMetrics.cs
Normal file
30
Services/DisplayModeMetrics.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using TaskbarLauncher.Models;
|
||||
|
||||
namespace TaskbarLauncher.Services;
|
||||
|
||||
public static class DisplayModeMetrics
|
||||
{
|
||||
public static double GetIconSize(LauncherDisplayMode displayMode)
|
||||
{
|
||||
return displayMode switch
|
||||
{
|
||||
LauncherDisplayMode.CompactList => 14,
|
||||
LauncherDisplayMode.SmallIconWithText => 20,
|
||||
LauncherDisplayMode.LargeIconWithText => 32,
|
||||
LauncherDisplayMode.LargeIconOnly => 40,
|
||||
_ => 14
|
||||
};
|
||||
}
|
||||
|
||||
public static double GetRowHeight(LauncherDisplayMode displayMode)
|
||||
{
|
||||
return displayMode switch
|
||||
{
|
||||
LauncherDisplayMode.CompactList => 28,
|
||||
LauncherDisplayMode.SmallIconWithText => 34,
|
||||
LauncherDisplayMode.LargeIconWithText => 52,
|
||||
LauncherDisplayMode.LargeIconOnly => 56,
|
||||
_ => 28
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user