Skip to content

Commit 2ce34d4

Browse files
Glow has been updated to version 25.13
1 parent a20b4d0 commit 2ce34d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3376
-618
lines changed

Glow/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1" />
55
</startup>
66
<appSettings>
7-
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true"/>
7+
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
88
</appSettings>
99
</configuration>

Glow/Glow.csproj

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<UpdateRequired>false</UpdateRequired>
2626
<MapFileExtensions>true</MapFileExtensions>
2727
<ApplicationRevision>0</ApplicationRevision>
28-
<ApplicationVersion>25.12.0.%2a</ApplicationVersion>
28+
<ApplicationVersion>25.13.0.%2a</ApplicationVersion>
2929
<UseApplicationTrust>false</UseApplicationTrust>
3030
<BootstrapperEnabled>true</BootstrapperEnabled>
3131
</PropertyGroup>
@@ -38,6 +38,7 @@
3838
<DefineConstants>DEBUG;TRACE</DefineConstants>
3939
<ErrorReport>prompt</ErrorReport>
4040
<WarningLevel>4</WarningLevel>
41+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4142
</PropertyGroup>
4243
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4344
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -47,6 +48,7 @@
4748
<DefineConstants>TRACE</DefineConstants>
4849
<ErrorReport>prompt</ErrorReport>
4950
<WarningLevel>4</WarningLevel>
51+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5052
</PropertyGroup>
5153
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
5254
<DebugSymbols>true</DebugSymbols>
@@ -57,6 +59,7 @@
5759
<LangVersion>7.3</LangVersion>
5860
<ErrorReport>prompt</ErrorReport>
5961
<Prefer32Bit>true</Prefer32Bit>
62+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6063
</PropertyGroup>
6164
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
6265
<OutputPath>bin\x64\Release\</OutputPath>
@@ -67,6 +70,7 @@
6770
<LangVersion>7.3</LangVersion>
6871
<ErrorReport>prompt</ErrorReport>
6972
<Prefer32Bit>true</Prefer32Bit>
73+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7074
</PropertyGroup>
7175
<PropertyGroup />
7276
<PropertyGroup>
@@ -81,6 +85,7 @@
8185
<LangVersion>7.3</LangVersion>
8286
<ErrorReport>prompt</ErrorReport>
8387
<Prefer32Bit>true</Prefer32Bit>
88+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8489
</PropertyGroup>
8590
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
8691
<OutputPath>bin\x86\Release\</OutputPath>
@@ -91,6 +96,7 @@
9196
<LangVersion>7.3</LangVersion>
9297
<ErrorReport>prompt</ErrorReport>
9398
<Prefer32Bit>true</Prefer32Bit>
99+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
94100
</PropertyGroup>
95101
<PropertyGroup>
96102
<SignAssembly>false</SignAssembly>
@@ -135,6 +141,7 @@
135141
<LangVersion>7.3</LangVersion>
136142
<ErrorReport>prompt</ErrorReport>
137143
<Prefer32Bit>true</Prefer32Bit>
144+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
138145
</PropertyGroup>
139146
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
140147
<OutputPath>bin\ARM64\Release\</OutputPath>
@@ -145,6 +152,7 @@
145152
<LangVersion>7.3</LangVersion>
146153
<ErrorReport>prompt</ErrorReport>
147154
<Prefer32Bit>true</Prefer32Bit>
155+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
148156
</PropertyGroup>
149157
<PropertyGroup />
150158
<PropertyGroup />
@@ -262,6 +270,12 @@
262270
<Compile Include="glow_tools\GlowShowWiFiPasswordTool.Designer.cs">
263271
<DependentUpon>GlowShowWiFiPasswordTool.cs</DependentUpon>
264272
</Compile>
273+
<Compile Include="glow_tools\GlowStuckPixelFixerTool.cs">
274+
<SubType>Form</SubType>
275+
</Compile>
276+
<Compile Include="glow_tools\GlowStuckPixelFixerTool.Designer.cs">
277+
<DependentUpon>GlowStuckPixelFixerTool.cs</DependentUpon>
278+
</Compile>
265279
<Compile Include="glow_tools\GlowWallpaperPreview.cs">
266280
<SubType>Form</SubType>
267281
</Compile>
@@ -322,6 +336,9 @@
322336
<EmbeddedResource Include="glow_tools\GlowShowWiFiPasswordTool.resx">
323337
<DependentUpon>GlowShowWiFiPasswordTool.cs</DependentUpon>
324338
</EmbeddedResource>
339+
<EmbeddedResource Include="glow_tools\GlowStuckPixelFixerTool.resx">
340+
<DependentUpon>GlowStuckPixelFixerTool.cs</DependentUpon>
341+
</EmbeddedResource>
325342
<EmbeddedResource Include="glow_tools\GlowWallpaperPreview.resx">
326343
<DependentUpon>GlowWallpaperPreview.cs</DependentUpon>
327344
</EmbeddedResource>
@@ -364,9 +381,6 @@
364381
<Install>false</Install>
365382
</BootstrapperPackage>
366383
</ItemGroup>
367-
<ItemGroup>
368-
<None Include="glow_images\ts_preloader\ts_preloader_release.jpg" />
369-
</ItemGroup>
370384
<ItemGroup>
371385
<None Include="glow_images\glow_ui\theme_light\ct_copy_mc_light.png" />
372386
<None Include="glow_images\glow_ui\theme_dark\ct_copy_mc_dark.png" />
@@ -476,6 +490,17 @@
476490
</ItemGroup>
477491
<ItemGroup>
478492
<Content Include="GlowLogo.ico" />
493+
<None Include="glow_images\ts_preloader\ts_preloader_release.jpg" />
494+
<None Include="glow_images\glow_ui\theme_light\ct_spf_color_light.png" />
495+
<None Include="glow_images\glow_ui\theme_dark\ct_spf_color_dark.png" />
496+
<None Include="glow_images\glow_ui\theme_light\ct_spf_toggle_light.png" />
497+
<None Include="glow_images\glow_ui\theme_dark\ct_spf_toggle_dark.png" />
498+
<None Include="glow_images\glow_ui\theme_light\cx_stuck_pixel_fixer_light.png" />
499+
<None Include="glow_images\glow_ui\theme_dark\cx_stuck_pixel_fixer_dark.png" />
500+
<None Include="glow_images\glow_ui\theme_light\ct_spf_close_light.png" />
501+
<None Include="glow_images\glow_ui\theme_light\ct_spf_add_light.png" />
502+
<None Include="glow_images\glow_ui\theme_dark\ct_spf_close_dark.png" />
503+
<None Include="glow_images\glow_ui\theme_dark\ct_spf_add_dark.png" />
479504
<None Include="glow_images\glow_ui\theme_light\cx_overlay_light.png" />
480505
<None Include="glow_images\glow_ui\theme_dark\cx_overlay_dark.png" />
481506
<None Include="glow_images\glow_ui\theme_light\ct_support_light.png" />
@@ -489,5 +514,6 @@
489514
<None Include="glow_images\glow_ui\theme_dark\cx_bt_finder_dark.png" />
490515
<None Include="glow_images\glow_ui\theme_light\cx_bt_finder_light.png" />
491516
</ItemGroup>
517+
<ItemGroup />
492518
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
493519
</Project>

