GetBaseStyle returns a new style that is used everywhere
()
| 57 | |
| 58 | // GetBaseStyle returns a new style that is used everywhere |
| 59 | func (m *TuiModel) GetBaseStyle() lipgloss.Style { |
| 60 | cw := m.CellWidth() |
| 61 | s := lipgloss.NewStyle(). |
| 62 | Foreground(lipgloss.Color(tuiutil.TextColor())). |
| 63 | Width(cw). |
| 64 | Align(lipgloss.Left) |
| 65 | |
| 66 | if m.UI.BorderToggle && !tuiutil.Ascii { |
| 67 | s = s.BorderLeft(true). |
| 68 | BorderStyle(lipgloss.NormalBorder()). |
| 69 | BorderForeground(lipgloss.Color(tuiutil.BorderColor())) |
| 70 | } |
| 71 | |
| 72 | return s |
| 73 | } |
| 74 | |
| 75 | // GetColumn gets the column the mouse cursor is in |
| 76 | func (m *TuiModel) GetColumn() int { |
no test coverage detected