Skip to content
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

Add startupActions to SUI #8812

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/cascadia/TerminalSettingsEditor/Launch.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ the MIT License. See LICENSE in the project root for license information. -->
Grid.Row="0" Grid.Column="0"
Grid.ColumnSpan="2"
Style="{StaticResource CustomSettingHeaderStyle}"/>

<!--Columns-->
<StackPanel Orientation="Horizontal"
Grid.Row="1" Grid.Column="0"
Expand All @@ -127,6 +127,14 @@ the MIT License. See LICENSE in the project root for license information. -->
</StackPanel>
</Grid>
</ContentPresenter>

<!--Startup Actions-->
<ContentPresenter Style="{StaticResource SettingContainerStyle}">
<TextBox x:Uid="Globals_StartupActions"
Text="{x:Bind State.Settings.GlobalSettings.StartupActions, Mode=TwoWay}"
FontFamily="Segoe UI, Segoe MDL2 Assets"
Style="{StaticResource TextBoxSettingStyle}"/>
</ContentPresenter>
</StackPanel>
</ScrollViewer>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@
<data name="Globals_InitialRows.Text" xml:space="preserve">
<value>Rows:</value>
</data>
<data name="Globals_StartupActions.Header" xml:space="preserve">
<value>Startup actions</value>
</data>
<data name="Globals_InitialRows.[using:Windows.UI.Xaml.Controls]ToolTipService.ToolTip" xml:space="preserve">
<value>The number of rows displayed in the window upon first load. Measured in characters.</value>
</data>
Expand Down Expand Up @@ -842,4 +845,4 @@
<data name="Globals_CopyFormatAll.Content" xml:space="preserve">
<value>Both HTML and RTF</value>
</data>
</root>
</root>
2 changes: 1 addition & 1 deletion src/cascadia/TerminalSettingsModel/GlobalAppSettings.idl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ namespace Microsoft.Terminal.Settings.Model

Boolean HasStartupActions();
void ClearStartupActions();
String StartupActions();
String StartupActions;
}
}