-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
- Loading branch information
Showing
73 changed files
with
13,387 additions
and
13,376 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes.
506 changes: 253 additions & 253 deletions
506
quick-picture-viewer/AboutForm.Designer.cs → ...icture-viewer/forms/AboutForm.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
150 changes: 75 additions & 75 deletions
150
quick-picture-viewer/AboutForm.cs → quick-picture-viewer/forms/AboutForm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,75 @@ | ||
using QuickLibrary; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Windows.Forms; | ||
|
||
namespace quick_picture_viewer | ||
{ | ||
partial class AboutForm : QlibFixedForm | ||
{ | ||
public AboutForm() | ||
{ | ||
InitializeComponent(); | ||
SetDraggableControls(new List<Control>() { logoPictureBox, productLabel, versionLabel, copyrightLabel }); | ||
|
||
closeBtn.DarkMode = false; | ||
|
||
string fullVer = Assembly.GetExecutingAssembly().GetName().Version.ToString(); | ||
int lastDotIndex = fullVer.LastIndexOf('.'); | ||
versionLabel.Text = String.Format("v{0}", fullVer.Substring(0, lastDotIndex)); | ||
|
||
if (IntPtr.Size == 4) versionLabel.Text += " (x32)"; | ||
else if (IntPtr.Size == 8) versionLabel.Text += " (x64)"; | ||
|
||
if (ThemeMan.isWindows10()) makeDefaultBtn.Enabled = true; | ||
} | ||
|
||
protected override void OnHandleCreated(EventArgs e) | ||
{ | ||
ThemeMan.ApplyDarkTitlebar(Handle, DarkMode); | ||
base.OnHandleCreated(e); | ||
} | ||
|
||
private void closeBtn_Click(object sender, EventArgs e) | ||
{ | ||
Close(); | ||
} | ||
|
||
private void AboutForm_Load(object sender, EventArgs e) | ||
{ | ||
InitLanguage(); | ||
} | ||
|
||
private void InitLanguage() | ||
{ | ||
Text = LangMan.Get("about"); | ||
updatesBtn.Text = " " + LangMan.Get("check-for-app-updates"); | ||
descTextBox.Text = LangMan.Get("app-description"); | ||
makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer"); | ||
infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); | ||
} | ||
|
||
private void makeDefaultBtn_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start("ms-settings:defaultapps"); | ||
} | ||
|
||
private void updatesBtn_Click(object sender, EventArgs e) | ||
{ | ||
UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle); | ||
Close(); | ||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start("https://github.com/ModuleArt/quick-picture-viewer/"); | ||
} | ||
|
||
private void developerBtn_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start("https://moduleart.github.io"); | ||
} | ||
} | ||
} | ||
using QuickLibrary; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Reflection; | ||
using System.Windows.Forms; | ||
|
||
namespace quick_picture_viewer | ||
{ | ||
partial class AboutForm : QlibFixedForm | ||
{ | ||
public AboutForm() | ||
{ | ||
InitializeComponent(); | ||
SetDraggableControls(new List<Control>() { logoPictureBox, productLabel, versionLabel, copyrightLabel }); | ||
|
||
closeBtn.DarkMode = false; | ||
|
||
string fullVer = Assembly.GetExecutingAssembly().GetName().Version.ToString(); | ||
int lastDotIndex = fullVer.LastIndexOf('.'); | ||
versionLabel.Text = String.Format("v{0}", fullVer.Substring(0, lastDotIndex)); | ||
|
||
if (IntPtr.Size == 4) versionLabel.Text += " (x32)"; | ||
else if (IntPtr.Size == 8) versionLabel.Text += " (x64)"; | ||
|
||
if (ThemeMan.isWindows10()) makeDefaultBtn.Enabled = true; | ||
} | ||
|
||
protected override void OnHandleCreated(EventArgs e) | ||
{ | ||
ThemeMan.ApplyDarkTitlebar(Handle, DarkMode); | ||
base.OnHandleCreated(e); | ||
} | ||
|
||
private void closeBtn_Click(object sender, EventArgs e) | ||
{ | ||
Close(); | ||
} | ||
|
||
private void AboutForm_Load(object sender, EventArgs e) | ||
{ | ||
InitLanguage(); | ||
} | ||
|
||
private void InitLanguage() | ||
{ | ||
Text = LangMan.Get("about"); | ||
updatesBtn.Text = " " + LangMan.Get("check-for-app-updates"); | ||
descTextBox.Text = LangMan.Get("app-description"); | ||
makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer"); | ||
infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); | ||
} | ||
|
||
private void makeDefaultBtn_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start("ms-settings:defaultapps"); | ||
} | ||
|
||
private void updatesBtn_Click(object sender, EventArgs e) | ||
{ | ||
UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle); | ||
Close(); | ||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start("https://github.com/ModuleArt/quick-picture-viewer/"); | ||
} | ||
|
||
private void developerBtn_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start("https://moduleart.github.io"); | ||
} | ||
} | ||
} |
Oops, something went wrong.