mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 11:14:52 +02:00
Refine member and asset detail layouts
This commit is contained in:
@@ -47,6 +47,28 @@ def _configure_ccma_styles(style: ttk.Style, variant: str) -> None:
|
||||
accent = "#00d084" if dark else "#087f5b"
|
||||
warning = "#ffb454"
|
||||
danger = "#ff6b6b"
|
||||
message_styles = {
|
||||
"Error": (
|
||||
"#5c2528" if dark else "#d04242",
|
||||
"#3a1719" if dark else "#fde8e8",
|
||||
"#ffd7d7" if dark else "#8a1f1f",
|
||||
),
|
||||
"Warning": (
|
||||
"#6c4b19" if dark else "#d69b19",
|
||||
"#3a2a12" if dark else "#fff4cc",
|
||||
"#ffe2a8" if dark else "#7a4f00",
|
||||
),
|
||||
"Info": (
|
||||
"#204f79" if dark else "#5b9bd8",
|
||||
"#132c45" if dark else "#e5f1ff",
|
||||
"#cde6ff" if dark else "#174a7c",
|
||||
),
|
||||
"Notification": (
|
||||
"#1f5a3a" if dark else "#57ad75",
|
||||
"#123222" if dark else "#e4f7ec",
|
||||
"#c9f2dc" if dark else "#1f6b3d",
|
||||
),
|
||||
}
|
||||
style.configure("Ribbon.TFrame", padding=(12, 9))
|
||||
style.configure("AppTitle.TLabel", font=("TkDefaultFont", 14, "bold"))
|
||||
style.configure("TabTitle.TLabel", font=("TkDefaultFont", 15, "bold"))
|
||||
@@ -75,3 +97,15 @@ def _configure_ccma_styles(style: ttk.Style, variant: str) -> None:
|
||||
fieldbackground=background,
|
||||
foreground=foreground,
|
||||
)
|
||||
for name, (message_border, message_background, message_foreground) in message_styles.items():
|
||||
style.configure(f"Message{name}Border.TFrame", background=message_border)
|
||||
style.configure(
|
||||
f"Message{name}.TFrame",
|
||||
background=message_background,
|
||||
)
|
||||
style.configure(
|
||||
f"Message{name}.TLabel",
|
||||
background=message_background,
|
||||
foreground=message_foreground,
|
||||
font=("TkDefaultFont", 10),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user