Skip to content

Commit f3b6216

Browse files
committed
Update to latest package
1 parent e0b7ae9 commit f3b6216

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

Showcase/Showcase.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Terminal.Gui" Version="2.0.0-v2-develop.1532" />
11+
<PackageReference Include="Terminal.Gui" Version="2.0.0-prealpha.1546" />
1212
</ItemGroup>
1313

1414
</Project>

src/TerminalGuiDesigner.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.1" />
151151
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
152152
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="3.1.0" />
153-
<PackageReference Include="Terminal.Gui" Version="2.0.0-prealpha.1545" />
153+
<PackageReference Include="Terminal.Gui" Version="2.0.0-prealpha.1546" />
154154
<PackageReference Include="nlog" Version="5.3.3" />
155155
<PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.7.7" />
156156
<PackageReference Include="System.CodeDom" Version="8.0.0" />

src/ToCode/Property.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ public virtual void SetValue(object? value)
108108
case Orientation.Horizontal:
109109
v.Width = v.Height;
110110
v.Height = 1;
111-
v.LineRune = ConfigurationManager.Glyphs.HLine;
111+
v.LineRune = Glyphs.HLine;
112112

113113
break;
114114
case Orientation.Vertical:
115115
v.Height = v.Width;
116116
v.Width = 1;
117-
v.LineRune = ConfigurationManager.Glyphs.VLine;
117+
v.LineRune = Glyphs.VLine;
118118
break;
119119
default:
120120
throw new ArgumentException($"Unknown Orientation {newOrientation}");

src/UI/Windows/ChoicesDialog.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected override void OnDrawComplete()
112112
Driver.SetAttribute(
113113
new Attribute(ColorScheme.Normal.Foreground, ColorScheme.Normal.Background));
114114

115-
Driver.AddStr(string.Join("",Enumerable.Repeat(ConfigurationManager.Glyphs.HLineHv, padding)));
115+
Driver.AddStr(string.Join("",Enumerable.Repeat(Glyphs.HLineHv, padding)));
116116

117117
Driver.SetAttribute(
118118
new Attribute(ColorScheme.Normal.Background, ColorScheme.Normal.Foreground));
@@ -122,9 +122,9 @@ protected override void OnDrawComplete()
122122
new Attribute(ColorScheme.Normal.Foreground, ColorScheme.Normal.Background));
123123

124124
StringBuilder sb = new StringBuilder();
125-
sb.Append(ConfigurationManager.Glyphs.HLineHv);
125+
sb.Append(Glyphs.HLineHv);
126126

127-
Driver.AddStr(string.Join("", Enumerable.Repeat(ConfigurationManager.Glyphs.HLineHv.ToString(), padding)));
127+
Driver.AddStr(string.Join("", Enumerable.Repeat(Glyphs.HLineHv.ToString(), padding)));
128128
}
129129

130130
internal static int Query(string title, string message, params string[] options)

tests/PropertyTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void Changing_LineViewOrientation( )
3030

3131
Assert.That( prop, Is.Not.Null );
3232
prop?.SetValue( Orientation.Vertical );
33-
Assert.That( lv.LineRune, Is.EqualTo( TerminalGuiConfigurationManager.Glyphs.VLine ) );
33+
Assert.That( lv.LineRune, Is.EqualTo( Glyphs.VLine ) );
3434

3535
// now try with a dim fill
3636
lv.Height = Dim.Fill( );
@@ -41,7 +41,7 @@ public void Changing_LineViewOrientation( )
4141
Assert.Multiple( ( ) =>
4242
{
4343
Assert.That( lv.Orientation, Is.EqualTo( Orientation.Horizontal ) );
44-
Assert.That( lv.LineRune, Is.EqualTo( TerminalGuiConfigurationManager.Glyphs.HLine ) );
44+
Assert.That( lv.LineRune, Is.EqualTo( Glyphs.HLine ) );
4545
Assert.That( lv.Width, Is.EqualTo( Dim.Fill( ) ) );
4646
Assert.That( lv.Height, Is.EqualTo( Dim.Absolute( 1 ) ) );
4747
} );

tests/UnitTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3838
</PackageReference>
39+
<PackageReference Include="Terminal.Gui" Version="2.0.0-prealpha.1546" />
3940
</ItemGroup>
4041

4142
<ItemGroup>

0 commit comments

Comments
 (0)