mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	 4c00b8b571
			
		
	
	4c00b8b571
	
	
	
		
			
			Fix #772 Reviewed-on: https://gitea.com/gitea/tea/pulls/786 Reviewed-by: Bo-Yi Wu (吳柏毅) <appleboy.tw@gmail.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			493 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			493 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2025 The Gitea Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package interact
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 
 | |
| 	"code.gitea.io/tea/modules/theme"
 | |
| 
 | |
| 	"github.com/charmbracelet/lipgloss"
 | |
| )
 | |
| 
 | |
| // printTitleAndContent prints a title and content with the gitea theme
 | |
| func printTitleAndContent(title, content string) {
 | |
| 	style := lipgloss.NewStyle().
 | |
| 		Foreground(theme.GetTheme().Blurred.Title.GetForeground()).Bold(true).
 | |
| 		Padding(0, 1)
 | |
| 	fmt.Print(style.Render(title), content+"\n")
 | |
| }
 |