Skip to content

Commit 224df50

Browse files
committed
v2.2.5
1 parent 32621a1 commit 224df50

File tree

8 files changed

+20
-13
lines changed

8 files changed

+20
-13
lines changed

.vs/QuickLibrary/v16/.suo

-3 KB
Binary file not shown.
0 Bytes
Binary file not shown.

QuickLibrary/QlibCheckBox.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,23 +165,23 @@ protected override void OnPaint(PaintEventArgs e)
165165

166166
if (pressed)
167167
{
168-
e.Graphics.FillRectangle(new SolidBrush(ThemeManager.PressedColor), new Rectangle(0, top + 2, 13, 13));
168+
e.Graphics.FillRectangle(new SolidBrush(ThemeManager.PressedColor), new Rectangle(0, top + 2, 15, 15));
169169
}
170170
else
171171
{
172172
if (hovered)
173173
{
174-
e.Graphics.FillRectangle(new SolidBrush(ThemeManager.DarkHoverColor), new Rectangle(0, top + 2, 13, 13));
174+
e.Graphics.FillRectangle(new SolidBrush(ThemeManager.DarkHoverColor), new Rectangle(0, top + 2, 15, 15));
175175
}
176176
else
177177
{
178-
e.Graphics.FillRectangle(new SolidBrush(ThemeManager.DarkSecondColor), new Rectangle(0, top + 2, 13, 13));
178+
e.Graphics.FillRectangle(new SolidBrush(ThemeManager.DarkSecondColor), new Rectangle(0, top + 2, 15, 15));
179179
}
180180
}
181181

182182
if (Focused)
183183
{
184-
e.Graphics.DrawRectangle(new Pen(ThemeManager.BorderColor, 2), new Rectangle(1, top + 3, 11, 11));
184+
e.Graphics.DrawRectangle(new Pen(ThemeManager.BorderColor, 2), new Rectangle(1, top + 3, 13, 13));
185185
}
186186

187187
if (Checked)
@@ -190,24 +190,24 @@ protected override void OnPaint(PaintEventArgs e)
190190

191191
if (Enabled)
192192
{
193-
e.Graphics.DrawLine(new Pen(ForeColor, 2), 2, top + 7, 5, top + 10);
194-
e.Graphics.DrawLine(new Pen(ForeColor, 2), 5, top + 11, 12, top + 4);
193+
e.Graphics.DrawLine(new Pen(ForeColor, 2), 2, top + 8, 5, top + 11);
194+
e.Graphics.DrawLine(new Pen(ForeColor, 2), 5, top + 12, 12, top + 5);
195195
}
196196
else
197197
{
198-
e.Graphics.DrawLine(new Pen(ThemeManager.BorderColor, 2), 2, top + 7, 5, top + 10);
199-
e.Graphics.DrawLine(new Pen(ThemeManager.BorderColor, 2), 5, top + 11, 12, top + 4);
198+
e.Graphics.DrawLine(new Pen(ThemeManager.BorderColor, 2), 2, top + 8, 5, top + 11);
199+
e.Graphics.DrawLine(new Pen(ThemeManager.BorderColor, 2), 5, top + 12, 12, top + 5);
200200
}
201201
}
202202

203203
e.Graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
204204
if (Enabled)
205205
{
206-
e.Graphics.DrawString(Text, Font, new SolidBrush(ForeColor), 17, top);
206+
e.Graphics.DrawString(Text, Font, new SolidBrush(ForeColor), 22, top);
207207
}
208208
else
209209
{
210-
e.Graphics.DrawString(Text, Font, new SolidBrush(ThemeManager.BorderColor), 17, top);
210+
e.Graphics.DrawString(Text, Font, new SolidBrush(ThemeManager.BorderColor), 22, top);
211211
}
212212
}
213213
else

QuickLibrary/QlibTextBox.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,24 @@ public QlibTextBox()
9090
textBox.BorderStyle = BorderStyle.None;
9191
textBox.BackColor = BackColor;
9292

93+
textBox.TextChanged += TextBox_TextChanged;
94+
9395
Controls.Add(textBox);
9496

9597
base.Cursor = Cursors.IBeam;
9698

97-
this.SizeChanged += QlibTextBox_SizeChanged;
98-
this.GotFocus += QlibTextBox_GotFocus;
99-
this.Click += QlibTextBox_Click;
99+
SizeChanged += QlibTextBox_SizeChanged;
100+
GotFocus += QlibTextBox_GotFocus;
101+
Click += QlibTextBox_Click;
100102
}
101103

102104
// PRIVATE BODY
103105

106+
private void TextBox_TextChanged(object sender, EventArgs e)
107+
{
108+
OnTextChanged(e);
109+
}
110+
104111
private void QlibTextBox_Click(object sender, EventArgs e)
105112
{
106113
textBox.Select();
0 Bytes
Binary file not shown.
2 KB
Binary file not shown.
0 Bytes
Binary file not shown.
2 KB
Binary file not shown.

0 commit comments

Comments
 (0)