/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App.Controls/ThemedIcon/ThemedIcon.Consts.cs
67 строк
3 KB
Yair
Code Quality: Ran code cleanup (#17307)
25 июл 2025, 03:57
Не верифицирован
25 июл 2025, 03:57
4558bc2
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Controls { // Template Parts [TemplatePart(Name = FilledPathIconViewBox, Type = typeof(Viewbox))] [TemplatePart(Name = OutlinePathIconViewBox, Type = typeof(Viewbox))] [TemplatePart(Name = LayeredPathIconViewBox, Type = typeof(Viewbox))] [TemplatePart(Name = LayeredPathCanvas, Type = typeof(Canvas))] // Icon Type Visual States [TemplateVisualState(Name = OutlineTypeStateName, GroupName = IconTypeStateGroupName)] [TemplateVisualState(Name = LayeredTypeStateName, GroupName = IconTypeStateGroupName)] [TemplateVisualState(Name = FilledTypeStateName, GroupName = IconTypeStateGroupName)] // Icon Color Visual States [TemplateVisualState(Name = NormalStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = CriticalStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = CautionStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = SuccessStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = NeutralStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = AccentStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = CustomColorStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = ToggleStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = DisabledColorStateName, GroupName = IconColorStateGroupName)] [TemplateVisualState(Name = DisabledToggleColorStateName, GroupName = IconColorStateGroupName)] // Icon IsEnabled Visual States [TemplateVisualState(Name = EnabledStateName, GroupName = EnabledStateGroupName)] [TemplateVisualState(Name = DisabledStateName, GroupName = EnabledStateGroupName)] public partial class ThemedIcon { // Visual State Group Names internal const string IconTypeStateGroupName = "IconTypeStates"; internal const string IconColorStateGroupName = "IconColorStates"; internal const string EnabledStateGroupName = "EnabledStates"; // "Icon Type" Visual State Names internal const string OutlineTypeStateName = "Outline"; internal const string FilledTypeStateName = "Filled"; internal const string LayeredTypeStateName = "Layered"; // "Icon State" Visual State Names internal const string NormalStateName = "Normal"; internal const string CriticalStateName = "Critical"; internal const string CautionStateName = "Caution"; internal const string SuccessStateName = "Success"; internal const string NeutralStateName = "Neutral"; internal const string AccentStateName = "Accent"; internal const string CustomColorStateName = "Custom"; internal const string ToggleStateName = "Toggle"; internal const string DisabledColorStateName = "DisabledColor"; internal const string DisabledToggleColorStateName = "DisabledToggleColor"; // "Enabled" Visual State Names internal const string EnabledStateName = "Enabled"; internal const string DisabledStateName = "Disabled"; // ViewBox Controls internal const string FilledPathIconViewBox = "PART_FilledIconViewBox"; internal const string OutlinePathIconViewBox = "PART_OutlineIconViewBox"; internal const string LayeredPathIconViewBox = "PART_LayeredIconViewBox"; internal const string LayeredPathCanvas = "PART_LayerCanvas"; // Path Controls internal const string FilledIconPath = "PART_FilledPath"; internal const string OutlineIconPath = "PART_OutlinePath"; } }