Glow/GlowAbout.Designer.cs

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

Glow/GlowAbout.cs

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
using System.Reflection;
44
using System.Diagnostics;
55
using System.Windows.Forms;
6+
using System.Threading.Tasks;
67
//
78
using static Glow.TSModules;
89

910
namespace Glow{
1011
public partial class GlowAbout : Form{
1112
public GlowAbout(){
1213
InitializeComponent();
14+
//
1315
typeof(DataGridView).InvokeMember("DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty, null, AboutTable, new object[]{ true });
1416
//
1517
PanelHeader.Parent = ImageAbout;
@@ -19,41 +21,47 @@ public GlowAbout(){
1921
AboutTable.Columns.Add("LangTranslator", "Translator");
2022
AboutTable.Columns[0].Width = (int)(110 * this.DeviceDpi / 96f);
2123
AboutTable.AllowUserToResizeColumns = false;
24+
foreach (DataGridViewColumn columnPadding in AboutTable.Columns){
25+
int scaledPadding = (int)(3 * this.DeviceDpi / 96f);
26+
columnPadding.DefaultCellStyle.Padding = new Padding(scaledPadding, 0, 0, 0);
27+
}
2228
foreach (DataGridViewColumn A_Column in AboutTable.Columns) { A_Column.SortMode = DataGridViewColumnSortMode.NotSortable; }
2329
//
2430
TSImageRenderer(CloseAboutBtn, Properties.Resources.ts_close, 20);
2531
}
2632
// DRAGGING VARIABLES
2733
// ======================================================================================================
28-
private bool About_formIsDragging = false;
29-
private Point About_formDraggingStartPoint = new Point(0, 0);
34+
private bool formIsDragging = false;
35+
private Point formDraggingStartPoint = new Point(0, 0);
3036
// ABOUT LOAD
3137
// ======================================================================================================
32-
private void GlowAbout_Load(object sender, EventArgs e){
38+
private async void GlowAbout_Load(object sender, EventArgs e){
3339
try{
3440
LabelDeveloper.Text = Application.CompanyName;
3541
LabelSoftware.Text = Application.ProductName;
3642
LabelVersion.Text = TS_VersionEngine.TS_SofwareVersion(1, Program.ts_version_mode);
3743
LabelCopyright.Text = TS_SoftwareCopyrightDate.ts_scd_preloader;
38-
//
39-
foreach (var available_lang_file in AvailableLanguages){
40-
TSSettingsSave software_read_settings = new TSSettingsSave(available_lang_file);
41-
string[] get_name = software_read_settings.TSReadSettings("Main", "lang_name").Split('/');
42-
string get_lang_translator = software_read_settings.TSReadSettings("Main", "translator");
43-
AboutTable.Rows.Add(get_name[0].Trim(), get_lang_translator.Trim());
44-
}
45-
AboutTable.ClearSelection();
4644
// GET PRELOAD SETTINGS
4745
About_preloader();
46+
//
47+
await Task.Run(() => LoadLanguageConverterName());
4848
}catch (Exception){ }
4949
}
50+
private void LoadLanguageConverterName(){
51+
foreach (var available_lang_file in AvailableLanguages){
52+
TSSettingsSave software_read_settings = new TSSettingsSave(available_lang_file);
53+
string[] get_name = software_read_settings.TSReadSettings("Main", "lang_name").Split('/');
54+
string get_lang_translator = software_read_settings.TSReadSettings("Main", "translator");
55+
AboutTable.BeginInvoke((Action)(() =>{
56+
AboutTable.Rows.Add(get_name[0].Trim(), get_lang_translator.Trim());
57+
}));
58+
}
59+
AboutTable.BeginInvoke((Action)(() => AboutTable.ClearSelection()));
60+
}
5061
// DYNAMIC THEME VOID
5162
// ======================================================================================================
5263
public void About_preloader(){
5364
try{
54-
// COLOR SETTINGS
55-
TSSetWindowTheme(Handle, GlowMain.theme);
56-
//
5765
BackColor = TS_ThemeEngine.ColorMode(GlowMain.theme, "TSBT_BGColor2");
5866
PanelTxt.BackColor = TS_ThemeEngine.ColorMode(GlowMain.theme, "TSBT_BGColor2");
5967
//
@@ -110,39 +118,38 @@ public void About_preloader(){
110118
// ======================================================================================================
111119
private void About_WebsiteBtn_Click(object sender, EventArgs e){
112120
try{
113-
Process.Start(new ProcessStartInfo(TS_LinkSystem.website_link) { UseShellExecute = true });
121+
Process.Start(new ProcessStartInfo(TS_LinkSystem.website_link){ UseShellExecute = true });
114122
}catch (Exception){ }
115123
}
116124
// GITHUB LINK
117125
// ======================================================================================================
118126
private void About_GitHubBtn_Click(object sender, EventArgs e){
119127
try{
120-
Process.Start(new ProcessStartInfo(TS_LinkSystem.github_link) { UseShellExecute = true });
128+
Process.Start(new ProcessStartInfo(TS_LinkSystem.github_link){ UseShellExecute = true });
121129
}catch (Exception){ }
122130
}
123131
// BUY ME A COFFEE LINK
124132
// ======================================================================================================
125133
private void About_BmacBtn_Click(object sender, EventArgs e){
126134
try{
127-
Process.Start(new ProcessStartInfo(TS_LinkSystem.ts_bmac) { UseShellExecute = true });
135+
Process.Start(new ProcessStartInfo(TS_LinkSystem.ts_bmac){ UseShellExecute = true });
128136
}catch (Exception){ }
129137
}
130138
// FORM DRAGGING SYSTEM
131139
// ======================================================================================================
132140
private void PanelHeader_MouseDown(object sender, MouseEventArgs e){
133141
if (e.Button == MouseButtons.Left){
134-
About_formIsDragging = true;
135-
About_formDraggingStartPoint = new Point(e.X, e.Y);
142+
formIsDragging = true;
143+
formDraggingStartPoint = new Point(e.X, e.Y);
136144
}
137145
}
138146
private void PanelHeader_MouseMove(object sender, MouseEventArgs e){
139-
if (About_formIsDragging)
140-
{
147+
if (formIsDragging){
141148
Point form_location = PointToScreen(e.Location);
142-
this.Location = new Point(form_location.X - About_formDraggingStartPoint.X, form_location.Y - About_formDraggingStartPoint.Y);
149+
this.Location = new Point(form_location.X - formDraggingStartPoint.X, form_location.Y - formDraggingStartPoint.Y);
143150
}
144151
}
145-
private void PanelHeader_MouseUp(object sender, MouseEventArgs e){ About_formIsDragging = false; }
152+
private void PanelHeader_MouseUp(object sender, MouseEventArgs e){ formIsDragging = false; }
146153
// CLOSE ABOUT
147154
// ======================================================================================================
148155
private void CloseAboutBtn_Click(object sender, EventArgs e){ Close(); }

0 commit comments

Comments
 (0)