[Feature] Adjust default options (#270), version 1.1.2.6

This commit is contained in:
Markus Hofknecht 2021-12-11 14:34:28 +01:00
parent 466151311d
commit a94bbb8bb5
27 changed files with 165 additions and 67 deletions

View File

@ -414,7 +414,7 @@ namespace SystemTrayMenu.Business
{
string directory = Path.Combine(
networkLocationRootPath,
line.Substring(0, indexOfFirstSpace));
line[..indexOfFirstSpace]);
directories.Add(directory);
resolvedSomething = true;

View File

@ -26,7 +26,7 @@ namespace SystemTrayMenu
Config.LoadOrSetByUser();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += (s, t) => AskUserSendError(t.Exception);
Application.ThreadException += (sender, e) => AskUserSendError(e.Exception);
Scaling.Initialize();
FolderOptions.Initialize();

View File

@ -28,11 +28,7 @@ namespace SystemTrayMenu.Helper
internal Fading()
{
timer.Interval = Interval100FPS;
timer.Tick += Tick;
void Tick(object sender, EventArgs e)
{
FadeStep();
}
timer.Tick += (sender, e) => FadeStep();
}
internal event EventHandlerEmpty Hide;

View File

@ -30,10 +30,7 @@ namespace SystemTrayMenu.Helper
public KeyboardHook()
{
// register the event of the inner native window.
window.KeyPressed += (sender, args) =>
{
KeyPressed?.Invoke(this, args);
};
window.KeyPressed += (sender, e) => KeyPressed?.Invoke(this, e);
}
/// <summary>

View File

@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
TAMAHO SystemTrayMenu - browse and open your files easily
Copyright (C) 2021 Markus Hofknecht
Copyright (C) 2022 Markus Hofknecht
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -652,7 +652,7 @@ You can contact me by mail Markus@Hofknecht.eu
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
TAMAHO SystemTrayMenu Copyright (C) 2021 Markus Hofknecht
TAMAHO SystemTrayMenu Copyright (C) 2022 Markus Hofknecht
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TAMAHO")]
[assembly: AssemblyProduct("TAMAHO SystemTrayMenu")]
[assembly: AssemblyCopyright("Copyright © 2021, TAMAHO SystemTrayMenu")]
[assembly: AssemblyCopyright("Copyright © 2022, TAMAHO SystemTrayMenu")]
[assembly: AssemblyTrademark("TAMAHO")]
[assembly: AssemblyCulture("")]
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.2.5")]
[assembly: AssemblyFileVersion("1.1.2.5")]
[assembly: AssemblyVersion("1.1.2.6")]
[assembly: AssemblyFileVersion("1.1.2.6")]

View File

@ -142,7 +142,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool ShowInTaskbar
{
get
@ -158,7 +158,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool AppearAtTheBottomLeft
{
get
@ -222,7 +222,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool IsDarkModeAlwaysOn
{
get
@ -254,7 +254,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("100")]
[global::System.Configuration.DefaultSettingValueAttribute("125")]
public int SizeInPercentage
{
get
@ -318,7 +318,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("300")]
[global::System.Configuration.DefaultSettingValueAttribute("400")]
public int MaximumMenuWidth
{
get
@ -446,7 +446,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("500")]
[global::System.Configuration.DefaultSettingValueAttribute("400")]
public int TimeUntilCloses
{
get

View File

@ -240,6 +240,15 @@ namespace SystemTrayMenu.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Cache.
/// </summary>
internal static string Cache {
get {
return ResourceManager.GetString("Cache", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cache main menu.
/// </summary>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Vygenerujte zástupce jednotek</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Mezipaměti</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Verknüpfungen zu Laufwerken erstellen</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Zwischenspeicher</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Generar accesos directos a las unidades</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Cache</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>ایجاد میانبر برای درایوها</value>
</data>
<data name="Cache" xml:space="preserve">
<value>حافظه پنهان</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Générer des raccourcis vers les lecteurs</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Cacher</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Genera collegamenti alle unità</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Cache</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>ドライブへのショートカットを生成する</value>
</data>
<data name="Cache" xml:space="preserve">
<value>キャッシュ</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>드라이브에 대한 바로 가기 생성</value>
</data>
<data name="Cache" xml:space="preserve">
<value>은닉처</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Genereer snelkoppelingen naar stations</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Cache</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Gerar atalhos para drives</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Cache</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Generate shortcuts to drives</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Cache</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Создавайте ярлыки для дисков</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Кеш</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Sürücüler için kısayollar oluşturun</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Önbellek</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>Tạo lối tắt cho ổ đĩa</value>
</data>
<data name="Cache" xml:space="preserve">
<value>Bộ nhớ đệm</value>
</data>
</root>

View File

@ -420,4 +420,7 @@
<data name="Generate shortcuts to drives" xml:space="preserve">
<value>生成驱动器的快捷方式</value>
</data>
<data name="Cache" xml:space="preserve">
<value>缓存</value>
</data>
</root>

View File

@ -332,7 +332,7 @@ namespace SystemTrayMenu.UserInterface
{
if (title.Length > MenuDefines.LengthMax)
{
title = $"{title.Substring(0, MenuDefines.LengthMax)}...";
title = $"{title[..MenuDefines.LengthMax]}...";
}
labelTitle.Text = title;

View File

@ -77,7 +77,6 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems = new System.Windows.Forms.TableLayoutPanel();
this.labelClearCacheIfMoreThanThisNumberOfItems = new System.Windows.Forms.Label();
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems = new System.Windows.Forms.NumericUpDown();
this.checkBoxCacheMainMenu = new System.Windows.Forms.CheckBox();
this.checkBoxGenerateShortcutsToDrives = new System.Windows.Forms.CheckBox();
this.tabPageAdvanced = new System.Windows.Forms.TabPage();
this.tableLayoutPanelAdvanced = new System.Windows.Forms.TableLayoutPanel();
@ -288,6 +287,9 @@ namespace SystemTrayMenu.UserInterface
this.buttonOk = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.colorDialog = new System.Windows.Forms.ColorDialog();
this.groupBoxCache = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.checkBoxCacheMainMenu = new System.Windows.Forms.CheckBox();
this.tableLayoutPanelMain.SuspendLayout();
this.tabControl.SuspendLayout();
this.tabPageGeneral.SuspendLayout();
@ -421,6 +423,8 @@ namespace SystemTrayMenu.UserInterface
this.groupBoxAppearance.SuspendLayout();
this.tableLayoutPanelAppearance.SuspendLayout();
this.tableLayoutPanelBottom.SuspendLayout();
this.groupBoxCache.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanelMain
@ -873,20 +877,14 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanelFoldersInRootFolder.ColumnCount = 1;
this.tableLayoutPanelFoldersInRootFolder.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.groupBoxFoldersInRootFolder, 0, 0);
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.buttonDefaultFolders, 0, 4);
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems, 0, 3);
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.checkBoxCacheMainMenu, 0, 2);
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.checkBoxGenerateShortcutsToDrives, 0, 1);
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.buttonDefaultFolders, 0, 1);
this.tableLayoutPanelFoldersInRootFolder.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanelFoldersInRootFolder.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanelFoldersInRootFolder.Name = "tableLayoutPanelFoldersInRootFolder";
this.tableLayoutPanelFoldersInRootFolder.RowCount = 6;
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFoldersInRootFolder.RowCount = 2;
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanelFoldersInRootFolder.Size = new System.Drawing.Size(408, 407);
this.tableLayoutPanelFoldersInRootFolder.TabIndex = 1;
//
@ -899,7 +897,7 @@ namespace SystemTrayMenu.UserInterface
this.groupBoxFoldersInRootFolder.MaximumSize = new System.Drawing.Size(400, 0);
this.groupBoxFoldersInRootFolder.MinimumSize = new System.Drawing.Size(400, 0);
this.groupBoxFoldersInRootFolder.Name = "groupBoxFoldersInRootFolder";
this.groupBoxFoldersInRootFolder.Size = new System.Drawing.Size(400, 274);
this.groupBoxFoldersInRootFolder.Size = new System.Drawing.Size(400, 299);
this.groupBoxFoldersInRootFolder.TabIndex = 0;
this.groupBoxFoldersInRootFolder.TabStop = false;
this.groupBoxFoldersInRootFolder.Text = "groupBox1";
@ -913,15 +911,17 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanelFolderToRootFoldersList7.Controls.Add(this.tableLayoutPanelFolderToRootFolder, 0, 1);
this.tableLayoutPanelFolderToRootFoldersList7.Controls.Add(this.dataGridViewFolders, 0, 2);
this.tableLayoutPanelFolderToRootFoldersList7.Controls.Add(this.tableLayoutPanelAddSampleStartMenuFolder, 0, 3);
this.tableLayoutPanelFolderToRootFoldersList7.Controls.Add(this.checkBoxGenerateShortcutsToDrives, 0, 4);
this.tableLayoutPanelFolderToRootFoldersList7.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanelFolderToRootFoldersList7.Location = new System.Drawing.Point(3, 19);
this.tableLayoutPanelFolderToRootFoldersList7.Name = "tableLayoutPanelFolderToRootFoldersList7";
this.tableLayoutPanelFolderToRootFoldersList7.RowCount = 4;
this.tableLayoutPanelFolderToRootFoldersList7.RowCount = 5;
this.tableLayoutPanelFolderToRootFoldersList7.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFolderToRootFoldersList7.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFolderToRootFoldersList7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 190F));
this.tableLayoutPanelFolderToRootFoldersList7.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFolderToRootFoldersList7.Size = new System.Drawing.Size(394, 252);
this.tableLayoutPanelFolderToRootFoldersList7.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelFolderToRootFoldersList7.Size = new System.Drawing.Size(394, 277);
this.tableLayoutPanelFolderToRootFoldersList7.TabIndex = 0;
//
// tableLayoutPanelFolderToRootFolder
@ -1058,7 +1058,7 @@ namespace SystemTrayMenu.UserInterface
//
this.buttonDefaultFolders.AutoSize = true;
this.buttonDefaultFolders.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.buttonDefaultFolders.Location = new System.Drawing.Point(9, 368);
this.buttonDefaultFolders.Location = new System.Drawing.Point(9, 314);
this.buttonDefaultFolders.Margin = new System.Windows.Forms.Padding(9, 9, 3, 9);
this.buttonDefaultFolders.MinimumSize = new System.Drawing.Size(75, 25);
this.buttonDefaultFolders.Name = "buttonDefaultFolders";
@ -1078,12 +1078,12 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Controls.Add(this.labelClearCacheIfMoreThanThisNumberOfItems, 1, 0);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Controls.Add(this.numericUpDownClearCacheIfMoreThanThisNumberOfItems, 0, 0);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Location = new System.Drawing.Point(0, 330);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Location = new System.Drawing.Point(0, 25);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Name = "tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems";
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.RowCount = 1;
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Size = new System.Drawing.Size(408, 29);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.Size = new System.Drawing.Size(394, 29);
this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems.TabIndex = 3;
//
// labelClearCacheIfMoreThanThisNumberOfItems
@ -1119,22 +1119,12 @@ namespace SystemTrayMenu.UserInterface
0,
0});
//
// checkBoxCacheMainMenu
//
this.checkBoxCacheMainMenu.AutoSize = true;
this.checkBoxCacheMainMenu.Location = new System.Drawing.Point(3, 308);
this.checkBoxCacheMainMenu.Name = "checkBoxCacheMainMenu";
this.checkBoxCacheMainMenu.Size = new System.Drawing.Size(168, 19);
this.checkBoxCacheMainMenu.TabIndex = 3;
this.checkBoxCacheMainMenu.Text = "checkBoxCacheMainMenu";
this.checkBoxCacheMainMenu.UseVisualStyleBackColor = true;
//
// checkBoxGenerateShortcutsToDrives
//
this.checkBoxGenerateShortcutsToDrives.AutoSize = true;
this.checkBoxGenerateShortcutsToDrives.Location = new System.Drawing.Point(3, 283);
this.checkBoxGenerateShortcutsToDrives.Location = new System.Drawing.Point(3, 255);
this.checkBoxGenerateShortcutsToDrives.Name = "checkBoxGenerateShortcutsToDrives";
this.checkBoxGenerateShortcutsToDrives.Size = new System.Drawing.Size(195, 19);
this.checkBoxGenerateShortcutsToDrives.Size = new System.Drawing.Size(218, 19);
this.checkBoxGenerateShortcutsToDrives.TabIndex = 7;
this.checkBoxGenerateShortcutsToDrives.Text = "checkBoxGenerateShortcutsToDrives";
this.checkBoxGenerateShortcutsToDrives.UseVisualStyleBackColor = true;
@ -1528,16 +1518,18 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanelExpert.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tableLayoutPanelExpert.ColumnCount = 1;
this.tableLayoutPanelExpert.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanelExpert.Controls.Add(this.buttonExpertDefault, 0, 2);
this.tableLayoutPanelExpert.Controls.Add(this.groupBoxCache, 0, 2);
this.tableLayoutPanelExpert.Controls.Add(this.groupBoxStaysOpen, 0, 1);
this.tableLayoutPanelExpert.Controls.Add(this.groupBoxOpenSubmenus, 0, 0);
this.tableLayoutPanelExpert.Controls.Add(this.buttonExpertDefault, 0, 3);
this.tableLayoutPanelExpert.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanelExpert.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanelExpert.Name = "tableLayoutPanelExpert";
this.tableLayoutPanelExpert.RowCount = 3;
this.tableLayoutPanelExpert.RowCount = 4;
this.tableLayoutPanelExpert.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelExpert.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelExpert.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelExpert.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanelExpert.Size = new System.Drawing.Size(408, 407);
this.tableLayoutPanelExpert.TabIndex = 1;
//
@ -1545,7 +1537,7 @@ namespace SystemTrayMenu.UserInterface
//
this.buttonExpertDefault.AutoSize = true;
this.buttonExpertDefault.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.buttonExpertDefault.Location = new System.Drawing.Point(9, 233);
this.buttonExpertDefault.Location = new System.Drawing.Point(9, 318);
this.buttonExpertDefault.Margin = new System.Windows.Forms.Padding(9, 9, 3, 9);
this.buttonExpertDefault.MinimumSize = new System.Drawing.Size(75, 25);
this.buttonExpertDefault.Name = "buttonExpertDefault";
@ -4038,6 +4030,48 @@ namespace SystemTrayMenu.UserInterface
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
//
// groupBoxCache
//
this.groupBoxCache.AutoSize = true;
this.groupBoxCache.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.groupBoxCache.Controls.Add(this.tableLayoutPanel1);
this.groupBoxCache.Location = new System.Drawing.Point(3, 227);
this.groupBoxCache.MaximumSize = new System.Drawing.Size(400, 0);
this.groupBoxCache.MinimumSize = new System.Drawing.Size(400, 0);
this.groupBoxCache.Name = "groupBoxCache";
this.groupBoxCache.Padding = new System.Windows.Forms.Padding(3, 3, 3, 6);
this.groupBoxCache.Size = new System.Drawing.Size(400, 79);
this.groupBoxCache.TabIndex = 1;
this.groupBoxCache.TabStop = false;
this.groupBoxCache.Text = "groupBoxCache";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.AutoSize = true;
this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.checkBoxCacheMainMenu, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems, 0, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 19);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.Size = new System.Drawing.Size(394, 54);
this.tableLayoutPanel1.TabIndex = 0;
//
// checkBoxCacheMainMenu
//
this.checkBoxCacheMainMenu.AutoSize = true;
this.checkBoxCacheMainMenu.Location = new System.Drawing.Point(3, 3);
this.checkBoxCacheMainMenu.Name = "checkBoxCacheMainMenu";
this.checkBoxCacheMainMenu.Size = new System.Drawing.Size(168, 19);
this.checkBoxCacheMainMenu.TabIndex = 3;
this.checkBoxCacheMainMenu.Text = "checkBoxCacheMainMenu";
this.checkBoxCacheMainMenu.UseVisualStyleBackColor = true;
//
// SettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -4272,6 +4306,10 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanelAppearance.PerformLayout();
this.tableLayoutPanelBottom.ResumeLayout(false);
this.tableLayoutPanelBottom.PerformLayout();
this.groupBoxCache.ResumeLayout(false);
this.groupBoxCache.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@ -4523,7 +4561,6 @@ namespace SystemTrayMenu.UserInterface
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelClearCacheIfMoreThanThisNumberOfItems;
private System.Windows.Forms.NumericUpDown numericUpDownClearCacheIfMoreThanThisNumberOfItems;
private System.Windows.Forms.Label labelClearCacheIfMoreThanThisNumberOfItems;
private System.Windows.Forms.CheckBox checkBoxCacheMainMenu;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelAddSampleStartMenuFolder;
private System.Windows.Forms.Button buttonAddSampleStartMenuFolder;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelRowHeighteInPercentage;
@ -4539,5 +4576,8 @@ namespace SystemTrayMenu.UserInterface
private System.Windows.Forms.RadioButton radioButtonAppearAtMouseLocation;
private System.Windows.Forms.RadioButton radioButtonUseCustomLocation;
private System.Windows.Forms.CheckBox checkBoxGenerateShortcutsToDrives;
private System.Windows.Forms.GroupBox groupBoxCache;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.CheckBox checkBoxCacheMainMenu;
}
}

