-
Notifications
You must be signed in to change notification settings - Fork 782
Prepares for Fixing #4943 - Refactors ConfigurationManager to be based on MEC
#5411
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
69f52d0
Initial plan
Copilot 5d72b63
Add comprehensive CM→MEC replacement spec (specs/replace-cm-with-mec.md)
Copilot 95495fa
Fix spec inaccuracies: verify all API references against actual codebase
tig 112f020
Implement Phase 1: MEC foundation — POCOs, builder, and tests
tig 607b87e
Add per-view Settings POCO files, remove ViewBorderSettings
tig 15d58c3
Phase 2: Wire static [ConfigurationProperty] properties to Settings P…
tig 5878e81
Phase 3: Add IThemeManager/ISchemeManager interfaces and MEC implemen…
tig b582e92
Phase 4: Remove [ConfigurationProperty] from POCO-backed properties, …
tig c761028
Phase 5: App developer migration — BindAppSettings, [Obsolete] AppSet…
tig 86e20ff
Phase 6: Mark ConfigurationManager and CM machinery as [Obsolete]
tig 5ebedbc
Restore [ConfigurationProperty] attributes removed in Phase 4
tig c42676e
Fix CI: restore [ConfigurationProperty] attrs and revert ScopeJsonCon…
tig 1711f21
Fix AOT: add typed Dictionary paths and remove comparer guard in Deep…
tig 2b97e31
Merge remote-tracking branch 'origin/develop' into copilot/replace-cm…
tig 3c950dc
Update MEC spec for complex-type completion in #5411
tig 83ded73
Fixes #4943 - Phase A1/B/C: IThemeManager.ThemeChanged, ThemeChanges …
tig 25237b8
Merge remote-tracking branch 'origin/develop' into copilot/replace-cm…
tig 45d2eab
Fixes #4943 - Phase C: Migrate ConfigurationManager.SerializerContext…
tig 5829500
Fixes #4943 - Phase C followup: restore UTF-8 BOM on test files
tig 1430124
Fixes #4943 - Phase C doc: spec reflects DeepCloner pragma removed + …
tig 369cbd3
Merge remote-tracking branch 'origin/develop' into wip/merge-5411-dev…
tig a676efb
Document actual breaking changes of #5411 vs follow-on #5416
tig da3a262
Merge origin/develop into copilot/replace-cm-with-mec
Copilot 349db3c
Address PR #5411 CR feedback: flat-key MEC binding + theme-event leak
tig 416c873
Fix obsolete ConfigurationManager usage in build-app.md snippet
tig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Terminal.Gui/Configuration/Settings/ApplicationSettings.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| namespace Terminal.Gui.Configuration; | ||
|
|
||
| /// <summary> | ||
| /// Settings POCO for application-level configuration (SettingsScope). | ||
| /// These correspond to the static properties on <see cref="Application"/> and related classes. | ||
| /// </summary> | ||
| public class ApplicationSettings | ||
| { | ||
| /// <summary>Gets or sets the application model (FullScreen or Inline).</summary> | ||
| public AppModel AppModel { get; set; } = AppModel.FullScreen; | ||
|
|
||
| /// <summary>Gets or sets the driver to force (e.g., "windows", "dotnet", "ansi"). Empty means auto-detect.</summary> | ||
| public string ForceDriver { get; set; } = string.Empty; | ||
|
|
||
| /// <summary>Gets or sets whether the mouse is disabled.</summary> | ||
| public bool IsMouseDisabled { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// The static facade instance. Always contains the current effective values. | ||
| /// Updated by the MEC binding at <see cref="IApplication"/> initialization. | ||
| /// </summary> | ||
| public static ApplicationSettings Defaults { get; set; } = new (); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| namespace Terminal.Gui.Configuration; | ||
|
|
||
| /// <summary> | ||
| /// Settings POCO for <see cref="Views.Button"/> visual defaults (ThemeScope). | ||
| /// </summary> | ||
| public class ButtonSettings | ||
| { | ||
| /// <summary>Gets or sets the default shadow style for buttons.</summary> | ||
| public ShadowStyles DefaultShadow { get; set; } = ShadowStyles.Opaque; | ||
|
|
||
| /// <summary>Gets or sets the default mouse highlight states for buttons.</summary> | ||
| public MouseState DefaultMouseHighlightStates { get; set; } = MouseState.In | MouseState.Pressed | MouseState.PressedOutside; | ||
|
|
||
| /// <summary> | ||
| /// The static facade instance. Always contains the current effective values. | ||
| /// Updated by the MEC binding at <see cref="IApplication"/> initialization. | ||
| /// </summary> | ||
| public static ButtonSettings Defaults { get; set; } = new (); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| namespace Terminal.Gui.Configuration; | ||
|
|
||
| /// <summary> | ||
| /// Settings POCO for <see cref="Views.CharMap"/> defaults (ThemeScope). | ||
| /// </summary> | ||
| public class CharMapSettings | ||
| { | ||
| /// <summary>Gets or sets the default cursor style for character map views.</summary> | ||
| public CursorStyle DefaultCursorStyle { get; set; } = CursorStyle.BlinkingBlock; | ||
|
|
||
| /// <summary> | ||
| /// The static facade instance. Always contains the current effective values. | ||
| /// Updated by the MEC binding at <see cref="IApplication"/> initialization. | ||
| /// </summary> | ||
| public static CharMapSettings Defaults { get; set; } = new (); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.