mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Move windows terminal option
This commit is contained in:
parent
6849184cbf
commit
45a5978611
5 changed files with 26 additions and 9 deletions
|
@ -17,6 +17,7 @@ namespace IDE.ui
|
|||
Compiler,
|
||||
Debugger,
|
||||
VisualStudio,
|
||||
Terminal,
|
||||
Wasm,
|
||||
|
||||
COUNT
|
||||
|
@ -61,6 +62,7 @@ namespace IDE.ui
|
|||
AddCategoryItem(root, "Compiler");
|
||||
AddCategoryItem(root, "Debugger");
|
||||
AddCategoryItem(root, "Visual Studio");
|
||||
AddCategoryItem(root, "Terminal");
|
||||
AddCategoryItem(root, "Wasm");
|
||||
|
||||
if (!gApp.mSettings.mVSSettings.IsConfigured())
|
||||
|
@ -96,7 +98,6 @@ namespace IDE.ui
|
|||
category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
|
||||
AddPropertiesItem(category, "Font", "mFonts");
|
||||
AddPropertiesItem(category, "Font Size", "mFontSize");
|
||||
AddPropertiesItem(category, "Windows Console", "mWindowsConsole");
|
||||
AddPropertiesItem(category, "Autocomplete", "mAutoCompleteShowKind");
|
||||
AddPropertiesItem(category, "Autocomplete Require Control", "mAutoCompleteRequireControl");
|
||||
AddPropertiesItem(category, "Autocomplete Require Tab", "mAutoCompleteRequireTab");
|
||||
|
@ -169,6 +170,18 @@ namespace IDE.ui
|
|||
category.Open(true, true);
|
||||
}
|
||||
|
||||
void PopulateTerminalOptions()
|
||||
{
|
||||
mCurPropertiesTarget = gApp.mSettings;
|
||||
|
||||
var root = (DarkListViewItem)mPropPage.mPropertiesListView.GetRoot();
|
||||
var (category, propEntry) = AddPropertiesItem(root, "General");
|
||||
category.mIsBold = true;
|
||||
category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
|
||||
AddPropertiesItem(category, "Windows Terminal", "mWindowsTerminal");
|
||||
category.Open(true, true);
|
||||
}
|
||||
|
||||
void CommandContextToString(IDECommand.ContextFlags contextFlags, String str)
|
||||
{
|
||||
bool isFirst = true;
|
||||
|
@ -424,6 +437,8 @@ namespace IDE.ui
|
|||
PopulateDebuggerOptions();
|
||||
case .VisualStudio:
|
||||
PopulateVSOptions();
|
||||
case .Terminal:
|
||||
PopulateTerminalOptions();
|
||||
case .Wasm:
|
||||
PopulateWasmOptions();
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue