Add freeze tag for project.

This commit is contained in:
Kolosov Alexandr 2024-12-10 19:23:46 +05:00
parent 1bc1af71c9
commit 8e518ee19e
3 changed files with 55 additions and 33 deletions

View File

@ -51,6 +51,11 @@ public class DependenciesContainer : ContainerBase
title.StyleContext = new StyleContext(Palette.DisableColor);
}
if (Project is not null && Project.Freeze)
{
title.StyleContext = new StyleContext(Palette.InfoColor);
}
_dependencies.Add(title);
}
@ -67,6 +72,11 @@ public class DependenciesContainer : ContainerBase
stub.StyleContext = new StyleContext(Palette.DisableColor);
}
if (Project is not null && Project.Freeze)
{
stub.StyleContext = new StyleContext(Palette.InfoColor);
}
_dependencies.Add(stub);
}
@ -83,6 +93,11 @@ public class DependenciesContainer : ContainerBase
stub.StyleContext = new StyleContext(Palette.DisableColor);
}
if (Project is not null && Project.Freeze)
{
stub.StyleContext = new StyleContext(Palette.InfoColor);
}
_dependencies.Add(stub);
}
@ -98,6 +113,11 @@ public class DependenciesContainer : ContainerBase
version.StyleContext = new StyleContext(Palette.DisableColor);
}
if (Project is not null && Project.Freeze)
{
version.StyleContext = new StyleContext(Palette.InfoColor);
}
_dependencies.Add(version);
}

View File

@ -11,4 +11,6 @@ public record Project(int Id, string Name, IEnumerable<string> Tags, Hub Hub)
public bool SeoDependent => Tags.Contains("seo");
public bool Legacy => Tags.Contains("legacy");
public bool Freeze => Tags.Contains("freeze");
}