mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-14 02:28:11 +02:00
Program icons at 128px, no frame
This commit is contained in:
1 parent
e8c524531e
commit
d9da8438c2
8 files changed
+128
-71
No files matched your search
@@ -237,10 +237,14 @@ def BuildTheme() -> ft.Theme:
|
||||
|
||||
def ChipButtonStyle(Accent: str = "") -> ft.ButtonStyle:
|
||||
"""SaraView's button look: SurfaceAlt fill, 1px accent border, small radius.
|
||||
Accent defaults to Mauve; Remove buttons pass Palette.Red."""
|
||||
Accent defaults to Mauve; Remove buttons pass Palette.Red. Disabled buttons
|
||||
are greyed out (muted text, plain border, no fill) so it's obvious they
|
||||
can't be pressed."""
|
||||
Disabled = ft.ControlState.DISABLED
|
||||
Default = ft.ControlState.DEFAULT
|
||||
return ft.ButtonStyle(
|
||||
color=Palette.Text,
|
||||
bgcolor=Palette.Surface0,
|
||||
side=ft.BorderSide(1, Accent or Palette.Mauve),
|
||||
color={Disabled: Palette.Overlay0, Default: Palette.Text},
|
||||
bgcolor={Disabled: Palette.Mantle, Default: Palette.Surface0},
|
||||
side={Disabled: ft.BorderSide(1, Palette.Surface1), Default: ft.BorderSide(1, Accent or Palette.Mauve)},
|
||||
shape=ft.RoundedRectangleBorder(radius=4),
|
||||
)
|
||||
Reference in new issue
Block a user