Skip to main content

Module theme

Module theme 

Source
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§

ThemeColors
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.