-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added requestedTheme option into terminal settings #710
Conversation
The most common scenarios should be there in the GUI, with a button in the settings screen to open the commented JSON file with advanced settings |
This change just exposes that setting in the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good thinking to add this as an option!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a tiny nit pick newline comment, but I also want an answer to @DHowett-MSFT's question before I sign.
@DHowett-MSFT yes, this change just exposes the setting to change the theme in the json file. |
@@ -154,6 +154,8 @@ void CascadiaSettings::_CreateDefaultProfiles() | |||
_profiles.emplace_back(cmdProfile); | |||
|
|||
_globals.SetDefaultProfile(powershellProfile.GetGuid()); | |||
|
|||
_globals.SetRequestedTheme(winrt::Windows::UI::Xaml::ElementTheme::Default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CreateDefaultProfiles
isn't a great place for this .. is there something more generic or less default-profile-related to put it?
That makes sense. Thanks! |
I found what was blocking the serialization of the requestedTheme value in the json file. Now it works. |
Co-Authored-By: Dustin L. Howett (MSFT) <duhowett@microsoft.com>
Hello @DHowett-MSFT! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me and give me an instruction to get started! Learn more here. |
As far as I can tell, Michael's only blocker was getting an answer to my question. As it's been answered satisfactorily, I'm clearing his block.
Added the possibility to change the theme (dark/light/default) from the terminal settings