View File

@ -136,8 +136,6 @@ namespace SystemTrayMenu.UserInterface
buttonAddSampleStartMenuFolder.Text = Translator.GetText("Add sample 'Start Menu' folder");
buttonDefaultFolders.Text = Translator.GetText("Default");
checkBoxGenerateShortcutsToDrives.Text = Translator.GetText("Generate shortcuts to drives");
checkBoxCacheMainMenu.Text = Translator.GetText("Cache main menu");
labelClearCacheIfMoreThanThisNumberOfItems.Text = Translator.GetText("Clear cache if more than this number of items");
groupBoxClick.Text = Translator.GetText("Click");
checkBoxShowInTaskbar.Text = Translator.GetText("Show in Taskbar");
checkBoxOpenItemWithOneClick.Text = Translator.GetText("Single click to start item");
@ -160,6 +158,9 @@ namespace SystemTrayMenu.UserInterface
labelTimeUntilOpen.Text = Translator.GetText("Milliseconds until a menu opens when the mouse is on it");
checkBoxStayOpenWhenFocusLostAfterEnterPressed.Text = Translator.GetText("If the focus is lost and the Enter key was pressed");
labelTimeUntilClosesAfterEnterPressed.Text = Translator.GetText("Milliseconds until the menu closes if in this case the menu is not reactivated");
groupBoxCache.Text = Translator.GetText("Cache");
checkBoxCacheMainMenu.Text = Translator.GetText("Cache main menu");
labelClearCacheIfMoreThanThisNumberOfItems.Text = Translator.GetText("Clear cache if more than this number of items");
buttonExpertDefault.Text = Translator.GetText("Default");
groupBoxAppearance.Text = Translator.GetText("Appearance");
checkBoxRoundCorners.Text = Translator.GetText("Round corners");
@ -300,8 +301,6 @@ namespace SystemTrayMenu.UserInterface
}
checkBoxGenerateShortcutsToDrives.Checked = Settings.Default.GenerateShortcutsToDrives;
checkBoxCacheMainMenu.Checked = Settings.Default.CacheMainMenu;
numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = Settings.Default.ClearCacheIfMoreThanThisNumberOfItems;
checkBoxShowInTaskbar.Checked = Settings.Default.ShowInTaskbar;
checkBoxOpenItemWithOneClick.Checked = Settings.Default.OpenItemWithOneClick;
@ -382,7 +381,7 @@ namespace SystemTrayMenu.UserInterface
numericUpDownTimeUntilClose.Minimum = 200;
numericUpDownTimeUntilClose.Maximum = 5000;
numericUpDownTimeUntilClose.Increment = 100;
numericUpDownTimeUntilClose.Increment = 10;
numericUpDownTimeUntilClose.Value = Settings.Default.TimeUntilCloses;
numericUpDownTimeUntilOpens.Minimum = 20;
@ -397,6 +396,9 @@ namespace SystemTrayMenu.UserInterface
numericUpDownTimeUntilClosesAfterEnterPressed.Increment = 10;
numericUpDownTimeUntilClosesAfterEnterPressed.Value = Settings.Default.TimeUntilClosesAfterEnterPressed;
checkBoxCacheMainMenu.Checked = Settings.Default.CacheMainMenu;
numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = Settings.Default.ClearCacheIfMoreThanThisNumberOfItems;
checkBoxRoundCorners.Checked = Settings.Default.RoundCorners;
checkBoxDarkModeAlwaysOn.Checked = Settings.Default.IsDarkModeAlwaysOn;
@ -913,8 +915,6 @@ namespace SystemTrayMenu.UserInterface
{
dataGridViewFolders.Rows.Clear();
checkBoxGenerateShortcutsToDrives.Checked = false;
checkBoxCacheMainMenu.Checked = true;
numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = 200;
}
private void ButtonAddFolderToRootFolder_Click(object sender, EventArgs e)
@ -1004,13 +1004,13 @@ namespace SystemTrayMenu.UserInterface
{
checkBoxOpenItemWithOneClick.Checked = true;
radioButtonAppearAtMouseLocation.Checked = false;
numericUpDownSizeInPercentage.Value = 100;
numericUpDownSizeInPercentage.Value = 125;
numericUpDownRowHeighteInPercentage.Value = 100;
numericUpDownMenuWidth.Value = 300;
numericUpDownMenuWidth.Value = 400;
numericUpDownMenuHeight.Value = 600;
checkBoxShowInTaskbar.Checked = false;
checkBoxShowInTaskbar.Checked = true;
radioButtonAppearAtTheBottomRight.Checked = true;
radioButtonAppearAtTheBottomLeft.Checked = false;
radioButtonAppearAtTheBottomLeft.Checked = true;
radioButtonUseCustomLocation.Checked = false;
radioButtonAppearAtMouseLocation.Checked = false;
}
@ -1029,10 +1029,12 @@ namespace SystemTrayMenu.UserInterface
{
checkBoxStayOpenWhenItemClicked.Checked = true;
checkBoxStayOpenWhenFocusLost.Checked = true;
numericUpDownTimeUntilClose.Value = 500;
numericUpDownTimeUntilClose.Value = 400;
numericUpDownTimeUntilOpens.Value = 100;
checkBoxStayOpenWhenFocusLostAfterEnterPressed.Checked = true;
numericUpDownTimeUntilClosesAfterEnterPressed.Value = 200;
checkBoxCacheMainMenu.Checked = true;
numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = 200;
}
private void TextBoxColorsChanged(object sender, EventArgs e)

View File

@ -66,6 +66,15 @@
<metadata name="ColumnOnlyFiles.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColumnFolder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColumnRecursiveLevel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColumnOnlyFiles.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>