mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 16:12:18 -05:00
32 lines
582 B
C#
32 lines
582 B
C#
namespace ColorControl.Shared.Contracts;
|
|
|
|
public class ModuleDto
|
|
{
|
|
public bool IsActive { get; set; }
|
|
public string DisplayName { get; set; }
|
|
public string Link { get; set; }
|
|
public List<string> Info { get; set; }
|
|
|
|
public string GetIconClass()
|
|
{
|
|
if (DisplayName.Contains("NVIDIA"))
|
|
{
|
|
return "nvidia";
|
|
}
|
|
if (DisplayName.Contains("AMD"))
|
|
{
|
|
return "gpu-card";
|
|
}
|
|
if (DisplayName.Contains("LG") || DisplayName.Contains("Samsung"))
|
|
{
|
|
return "tv";
|
|
}
|
|
if (DisplayName.Contains("Game"))
|
|
{
|
|
return "controller";
|
|
}
|
|
|
|
return "plus-square-fill";
|
|
}
|
|
}
|