mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Working shortcut library highlighting
Highlighting colours and structure changed to work better with the ILV structure. Next step is to add the ability to visually show invalid shortcuts to notify when a shortcut won't work.
This commit is contained in:
@ -75,10 +75,11 @@ namespace DisplayMagician.UIForms
|
||||
/*if ((ImageListView.Focused && ((state & ItemState.Selected) != ItemState.None)) ||
|
||||
(!ImageListView.Focused && ((state & ItemState.Selected) != ItemState.None) && ((state & ItemState.Hovered) != ItemState.None)))*/
|
||||
if ((state & ItemState.Selected) != ItemState.None)
|
||||
{
|
||||
//using (Brush bSelected = new LinearGradientBrush(bounds, ImageListView.Colors.SelectedColor1, ImageListView.Colors.SelectedColor2, LinearGradientMode.Vertical))
|
||||
using (Brush bSelected = new LinearGradientBrush(bounds, Color.WhiteSmoke, Color.LightGray, LinearGradientMode.Vertical))
|
||||
{
|
||||
using (Brush bSelected = new LinearGradientBrush(bounds, ImageListView.Colors.SelectedColor1, ImageListView.Colors.SelectedColor2, LinearGradientMode.Vertical))
|
||||
{
|
||||
Utility.FillRoundedRectangle(g, bSelected, bounds, 10);
|
||||
Utility.FillRoundedRectangle(g, bSelected, bounds, 12);
|
||||
}
|
||||
}
|
||||
|
||||
@ -169,6 +170,18 @@ namespace DisplayMagician.UIForms
|
||||
Utility.DrawRoundedRectangle(g, pGray128, bounds.Left, bounds.Top, bounds.Width - 1, bounds.Height - 1, 4);
|
||||
}
|
||||
}*/
|
||||
if ((state & ItemState.Selected) != ItemState.None)
|
||||
{
|
||||
/*using (Pen pGray128 = new Pen(ImageListView.Colors.UnFocusedBorderColor))
|
||||
{
|
||||
Utility.DrawRoundedRectangle(g, pGray128, bounds.Left, bounds.Top, bounds.Width - 1, bounds.Height - 1, 4);
|
||||
}*/
|
||||
using (Pen pSelectedBorder = new Pen(Color.Brown,4))
|
||||
{
|
||||
//DrawRoundedRectangle(g, pSelectedBorder, bounds, 9);
|
||||
Utility.DrawRoundedRectangle(g, pSelectedBorder, bounds.Left+3, bounds.Top+3, bounds.Width - 5, bounds.Height - 5, 10);
|
||||
}
|
||||
}
|
||||
/*else if (ImageListView.View != View.Details && (state & ItemState.Selected) == ItemState.None)
|
||||
{
|
||||
using (Pen pGray64 = new Pen(ImageListView.Colors.BorderColor))
|
||||
|
@ -59,7 +59,6 @@
|
||||
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,9 +117,6 @@
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user