mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Fix image list color depth
This commit is contained in:
parent
0b2f4840c4
commit
c0015f0e8f
1 changed files with 7 additions and 7 deletions
|
@ -32,6 +32,7 @@ private void InitializeComponent()
|
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GradientPickerForm));
|
||||
this.lvGradientPoints = new System.Windows.Forms.ListView();
|
||||
this.chLocation = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.ilColors = new System.Windows.Forms.ImageList(this.components);
|
||||
this.btnAdd = new System.Windows.Forms.Button();
|
||||
this.btnRemove = new System.Windows.Forms.Button();
|
||||
this.nudLocation = new System.Windows.Forms.NumericUpDown();
|
||||
|
@ -44,7 +45,6 @@ private void InitializeComponent()
|
|||
this.lblPreview = new System.Windows.Forms.Label();
|
||||
this.btnReverse = new System.Windows.Forms.Button();
|
||||
this.cbtnCurrentColor = new ShareX.HelpersLib.ColorButton();
|
||||
this.ilColors = new System.Windows.Forms.ImageList(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudLocation)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pbPreview)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
|
@ -68,6 +68,12 @@ private void InitializeComponent()
|
|||
//
|
||||
resources.ApplyResources(this.chLocation, "chLocation");
|
||||
//
|
||||
// ilColors
|
||||
//
|
||||
this.ilColors.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
|
||||
resources.ApplyResources(this.ilColors, "ilColors");
|
||||
this.ilColors.TransparentColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
resources.ApplyResources(this.btnAdd, "btnAdd");
|
||||
|
@ -149,12 +155,6 @@ private void InitializeComponent()
|
|||
this.cbtnCurrentColor.UseVisualStyleBackColor = true;
|
||||
this.cbtnCurrentColor.ColorChanged += new ShareX.HelpersLib.ColorButton.ColorChangedEventHandler(this.cbtnCurrentColor_ColorChanged);
|
||||
//
|
||||
// ilColors
|
||||
//
|
||||
this.ilColors.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
|
||||
resources.ApplyResources(this.ilColors, "ilColors");
|
||||
this.ilColors.TransparentColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
// GradientPickerForm
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
|
|
Loading…
Reference in a new issue