31 lines
863 B
C#
31 lines
863 B
C#
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
|
|
};
|
|
}
|
|
}
|