Expand description
Theme helpers for GitKraft’s UI.
Colours are now derived from the unified gitkraft_core::AppTheme
definitions so that both the GUI and TUI render the exact same palette for
every theme. The old from_theme() constructor is kept as a convenience
fallback that maps an iced::Theme to the closest core theme index.
Structs§
- Theme
Colors - A resolved set of colours derived from the active
iced::Theme.
Functions§
- active_
tab_ button - Active tab button — has a visible bottom accent border to indicate selection.
- backdrop_
style - Style for the semi-transparent backdrop behind an open context menu.
- bg_
style - Style for a container with the main window background.
- context_
menu_ item - Context menu item button — transparent at rest, accent-tinted on hover.
- context_
menu_ style - Style for the floating context-menu panel.
- diff_
add_ style - Style for a diff addition line.
- diff_
del_ style - Style for a diff deletion line.
- diff_
hunk_ style - Style for a diff hunk header line.
- error_
banner_ style - Style for the error banner background (faint red tint).
- ghost_
button - Completely transparent button — no background, no border. Used for clickable rows in the commit log, branch list, staging area, etc.
- header_
style - Style for a container with the header / toolbar background.
- icon_
button - Small icon-only action button (stage, unstage, delete, etc.)
- overlay_
scrollbar - Overlay scrollbar — invisible at rest, thin rounded thumb on hover/drag.
- selected_
row_ style - Style for a selected / highlighted row.
- sidebar_
style - Style for a container with the sidebar background.
- status_
color - Return the colour corresponding to a file-status badge.
- surface_
style - Style for a container with the standard surface background.
- toolbar_
button - Subtle toolbar button — transparent at rest, light surface on hover.