調整標籤樣式

This commit is contained in:
jasonchenwork 2025-05-13 15:21:19 +08:00
parent 6079ddd2a6
commit a4940126aa
3 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ namespace DualScreenDemo
private void InitializeButton(ref Button button, string buttonText, int x, int y, int width, int height, Rectangle cropArea, Image normalBackground, out Bitmap normalBackgroundOut, Image activeBackground, out Bitmap activeBackgroundOut, EventHandler clickEventHandler)
{
button = new Button { Text = buttonText, Visible = false };
button = new Button { Text = "", Visible = false };
ResizeAndPositionButton(button, x, y, width, height);
normalBackgroundOut = new Bitmap(normalBackground).Clone(cropArea, normalBackground.PixelFormat);
activeBackgroundOut = new Bitmap(activeBackground).Clone(cropArea, activeBackground.PixelFormat);

View File

@ -246,7 +246,7 @@ namespace DualScreenDemo
}
}
// 我的最愛新增
private void NewFavoriteButton_Click(object sender, EventArgs e)
{
if (mobileNumber.StartsWith("09") && mobileNumber.Length == 10)

View File

@ -169,6 +169,7 @@ namespace DualScreenDemo
private Dictionary<Control, (Point Location, bool Visible)> initialControlStates = new Dictionary<Control, (Point Location, bool Visible)>();
private Panel sendOffPanel;
private static Bitmap normalStateImageHotSong;
private static Bitmap mouseDownImageHotSong;