geboshi_V1/LeatherProject/GeBoShi/UI/UIStyle.cs

26 lines
768 B
C#
Raw Normal View History

2024-04-01 15:23:50 +08:00
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GeBoShi.UI
{
public class UIStyle
{
public static void SetUIStyle(Form frm)
{
frm.BackColor = Color.FromArgb(8, 31, 120);
frm.FormBorderStyle = FormBorderStyle.None;
frm.StartPosition = FormStartPosition.CenterScreen;
frm.Icon = Properties.Resources.Ge;
frm.ShowIcon = true;
//frm.ForeColor = Color.White;
//frm.MouseMove += Main_MouseMove;
//frm.MouseLeave += Main_Leave; // 有控件在边缘时,处理一下更好一些
}
}
}