/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Actions/Global/SetLightThemeAction.cs
32 строки
746 B
yair100
Code Quality: Updated headers
01 июл 2026, 06:18
01 июл 2026, 06:18
c27305a
Код
Авторство
О чём код?
// Copyright (c) Files Community // SPDX-License-Identifier: MPL-2.0 using Microsoft.UI.Xaml; namespace Files.App.Actions { [GeneratedRichCommand] internal sealed partial class SetLightThemeAction : BaseAppThemeAction, IAction { public string Label => $"{Strings.LightTheme.GetLocalizedResource()} Theme"; public string Description => Strings.SwitchToLightThemeDescription.GetLocalizedResource(); public RichGlyph Glyph => new("\uE790"); public ActionCategory Category => ActionCategory.Theme; public bool IsExecutable => AppThemeModeService.AppThemeMode is not ElementTheme.Light; public Task ExecuteAsync(object? parameter = null) { SetTheme(ElementTheme.Light); return Task.CompletedTask; } } }