mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Shortcut save button works on load
Had missed the shortcutsave button so it wold be disabled on load, even if the shortcut was a valid shortcut. This is now changed so that it works fine on load. Have also changed the shortcut library selection colours to match the rest of the application.
This commit is contained in:
parent
3835840e78
commit
383f7a114f
@ -189,11 +189,16 @@ namespace HeliosPlus.UIForms
|
||||
}
|
||||
else
|
||||
{
|
||||
lbl_profile_shown_subtitle.Text = "";
|
||||
if (ProfileRepository.IsActiveProfile(_selectedProfile))
|
||||
{
|
||||
btn_apply.Visible = false;
|
||||
lbl_profile_shown_subtitle.Text = "This is the Display Profile currently in use.";
|
||||
}
|
||||
else
|
||||
{
|
||||
btn_apply.Visible = true;
|
||||
lbl_profile_shown_subtitle.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -201,7 +206,7 @@ namespace HeliosPlus.UIForms
|
||||
// we don't have the profile stored yet
|
||||
_saveOrRenameMode = "save";
|
||||
btn_save_or_rename.Text = "Save As";
|
||||
lbl_profile_shown_subtitle.Text = "The current Display configuration hasn't been saved as a Display Profile yet";
|
||||
lbl_profile_shown_subtitle.Text = "The current Display configuration hasn't been saved as a Display Profile yet.";
|
||||
btn_apply.Visible = false;
|
||||
}
|
||||
|
||||
|
@ -793,6 +793,9 @@ namespace HeliosPlus.UIForms
|
||||
|
||||
_loadedShortcut = true;
|
||||
|
||||
// Finally enable the save button if it's still valid
|
||||
enableSaveButtonIfValid();
|
||||
|
||||
}
|
||||
|
||||
private void rb_wait_process_CheckedChanged(object sender, EventArgs e)
|
||||
@ -904,7 +907,7 @@ namespace HeliosPlus.UIForms
|
||||
lbl_profile_shown.Text = _profileToUse.Name;
|
||||
|
||||
if (_profileToUse.Equals(ProfileRepository.CurrentProfile))
|
||||
lbl_profile_shown_subtitle.Text = "(Current Display Profile in use)";
|
||||
lbl_profile_shown_subtitle.Text = "This is the Display Profile currently in use.";
|
||||
else
|
||||
lbl_profile_shown_subtitle.Text = "";
|
||||
|
||||
|
@ -50,6 +50,7 @@
|
||||
this.ilv_saved_shortcuts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ilv_saved_shortcuts.Colors = new Manina.Windows.Forms.ImageListViewColor(resources.GetString("ilv_saved_shortcuts.Colors"));
|
||||
this.ilv_saved_shortcuts.Location = new System.Drawing.Point(0, 98);
|
||||
this.ilv_saved_shortcuts.MultiSelect = false;
|
||||
this.ilv_saved_shortcuts.Name = "ilv_saved_shortcuts";
|
||||
|
@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="ilv_saved_shortcuts.Colors" xml:space="preserve">
|
||||
<value>BorderColor = 406d6d6d; UnFocusedColor1 = ffff8080; UnFocusedColor2 = LightCoral; UnFocusedBorderColor = Maroon; HoverColor1 = 80078d7; HoverColor2 = 400078d7; HoverBorderColor = 400078d7; SelectedColor1 = ffff8080; SelectedColor2 = LightCoral; SelectedBorderColor = Maroon; DisabledColor1 = 6d6d6d; DisabledColor2 = 206d6d6d; DisabledBorderColor = 206d6d6d; DisabledForeColor = ff808080; ColumnHeaderBackColor1 = 20f0f0f0; ColumnHeaderBackColor2 = c4f0f0f0; ColumnHeaderHoverColor1 = 100078d7; ColumnHeaderHoverColor2 = 400078d7; ColumnSelectColor = 106d6d6d; ColumnSeparatorColor = 206d6d6d; PaneBackColor = 106d6d6d; PaneSeparatorColor = 806d6d6d; SelectionRectangleColor1 = 800078d7; SelectionRectangleColor2 = 800078d7</value>
|
||||
</data>
|
||||
<metadata name="dialog_save.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
Loading…
Reference in New Issue
Block a user