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

Renames Frame->Adornment; changes Frame to have a Border subclass #3158

Merged
merged 34 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c7e2914
Removed resharper settings from editorconfig
tig Jan 10, 2024
fa4337c
Merge branch 'v2_develop' of tig:gui-cs/Terminal.Gui into v2_develop
tig Jan 10, 2024
79b35dc
Initial work in progress
tig Jan 11, 2024
0ea1f11
API doc
tig Jan 11, 2024
2329ab8
API doc
tig Jan 11, 2024
7ee17d8
Merge branch 'v2_develop' of github.com:gui-cs/Terminal.Gui into v2_d…
tig Jan 13, 2024
c7d7ed0
Merged v2_develop
tig Jan 13, 2024
958e64a
Merged v2_develop
tig Jan 13, 2024
15a1af2
Merge branch 'v2_develop' into v2_frame_border_subclass
tig Jan 13, 2024
15b36b5
Merge branch 'v2_develop' of github.com:gui-cs/Terminal.Gui into v2_d…
tig Jan 13, 2024
e26a463
Merge branch 'v2_develop' of github.com:gui-cs/Terminal.Gui into v2_d…
tig Jan 13, 2024
40f673c
Merge branch 'v2_develop' into v2_frame_border_subclass
tig Jan 13, 2024
49188db
Merge branch 'v2_develop' into v2_frame_border_subclass
tig Jan 13, 2024
0941e24
Merge branch 'v2_frame_border_subclass' of tig:tig/Terminal.Gui into …
tig Jan 13, 2024
81c5f7c
Removed diag code
tig Jan 13, 2024
073dc28
Frame->Adornment
tig Jan 13, 2024
d76f7ac
Frame->Adornment code cleanup
tig Jan 13, 2024
0487e81
More Adornment unit tests
tig Jan 13, 2024
c9b9f44
Border.BorderStyle -> Border.LineStyle for clarity
tig Jan 13, 2024
1bb8488
Border api docs
tig Jan 13, 2024
68d312a
Border api docs
tig Jan 13, 2024
167644b
Border api docs
tig Jan 13, 2024
d3e4b1b
Border api docs
tig Jan 13, 2024
9c85fe6
Margin & Padding classes. Refactored CreateAdornments
tig Jan 13, 2024
9bd93ca
Merge branch 'v2_develop' of github.com:gui-cs/Terminal.Gui into v2_d…
tig Jan 13, 2024
9c481a3
Merge branch 'v2_develop' into v2_frame_border_subclass
tig Jan 13, 2024
31f868f
Added border color test
tig Jan 13, 2024
a1d8721
Fixed focus. Tweaked TestHelpers
tig Jan 13, 2024
26866d9
Fixed HotNormal/HotFocus API docs
tig Jan 13, 2024
e5f5aa8
Tweaked Adornments scenario
tig Jan 14, 2024
28412bd
Neatened up TestHelpers
tig Jan 14, 2024
748a624
Removed unused API
tig Jan 14, 2024
c900e82
Removed unused API
tig Jan 14, 2024
4a1708a
Padding/Margin unit tests
tig Jan 14, 2024
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
11 changes: 11 additions & 0 deletions Terminal.Gui/Drawing/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,17 @@ public Attribute ()
Background = new Color (d.Background.ColorName);
}

/// <summary>
/// Initializes a new instance from an existing instance.
/// </summary>
public Attribute (Attribute attr)
{
PlatformColor = -1;
var d = Default;
Foreground = new Color (attr.Foreground.ColorName);
Background = new Color (attr.Background.ColorName);
}

/// <summary>
/// Initializes a new instance with platform specific color value.
/// </summary>
Expand Down
Loading
Loading