eecdd53eb8
## Summary of the Pull Request ![cmdpal-set-color-scheme](https://user-images.githubusercontent.com/18356694/90517094-8eddd480-e12a-11ea-8be4-8b6782d8d88c.gif) Allows for creating commands that iterate over the user's color schemes. Also adds a top-level nested command to `defaults.json` that allows the user to select a color scheme (pictured above). I'm not sure there are really any other use cases that make sense, but it _really_ makes sense for this one. ## References * #5400 - cmdpal megathread * made possible by #6856, _and support from viewers like you._ * All this is being done in pursuit of #6689 ## PR Checklist * [x] Closes wait what? I could have swore there was an issue for this one... * [x] I work here * [x] Tests added/passed * [ ] Requires documentation to be updated - okay maybe now I'll write some docs ## Detailed Description of the Pull Request / Additional comments Most of the hard work for this was already done in #6856. This is just another thing to iterate over. ## Validation Steps Performed * Played with this default command. It works great. * Added tests.
36 lines
559 B
C++
36 lines
559 B
C++
/*++
|
|
Copyright (c) Microsoft Corporation
|
|
Licensed under the MIT license.
|
|
|
|
Module Name:
|
|
- SettingsTypes.h
|
|
|
|
Abstract:
|
|
- Types used in the settings model (non-exported)
|
|
--*/
|
|
|
|
#pragma once
|
|
|
|
namespace TerminalApp
|
|
{
|
|
enum class CloseOnExitMode
|
|
{
|
|
Never = 0,
|
|
Graceful,
|
|
Always
|
|
};
|
|
|
|
struct LaunchPosition
|
|
{
|
|
std::optional<int> x;
|
|
std::optional<int> y;
|
|
};
|
|
|
|
enum class ExpandCommandType : uint32_t
|
|
{
|
|
None = 0,
|
|
Profiles,
|
|
ColorSchemes
|
|
};
|
|
};
|