mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tweak
This commit is contained in:
@@ -116,19 +116,19 @@ LayoutDefinition = "dict[str, Any]"
|
||||
DEFAULT_COLORS = {
|
||||
"dark": ColorSystem(
|
||||
primary="#004578",
|
||||
secondary="#ffa62b",
|
||||
warning="#ffa62b",
|
||||
error="#ba3c5b",
|
||||
success="#4EBF71",
|
||||
secondary="#F2A549",
|
||||
warning="#F2A549",
|
||||
error="#EF4248",
|
||||
success="#22BF81",
|
||||
accent="#0178D4",
|
||||
dark=True,
|
||||
),
|
||||
"light": ColorSystem(
|
||||
primary="#004578",
|
||||
secondary="#ffa62b",
|
||||
warning="#ffa62b",
|
||||
error="#ba3c5b",
|
||||
success="#4EBF71",
|
||||
secondary="#F2A549",
|
||||
warning="#F2A549",
|
||||
error="#EF4248",
|
||||
success="#22BF81",
|
||||
accent="#0178D4",
|
||||
dark=False,
|
||||
),
|
||||
|
||||
@@ -58,9 +58,7 @@ class Button(Static, can_focus=True):
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
App.-light-mode Button.-default {
|
||||
border: tall $foreground;
|
||||
}
|
||||
|
||||
|
||||
App.-light-mode Button.-default:hover {
|
||||
border: tall $accent;
|
||||
@@ -143,7 +141,7 @@ class Button(Static, can_focus=True):
|
||||
}
|
||||
|
||||
App.-light-mode Button.-error {
|
||||
background: $error;
|
||||
background: $error 80%;
|
||||
color: $text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user