Implement a Settings UI for Windows Terminal. This UI should read from and update the settings.json file. The user should still be able to edit the JSON directly, if so desired.
Spec & Design: #6720
By @carlos-zamora. We're working off of the feature/settings-ui
branch. It runs the same CI as master
. The idea is that you make PRs targeting feature/settings-ui
and when the Settings UI is ready for delivery, we merge it into master
.
We're basically starting with #7370.
These work items generally won't touch _any_ UI or XAML.
ConversionTrait
, which is used to convert settings from JSON to our settings objects (FromJson()
). We should be able to introduce a ToJson()
function to ConversionTrait
. This will mainly handle individual settings being converted to their enum value. (PR #7609)ToJson()
as a function on full settings objects (i.e: Profile, GlobalAppSettings, etc...) (PR #8018)openSettings
command to open the Settings UIThese work items may touch a bit of the XAML. You'll have to touch the TerminalSettingsEditor
project, but you won't be too caught up in the polish of icons, margins, etc.
TerminalSettingsEditor
into a DLLTerminalSettingsEditor
into a tab for TerminalObjectModel
objects in the prototype with real TerminalSettingsModel
object referencesTerminalSettingsModel
ColorSchemes.xaml
button color flyouts should be all in a single control.Resources.resw
(PR #7833)Utils
's GetFontIcon
function with Command
's magic icon handler as per #7802These work items include a bit more design work. Make sure you look at the mockups in #6720.
These are bugs that the team is finding as we selfhost the feature branch. This method will be used until the feature branch gets merged into master. At that point, we'll submit bugs normally.
<Import Project="$(SolutionDir)build\rules\CollectWildcardResources.targets" />
to TSM and TSE vcxproj (PR #7966 #7967 )SettingsTab
(PR #8012 )By @cinnamon-msft. Content within these designs is not final and will be modified. They're simply here for demonstration.
Before anyone asks, _yes_ the plan includes having a good live preview of things that could reasonably be expected to be seen in a terminal.
How would you move between different profile's settings?
Perhaps you could implement a ComboBox in the left NavigationPane to choose a Profile, to which the settings would apply?
_Your Phone does this_
Even if you decide not to use Acrylic for the Settings' NavigaitonView Pane, could you please Extend the Title Bar so the navigation view touches the top of the window?
The plan at the moment is to have a profiles item in the menu on the left and a drop down of all your profiles in the main content area, with fields populated according to the JSON properties and a preview window to show your updated settings.
We don't have mocks of this just yet đ
Regarding color schemes: per #1750, all iTerm2 color schemes have been ported to Windows Terminal.
To be clear, there is currently (Sunday, July 7, 2019) no Settings functionality at all, correct? Clicking the "Settings" menu item from the triangle drop-down has no effect on my system.
To be clear, there is currently (Sunday, July 7, 2019) no Settings functionality at all, correct? Clicking the "Settings" menu item from the triangle drop-down has no effect on my system.
It _should_ open the profiles.json file, which allows you to change the settings - but eventually there will be a GUI for this file.
To be clear, there is currently (Sunday, July 7, 2019) no Settings functionality at all, correct? Clicking the "Settings" menu item from the triangle drop-down has no effect on my system.
It _should_ open the profiles.json file, which allows you to change the settings - but eventually there will be a GUI for this file.
When I click the settings menu option, it has no effect. I'm using the preview from the windows store. Should I download and build instead?
When I click the settings menu option, it has no effect. I'm using the preview from the windows store. Should I download and build instead?
It should open the profiles.json file inside your default editor for json files. Perhaps you don't have a default set within Windows?
A new preview build is due on the thirtieth so hold on a little while if you want to test something stable
To be clear, there is currently (Sunday, July 7, 2019) no Settings functionality at all, correct? Clicking the "Settings" menu item from the triangle drop-down has no effect on my system.
It _should_ open the profiles.json file, which allows you to change the settings - but eventually there will be a GUI for this file.
When I click the settings menu option, it has no effect. I'm using the preview from the windows store. Should I download and build instead?
Maybe you should check your default JSON file editor first.
My idea for a settings UI.
The settings page should be an overlay.
First Page: A full screen splash screen overlay, like windows settings.
Tab âProfilesâ: Each profile has its own submenu tab where you can set name, commandline, starting dir, startup parameter, font face, font size, acrylic, opacity, background color or image, font color and icon. The selections should update the preview in real-time.
Tab âGeneralâ: This is the settings page with general settings like cursor size, overall font face and font size. Some other settings that are also global should be selected here.
The second submenu of âGeneralâ is layout, where you can tweak the buffer size, windows size and position.
With the X next to settings, you close the settings overlay.
With the arrow next to General or Profiles you go back to the Settings âSplash screenâ
https://youtu.be/veqs2WVou9M?t=525 (5 seconds) â Dustin, come on... :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue:
My idea for a settings UI.
The settings page should be an overlay.
First Page: A full screen splash screen overlay, like windows settings.
Tab âProfilesâ: Each profile has its own submenu tab where you can set name, commandline, starting dir, startup parameter, font face, font size, acrylic, opacity, background color or image, font color and icon. The selections should update the preview in real-time.
Tab âGeneralâ: This is the settings page with general settings like cursor size, overall font face and font size. Some other settings that are also global should be selected here.
The second submenu of âGeneralâ is layout, where you can tweak the buffer size, windows size and position.With the X next to settings, you close the settings overlay.
With the arrow next to General or Profiles you go back to the Settings âSplash screenâ
The idea of a setting UI would save a lot of time and effort to customize the terminal, I tried adding a new profile along with personalized settings and it took out quite a chunk of time that included checking on Google on how to do it and to save it (profile.json) and re-launch the terminal to see if it works. If not, then repeat. (Yes I am a noob at manually doing it this way and prefer to have a UI. It's a personal preference shared not by me only but others as well).
The mock UI referenced here, though not polished and missing a few things (including adding background image), is far better than manually editing the json file. This feature is extremely crucial and should be available by the next major preview release or final release as this will enable users to focus on how well the terminal reacts to multiple customizations with changes being previewed.
At the same time, this is a developer tool. Some amount of manual configuration file editing is to be expected, possibly even as late as 1.0. And you donât need to relaunch terminal to see the effects of your editing.
My idea for a settings UI.
The settings page should be an overlay.
First Page: A full screen splash screen overlay, like windows settings.
Tab âProfilesâ: Each profile has its own submenu tab where you can set name, commandline, starting dir, startup parameter, font face, font size, acrylic, opacity, background color or image, font color and icon. The selections should update the preview in real-time.
Tab âGeneralâ: This is the settings page with general settings like cursor size, overall font face and font size. Some other settings that are also global should be selected here.
The second submenu of âGeneralâ is layout, where you can tweak the buffer size, windows size and position.
With the X next to settings, you close the settings overlay.
With the arrow next to General or Profiles you go back to the Settings âSplash screenâThe idea of a setting UI would save a lot of time and effort to customize the terminal, I tried adding a new profile along with personalized settings and it took out quite a chunk of time that included checking on Google on how to do it and to save it (profile.json) and re-launch the terminal to see if it works. If not, then repeat. (Yes I am a noob at manually doing it this way and prefer to have a UI. It's a personal preference shared not by me only but others as well).
The mock UI referenced here, though not polished and missing a few things (including adding background image), is far better than manually editing the json file. This feature is extremely crucial and should be available by the next major preview release or final release as this will enable users to focus on how well the terminal reacts to multiple customizations with changes being previewed.
Glad you like it. Yea a background image selection button is missing. But there is room for that..
The Settings UI wouldn't need to cover EVERY setting you can set. Anything that affects the visuals of the app, should be there. A link to open the JSON file should be there. A link to a complete list of settings you can add should be there.
Previews for things like Cursor Shape, Acrylic, Background Images, Colours - would make a lot of sense, so someone can try out color schemes, before committing.
Also as some settings are per profile, and others are app wide - some kind of drop down to choose the profile to be edited, would probably be a good idea.
The Settings UI wouldn't need to cover EVERY setting you can set. Anything that affects the visuals of the app, should be there. A link to open the JSON file should be there. A link to a complete list of settings you can add should be there.
Previews for things like Cursor Shape, Acrylic, Background Images, Colours - would make a lot of sense, so someone can try out color schemes, before committing.
Also as some settings are per profile, and others are app wide - some kind of drop down to choose the profile to be edited, would probably be a good idea.
2nd image in my concept shows profiles(on the left side) and the settings for it on the main page.
2nd image in my concept shows profiles(on the left side) and the settings for it on the main page.
I did a similar mock up a while back :)
I think this would be a major improvement. Could this please be pushed out as soon as possible?
@yellow-starburst you can generally use our Milestones and Projects view (or the active milestone for any specific issue) to figure that out. A settings UI is not in-plan for version 1.0.
I tried to make a small UI for the profiles.json file using Python and Tkinter. While the UI is not very good and doesn't really follow the Windows 10 design scheme (because I am only familiar with those technologies), it does the job of editing the profiles.json file.
If someone wishes, they can check it out here
@DHowett-MSFT while this is not within scope for 1.0, would it not be accepted from external developers for 1.0?
@SamuelEnglard external PRs are always welcomes no matter what issue/feature request they're targetting.
Pretty much yea. If you could put something together in the 1.0 timeframe we'd happily accept it, but that might be a tall ask đ
So, this one requires a little caution. Kayla has a vision about what she wants to accomplish, but I think that that's something we can communicate with the public. We're not going to land something for v1.0 at any rate, but I absolutely don't want to discourage community work on this one :smile:
My thinking was more that you might not want to spend the time reviewing it to focus on 1.0 things.
@mdtauk i like your mockup a lot
one suggestion: remove the [+] Add new Profile, and instead put a + right next to the profile name (i suppose it is a dropdown menu?)
EDIT:
after taking a longer look at the proposed mockups, i came to the conclusion that there is too much empty space, the controls are huge, almost like if the settings menu is aimed at mobile/tablet users.. something designed for scrolling/touch devices
I think it needs to be four sections:
All exportable JSON could be packaged as nuget archives with a powershell script to import the item to the current user's settings.
All of those points seem reasonable except for randomly using NuGet đ
NuGet archives are just zip files with extra metadata that's really only good and useful for binary distributions of things that need to be built into C++/C#/WinJS/etc. projects moreso than as a generic config export format. JSON is already exportable as-is.
All of those points seem reasonable except for randomly using NuGet đ
It's not random, it's meant to facilitate sharing of settings and profiles using Nuget servers. I'm currently working on an app and website that will be a gallery of Windows Terminal Profiles that people can share to and download from. Getting the data to the config file is easy with JSON, but I want to support many different scenarios, one of which is a completely offline scenario where the user doesn't have to edit any JSON files and can be included as part of the setup of a server or container. To facilitate that, the JSON is encapsulated in Nuget with a PS install and uninstall script that will import/remove the JSON from the config.
To facilitate that, the JSON is encapsulated in Nuget with a PS install and uninstall script that will import/remove the JSON from the config.
So chocolatey? Making a PowerShell cmdlet that creates a chocolatey package of a profile shouldn't be that hard.
To facilitate that, the JSON is encapsulated in Nuget with a PS install and uninstall script that will import/remove the JSON from the config.
So chocolatey? Making a PowerShell cmdlet that creates a chocolatey package of a profile shouldn't be that hard.
The idea is for the nuget generation and import to be baked in so that a 3rd party tool isn't necessary
completely offline scenario where the user doesn't have to edit any JSON files and can be included as part of the setup of a server or container
Odds are they're using some 3rd-party tool to do this already, chocolatey being one of the possible options. Integrating with those tools seems the best bet there to me.
The nuget integration isn't _necessary_, but would set a good precedent and would also be dogfooding...
This terminal is a UWP app that uses Fluent design and is highly customizable. Maybe take a look at it and kind of shape Windows Terminal similar to it? I mean, even that terminal looks good (although it is in its early stages).
IMO it would look good if the whole settings app (or page) has a background acrylic just like the Terminal (acrylic that changes according to the acrylic settings set in the settings page)
Keep in mind that settings panels should be consistent across Windows. You may have feedback about how setting panels should look in Windows, but the Terminal GitHub isn't the best place to discuss them. The place to send thoughts about how settings panels should look in Windows is the Feedback app.
Why you censor my comment?
All i was saying is it looks like a UI made for tablets?
This is crazy the level of censorship at microsoft
@russhy I deleted your comment because of the specific language it used violating our code of conduct, not because you think our UI would look like a tablet UI. I don't particularly care _what_ you say so long as you express yourself respectfully.
oh i see, i'll try to use proper language in the future, but please let me know instead of just deleting stuff
@DHowett-MSFT
@russhy sure thing, sorry about that. :smile:
A
How about defaulting to json file view for the advanced users? That way users will edit settings their way.
This terminal is a UWP app that uses Fluent design and is highly customizable. Maybe take a look at it and kind of shape Windows Terminal similar to it? I mean, even that terminal looks good (although it is in its early stages).
That project is pretty awesome! Even all kinds of fonts render perfectly. It is, unfortunately, slower than Terminal. Hope Terminal gets inspired by that project while remains super snappy!
đŠ Seems like this could be a good fit for the Form Control Proposal in WinUI.
I agree with @michael-hawker - but I think Form Control is still in a proposal stage?
For PowerToys, we've put in quite some effort to get the XAML right: all fontsizes, margins, paddings and other attributes mimic the W10 Settings app. In this way it looks and feels native to Windows and I think it would be great to share the same UX?
I'm happy to contribute by creating all the XAML that is required according to the spec.. and to polish it all up. @zadjii-msft @DHowett . Is there already an active branch?
I believe there is a variety of WIP branches, but I honestly don't know which ones are active or not. I believe @carlos-zamora and @cinnamon-msft _do_ know though
The latest branch is cinnamon/settings-ui-v2. We implemented the Settings UI as a separate app that can be found under src/TerminalSettings.
We're still working on organizing a plan/spec for the Settings UI as a whole, so feel free to clean up the Globals and Color Schemes page for now, or poke around.
For the record, some of the stuff that we still need to plan out are...
How I execute the app(Settings page)?
How I execute the app(Settings page)?
The Settings UI is under active development and is not in Windows Terminal yet.
Yes, I know this, but isn't it possible to test the prototype of the configuration page, to see how it can look? because at the beginning of the topic there are images of a prototype.
I believe those are just UI mockups made in Figma, not an actual prototype that can be played with quite yet.
I downloaded a zip with with this supposed prototype, and now I donât know how to run it
I believe those are just UI mockups made in Figma, not an actual prototype that can be played with quite yet.
yes, it may be, but the image appears to be so real ...
@Viniacamp You need to compile the application yourself. There's a TerminalSettings.sln
file in the src\TerminalSettings
directory which you can open in in Visual Studio and then build and run. But if you don't know what you're doing you may struggle to get it working - I know I had to mess with the project files to adjust the package paths for my system. Also note that there isn't that much to see yet - it's just a few mockups of some of the screens, and that doesn't include any of the images posted at top of the issue.
The "unsaved changes" thing obstructs the settings at the bottom of the page, and they can't be scrolled up.
Will there be an autosave feature? like as soon as you check a checkbutton, toggle a toggleswitch, or just change any setting, will they be saved? (event-based save feature)
@SFM61319 because all open instances of Terminal automatically update when the settings file changes, we decided that it would be too dangerous and disruptive to save on every state change. Configuring a single profile would turn every terminal window into an absolute kaleidoscope of font sizes and colors while you were editing.
@DHowett wait I have an idea what about a setting (in settings) to enable autosave?
And will Ctrl + S
save the settings so that one doesn't have to click the save button (if autosave isn't a feature)? (Keybindings make stuff easier to use)
I have been thinking, is there a plan to include an Import and Export button/option for the ColorScheme?
I know there is the JSON settings page, but it would also be useful to support importing existing colour schemes like iTerm, JSON, or even raw TXT files.
@leonmsft you're gonna think I'm crazy, but.. the color schemes page is mixing up all the colors o_O
Most helpful comment
How would you move between different profile's settings?
Perhaps you could implement a ComboBox in the left NavigationPane to choose a Profile, to which the settings would apply?
_Your Phone does this_
Even if you decide not to use Acrylic for the Settings' NavigaitonView Pane, could you please Extend the Title Bar so the navigation view touches the top of the window?