mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15: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>
		
			
				
	
	
		
			24 lines
		
	
	
		
			536 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			536 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2025 The Gitea Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package theme
 | |
| 
 | |
| import (
 | |
| 	"github.com/charmbracelet/huh"
 | |
| 	"github.com/charmbracelet/lipgloss"
 | |
| )
 | |
| 
 | |
| var giteaTheme = func() *huh.Theme {
 | |
| 	theme := huh.ThemeCharm()
 | |
| 
 | |
| 	title := lipgloss.AdaptiveColor{Light: "#02BA84", Dark: "#02BF87"}
 | |
| 	theme.Focused.Title = theme.Focused.Title.Foreground(title).Bold(true)
 | |
| 	theme.Blurred = theme.Focused
 | |
| 	return theme
 | |
| }()
 | |
| 
 | |
| // GetTheme returns the Gitea theme for Huh
 | |
| func GetTheme() *huh.Theme {
 | |
| 	return giteaTheme
 | |
| }
 |