/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/powerdisplay/PowerDisplay.Contracts/CliSettingNames.cs
41 строка
1 KB
moooyo
feat(powerdisplay): add CLI for monitor control (#48632)
16 июл 2026, 18:08
Не верифицирован
16 июл 2026, 18:08
5c9c93d
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace PowerDisplay.Contracts; /// <summary> /// Canonical setting names accepted by the CLI (the value of <c>--setting</c> and the /// per-setting <c>--<name></c> flags). Shared by the CLI argument layer and the app-side /// executor/projector so the single list cannot drift between the two sides. The same /// identifiers appear in <see cref="CliSettingValue.Setting"/> so JSON consumers can /// switch on them. /// </summary> public static class CliSettingNames { public const string Brightness = "brightness"; public const string Contrast = "contrast"; public const string Volume = "volume"; public const string ColorTemperature = "color-temperature"; public const string InputSource = "input-source"; public const string PowerState = "power-state"; public const string Orientation = "orientation"; /// <summary>All canonical setting names, in canonical (display) order.</summary> public static readonly string[] All = [ Brightness, Contrast, Volume, ColorTemperature, InputSource, PowerState, Orientation, ]; }