Skip to content

Commit c9b8044

Browse files
committed
v3.0.0
1 parent d35bb92 commit c9b8044

File tree

6 files changed

+69
-26
lines changed

6 files changed

+69
-26
lines changed

SmartImage 3/Modes/GuiMode.cs

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,31 @@ public sealed class GuiMode : BaseProgramMode
130130

131131
private static readonly Label Lbl_InputInfo = new()
132132
{
133-
X = Pos.Bottom(Tf_Input),
134-
Y = 1,
135-
Width = 15,
136-
Height = Dim.Height(Tf_Input)
133+
X = Pos.Bottom(Tf_Input),
134+
Y = 1,
135+
Width = 15,
136+
Height = Dim.Height(Tf_Input),
137+
ColorScheme = Styles.Cs_Lbl2
138+
137139
};
138140

139141
private static readonly Label Lbl_QueryUpload = new()
140142
{
141-
X = Pos.Right(Lbl_InputInfo) + 1,
142-
Y = 1,
143-
Width = 15,
144-
Height = Dim.Height(Lbl_InputInfo)
143+
X = Pos.Right(Lbl_InputInfo) + 1,
144+
Y = 1,
145+
Width = 15,
146+
Height = Dim.Height(Lbl_InputInfo),
147+
ColorScheme = Styles.Cs_Lbl2
148+
145149
};
146150

147151
private static readonly Label Lbl_InputInfo2 = new()
148152
{
149-
X = Pos.Right(Lbl_QueryUpload) + 1,
150-
Y = Pos.Y(Lbl_QueryUpload),
151-
Width = 15,
152-
Height = Dim.Height(Lbl_QueryUpload)
153+
X = Pos.Right(Lbl_QueryUpload) + 1,
154+
Y = Pos.Y(Lbl_QueryUpload),
155+
Width = 15,
156+
Height = Dim.Height(Lbl_QueryUpload),
157+
ColorScheme = Styles.Cs_Lbl1
153158
};
154159

155160
private static readonly DataTable Dt_Results = new()
@@ -178,10 +183,12 @@ public sealed class GuiMode : BaseProgramMode
178183

179184
private static readonly Label Lbl_Status = new()
180185
{
181-
X = Pos.Right(Pbr_Status) + 1,
182-
Y = Pos.Y(Pbr_Status),
183-
Width = 15,
184-
Height = Dim.Height(Lbl_InputInfo)
186+
X = Pos.Right(Pbr_Status) + 1,
187+
Y = Pos.Y(Pbr_Status),
188+
Width = 15,
189+
Height = Dim.Height(Lbl_InputInfo),
190+
ColorScheme = Styles.Cs_Lbl1
191+
185192
};
186193

187194
#endregion
@@ -483,7 +490,7 @@ private bool ClipboardCallback(MainLoop c)
483490
!IsInputValidIndicator() && !m_clipboard.Contains(str)) {
484491
SetInputText(str);
485492
// Lbl_InputOk.Text = Values.Clp;
486-
Lbl_InputInfo.Text = $"Clipboard data";
493+
Lbl_InputInfo.Text = Resources.Inf_Clipboard;
487494

488495
m_clipboard.Add(str);
489496
}
@@ -516,7 +523,7 @@ private void AboutDialog()
516523
{
517524
var d = new Dialog()
518525
{
519-
Text = $"{R2.Name} {Integration.Version}\n" +
526+
Text = $"{R2.Name} {Integration.Version} by {R2.Author}\n" +
520527
$"Current directory: {Integration.CurrentAppFolder}",
521528

522529
Title = R2.Name,
@@ -660,9 +667,7 @@ private void OnConfigDialog()
660667

661668
var cfgInfo = new FileInfo(SearchConfig.Configuration.FilePath);
662669

663-
ustring s = $"Config";
664-
665-
Label lbConfig = new(s)
670+
Label lbConfig = new($"Config")
666671
{
667672
X = Pos.Right(lbPriorityEngines) + 1,
668673
Y = 0,
@@ -896,7 +901,7 @@ private async void OnRun()
896901
private void OnCancel()
897902
{
898903
Token.Cancel();
899-
Lbl_InputInfo2.Text = $"Canceled";
904+
Lbl_InputInfo2.Text = Resources.Inf_Cancel;
900905
Lbl_InputInfo2.SetNeedsDisplay();
901906
Btn_Restart.Enabled = true;
902907
Application.MainLoop.RemoveIdle(m_runIdleTok);

SmartImage 3/Resources.Designer.cs

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SmartImage 3/Resources.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,10 @@
138138
<data name="Author" xml:space="preserve">
139139
<value>Read Stanton</value>
140140
</data>
141+
<data name="Inf_Clipboard" xml:space="preserve">
142+
<value>Clipboard data</value>
143+
</data>
144+
<data name="Inf_Cancel" xml:space="preserve">
145+
<value>Canceled</value>
146+
</data>
141147
</root>

SmartImage 3/SmartImage.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<PackageProjectUrl>https://github.com/Decimation/SmartImage</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/Decimation/SmartImage</RepositoryUrl>
1414
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
15-
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
16-
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
15+
<!-- <TargetFramework>net6.0-windows10.0.22000.0</TargetFramework> -->
16+
<!-- <RuntimeIdentifier>win10-x64</RuntimeIdentifier> -->
1717
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
1818
<ApplicationIcon>..\Assets\Icon.ico</ApplicationIcon>
1919
<DefineConstants>JETBRAINS_ANNOTATIONS;TRACE</DefineConstants>

SmartImage 3/UI/Styles.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,20 @@ internal static class Styles
109109
Focus = Styles.Atr_Cyan_Black,
110110
HotFocus = Styles.Atr_Cyan_Black,
111111
};
112-
112+
internal static readonly ColorScheme Cs_Lbl2 = new()
113+
{
114+
Normal = Atr_BrightCyan_DarkGray,
115+
HotNormal = Atr_BrightCyan_DarkGray,
116+
Focus = Styles.Atr_Cyan_Black,
117+
HotFocus = Styles.Atr_Cyan_Black,
118+
};
119+
internal static readonly ColorScheme Cs_Lbl3 = new()
120+
{
121+
Normal = Styles.Atr_BrightBlue_Gray,
122+
HotNormal = Styles.Atr_BrightBlue_Gray,
123+
Focus = Styles.Atr_Cyan_Black,
124+
HotFocus = Styles.Atr_Cyan_Black,
125+
};
113126
#endregion
114127

115128
#region Styles

SmartImage.Lib 3/SmartImage.Lib.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<Configurations>Debug;Release;Test</Configurations>
88
<DefineConstants>JETBRAINS_ANNOTATIONS;TRACE</DefineConstants>
99
<PublishTrimmed>True</PublishTrimmed>
10-
<PublishSingleFile>true</PublishSingleFile>
10+
<!-- <PublishSingleFile>true</PublishSingleFile> -->
11+
<PublishSingleFile Condition="'$(Configuration)' == 'Release|AnyCPU'">true</PublishSingleFile>
1112
</PropertyGroup>
1213
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='TestDebug|AnyCPU'">
1314
<DefineConstants>DEBUG;TRACE;JETBRAINS_ANNOTATIONS;TEST_DEBUG</DefineConstants>

0 commit comments

Comments
 (0)