@@ -127,6 +127,8 @@ type UI struct {
127 height int
127 height int
128 layout layout
128 layout layout
130 focus uiFocusState
132 focus uiFocusState
131 state uiState
133 state uiState
@@ -296,8 +298,12 @@ func New(com *common.Common) *UI {
296 // set initial state
298 // set initial state
297 ui.setState(desiredState, desiredFocus)
299 ui.setState(desiredState, desiredFocus)
301+ opts := com.Config().Options
299 // disable indeterminate progress bar
303 // disable indeterminate progress bar
300− ui.progressBarEnabled = com.Config().Options.Progress == nil || *com.Config().Options.Progress
304+ ui.progressBarEnabled = opts.Progress == nil || *opts.Progress
305+ // enable transparent mode
306+ ui.isTransparent = opts.TUI.Transparent != nil && *opts.TUI.Transparent
302 return ui
308 return ui
@@ -1884,7 +1890,9 @@ func (m *UI) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
1884func (m *UI) View() tea.View {
1890func (m *UI) View() tea.View {
1885 var v tea.View
1891 var v tea.View
1886 v.AltScreen = true
1892 v.AltScreen = true
1893+ if !m.isTransparent {
1887− v.BackgroundColor = m.com.Styles.Background
1894+ v.BackgroundColor = m.com.Styles.Background
1888 v.MouseMode = tea.MouseModeCellMotion
1896 v.MouseMode = tea.MouseModeCellMotion
1889 v.WindowTitle = "crush " + home.Short(m.com.Config().WorkingDir())
1897 v.WindowTitle = "crush " + home.Short(m.com.Config().WorkingDir())