mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
ColorGradient - Fixed GetColor returning the first stop if position was after the last stop
20 lines
408 B
C#
20 lines
408 B
C#
using System;
|
|
|
|
namespace Artemis.UI.Screens.Settings;
|
|
|
|
public class SettingsTab
|
|
{
|
|
public SettingsTab(string path, string name)
|
|
{
|
|
Path = path;
|
|
Name = name;
|
|
}
|
|
|
|
public string Path { get; set; }
|
|
public string Name { get; set; }
|
|
|
|
public bool Matches(string path)
|
|
{
|
|
return path.StartsWith($"settings/{Path}", StringComparison.InvariantCultureIgnoreCase);
|
|
}
|
|
} |