From 8ef77fba3bddc13f34de0c9be6eee6bd20ba8213 Mon Sep 17 00:00:00 2001 From: Carlos Zamora Date: Thu, 12 Dec 2024 14:44:32 -0800 Subject: [PATCH] Add Profile.BellSound to Settings UI (#17983) ## Summary of the Pull Request Adds the Profile.BellSound setting to the Settings UI under the Profile > Advanced page. - View changes: - The setting is exposed via an expander placed near the Profile.BellStyle setting. - Added a button to be able to preview the added sound - Added a browse button that opens a file picker - Added a delete button to be able to delete each sound entry - View model changes: - `CurrentBellSounds` keeps track of the bell sounds added and exposed via the UI. - `BellSoundViewModel` wraps each sound. This allows us to listen (and propagate) changes to the registered sounds. - `BellSoundPreview` provides a written preview of the current bell sound to display in the expander #10000 --- .github/actions/spelling/allow/allow.txt | 1 + .../CommonResources.xaml | 11 ++ .../TerminalSettingsEditor/MainPage.cpp | 12 +- .../ProfileViewModel.cpp | 183 +++++++++++++++++- .../TerminalSettingsEditor/ProfileViewModel.h | 26 ++- .../ProfileViewModel.idl | 15 ++ .../Profiles_Advanced.cpp | 78 +++++++- .../Profiles_Advanced.h | 10 + .../Profiles_Advanced.xaml | 82 ++++++++ .../Resources/en-US/Resources.resw | 47 +++++ src/cascadia/TerminalSettingsEditor/pch.h | 5 + .../TerminalSettingsModel/Profile.cpp | 12 ++ 12 files changed, 471 insertions(+), 11 deletions(-) diff --git a/.github/actions/spelling/allow/allow.txt b/.github/actions/spelling/allow/allow.txt index 64bd05d091..630edfebce 100644 --- a/.github/actions/spelling/allow/allow.txt +++ b/.github/actions/spelling/allow/allow.txt @@ -23,6 +23,7 @@ dzhe Emacspeak Fitt FTCS +flac gantt gfm ghe diff --git a/src/cascadia/TerminalSettingsEditor/CommonResources.xaml b/src/cascadia/TerminalSettingsEditor/CommonResources.xaml index 00e1fa559a..bdfec32ca1 100644 --- a/src/cascadia/TerminalSettingsEditor/CommonResources.xaml +++ b/src/cascadia/TerminalSettingsEditor/CommonResources.xaml @@ -138,6 +138,17 @@ + + +