import ttkbootstrap as ttk

# 颜色配置
COLOR_PRIMARY = "#2E86AB"
COLOR_SECONDARY = "#A23B72"
COLOR_SUCCESS = "#F18F01"
COLOR_WARNING = "#C73E1D"
COLOR_TEXT = "#333333"

# 字体配置
FONT_TITLE = ("微软雅黑", 18, "bold")
FONT_SUBTITLE = ("微软雅黑", 14, "bold")
FONT_NORMAL = ("微软雅黑", 12)
FONT_SMALL = ("微软雅黑", 10)

# 布局配置
PADDING_SMALL = 5
PADDING_MEDIUM = 10
PADDING_LARGE = 20
BUTTON_WIDTH = 15
BUTTON_HEIGHT = 2

# 组件样式
STYLE_BUTTON_PRIMARY = ttk.Style()
STYLE_BUTTON_PRIMARY.configure(
    "Primary.TButton",
    font=FONT_NORMAL,
    foreground="white",
    background=COLOR_PRIMARY,
    padding=PADDING_SMALL
)

STYLE_BUTTON_SUCCESS = ttk.Style()
STYLE_BUTTON_SUCCESS.configure(
    "Success.TButton",
    font=FONT_NORMAL,
    foreground="white",
    background=COLOR_SUCCESS,
    padding=PADDING_SMALL
)

STYLE_LABEL_RESULT = ttk.Style()
STYLE_LABEL_RESULT.configure(
    "Result.TLabel",
    font=FONT_SUBTITLE,
    foreground=COLOR_TEXT,
    padding=PADDING_MEDIUM
)