Skip to content

Commit 675d8b1

Browse files
committed
🐛 Bug fixes and minor improvements
- Selection tool: Add center grip - Fix: App hangs if all files are broken in an opened folder - Fix: You can drag an image from the app if no image opened
1 parent a5cb27b commit 675d8b1

File tree

73 files changed

+13387
-13376
lines changed

Some content is hidden

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

73 files changed

+13387
-13376
lines changed

.vs/quick-picture-viewer/v16/.suo

48 KB
Binary file not shown.
-1.66 KB
Binary file not shown.

quick-picture-viewer/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</sectionGroup>
77
</configSections>
88
<System.Windows.Forms.ApplicationConfigurationSection>
9-
<add key="DpiAwareness" value="PerMonitorV2" />
9+
<add key="DpiAwareness" value="PerMonitorV2"/>
1010
</System.Windows.Forms.ApplicationConfigurationSection>
1111
<startup>
1212
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
Binary file not shown.
Binary file not shown.
Binary file not shown.

quick-picture-viewer/bin/Release/quick-picture-viewer.exe.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</sectionGroup>
77
</configSections>
88
<System.Windows.Forms.ApplicationConfigurationSection>
9-
<add key="DpiAwareness" value="PerMonitorV2" />
9+
<add key="DpiAwareness" value="PerMonitorV2"/>
1010
</System.Windows.Forms.ApplicationConfigurationSection>
1111
<startup>
1212
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
Binary file not shown.

quick-picture-viewer/AboutForm.Designer.cs renamed to quick-picture-viewer/forms/AboutForm.Designer.cs

Lines changed: 253 additions & 253 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
1-
using QuickLibrary;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Diagnostics;
5-
using System.Reflection;
6-
using System.Windows.Forms;
7-
8-
namespace quick_picture_viewer
9-
{
10-
partial class AboutForm : QlibFixedForm
11-
{
12-
public AboutForm()
13-
{
14-
InitializeComponent();
15-
SetDraggableControls(new List<Control>() { logoPictureBox, productLabel, versionLabel, copyrightLabel });
16-
17-
closeBtn.DarkMode = false;
18-
19-
string fullVer = Assembly.GetExecutingAssembly().GetName().Version.ToString();
20-
int lastDotIndex = fullVer.LastIndexOf('.');
21-
versionLabel.Text = String.Format("v{0}", fullVer.Substring(0, lastDotIndex));
22-
23-
if (IntPtr.Size == 4) versionLabel.Text += " (x32)";
24-
else if (IntPtr.Size == 8) versionLabel.Text += " (x64)";
25-
26-
if (ThemeMan.isWindows10()) makeDefaultBtn.Enabled = true;
27-
}
28-
29-
protected override void OnHandleCreated(EventArgs e)
30-
{
31-
ThemeMan.ApplyDarkTitlebar(Handle, DarkMode);
32-
base.OnHandleCreated(e);
33-
}
34-
35-
private void closeBtn_Click(object sender, EventArgs e)
36-
{
37-
Close();
38-
}
39-
40-
private void AboutForm_Load(object sender, EventArgs e)
41-
{
42-
InitLanguage();
43-
}
44-
45-
private void InitLanguage()
46-
{
47-
Text = LangMan.Get("about");
48-
updatesBtn.Text = " " + LangMan.Get("check-for-app-updates");
49-
descTextBox.Text = LangMan.Get("app-description");
50-
makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer");
51-
infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4");
52-
}
53-
54-
private void makeDefaultBtn_Click(object sender, EventArgs e)
55-
{
56-
Process.Start("ms-settings:defaultapps");
57-
}
58-
59-
private void updatesBtn_Click(object sender, EventArgs e)
60-
{
61-
UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle);
62-
Close();
63-
}
64-
65-
private void button1_Click(object sender, EventArgs e)
66-
{
67-
Process.Start("https://github.com/ModuleArt/quick-picture-viewer/");
68-
}
69-
70-
private void developerBtn_Click(object sender, EventArgs e)
71-
{
72-
Process.Start("https://moduleart.github.io");
73-
}
74-
}
75-
}
1+
using QuickLibrary;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Diagnostics;
5+
using System.Reflection;
6+
using System.Windows.Forms;
7+
8+
namespace quick_picture_viewer
9+
{
10+
partial class AboutForm : QlibFixedForm
11+
{
12+
public AboutForm()
13+
{
14+
InitializeComponent();
15+
SetDraggableControls(new List<Control>() { logoPictureBox, productLabel, versionLabel, copyrightLabel });
16+
17+
closeBtn.DarkMode = false;
18+
19+
string fullVer = Assembly.GetExecutingAssembly().GetName().Version.ToString();
20+
int lastDotIndex = fullVer.LastIndexOf('.');
21+
versionLabel.Text = String.Format("v{0}", fullVer.Substring(0, lastDotIndex));
22+
23+
if (IntPtr.Size == 4) versionLabel.Text += " (x32)";
24+
else if (IntPtr.Size == 8) versionLabel.Text += " (x64)";
25+
26+
if (ThemeMan.isWindows10()) makeDefaultBtn.Enabled = true;
27+
}
28+
29+
protected override void OnHandleCreated(EventArgs e)
30+
{
31+
ThemeMan.ApplyDarkTitlebar(Handle, DarkMode);
32+
base.OnHandleCreated(e);
33+
}
34+
35+
private void closeBtn_Click(object sender, EventArgs e)
36+
{
37+
Close();
38+
}
39+
40+
private void AboutForm_Load(object sender, EventArgs e)
41+
{
42+
InitLanguage();
43+
}
44+
45+
private void InitLanguage()
46+
{
47+
Text = LangMan.Get("about");
48+
updatesBtn.Text = " " + LangMan.Get("check-for-app-updates");
49+
descTextBox.Text = LangMan.Get("app-description");
50+
makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer");
51+
infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4");
52+
}
53+
54+
private void makeDefaultBtn_Click(object sender, EventArgs e)
55+
{
56+
Process.Start("ms-settings:defaultapps");
57+
}
58+
59+
private void updatesBtn_Click(object sender, EventArgs e)
60+
{
61+
UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle);
62+
Close();
63+
}
64+
65+
private void button1_Click(object sender, EventArgs e)
66+
{
67+
Process.Start("https://github.com/ModuleArt/quick-picture-viewer/");
68+
}
69+
70+
private void developerBtn_Click(object sender, EventArgs e)
71+
{
72+
Process.Start("https://moduleart.github.io");
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)