/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Services/Settings/InfoPaneSettingsService.cs
48 строк
1 KB
Steve
Code Quality: Upgrade dependencies (#16741)
09 фев 2025, 05:02
Не верифицирован
09 фев 2025, 05:02
273c947
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Services.Settings { internal sealed partial class InfoPaneSettingsService : BaseObservableJsonSettings, IInfoPaneSettingsService { public bool IsInfoPaneEnabled { get => Get(false); set => Set(value); } public double HorizontalSizePx { get => Math.Max(100d, Get(300d)); set => Set(Math.Max(100d, value)); } public double VerticalSizePx { get => Math.Max(100d, Get(250d)); set => Set(Math.Max(100d, value)); } public double MediaVolume { get => Math.Min(Math.Max(Get(1d), 0d), 1d); set => Set(Math.Max(0d, Math.Min(value, 1d))); } public InfoPaneTabs SelectedTab { get => Get(InfoPaneTabs.Details); set => Set(value); } public InfoPaneSettingsService(ISettingsSharingContext settingsSharingContext) { RegisterSettingsContext(settingsSharingContext); } protected override void RaiseOnSettingChangedEvent(object sender, SettingChangedEventArgs e) { base.RaiseOnSettingChangedEvent(sender, e); } } }