mirror of
https://gitea.com/gitea/tea.git
synced 2026-03-11 00:03:32 +01:00
Reviewed-on: https://gitea.com/gitea/tea/pulls/923 Reviewed-by: techknowlogick <9+techknowlogick@noreply.gitea.com> Co-authored-by: Michal Suchanek <msuchanek@suse.de> Co-committed-by: Michal Suchanek <msuchanek@suse.de>
26 lines
577 B
Go
26 lines
577 B
Go
// Copyright 2025 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package theme
|
|
|
|
import (
|
|
"charm.land/huh/v2"
|
|
"charm.land/lipgloss/v2"
|
|
"charm.land/lipgloss/v2/compat"
|
|
)
|
|
|
|
type myTheme struct {}
|
|
|
|
func (t myTheme) Theme (isDark bool) *huh.Styles {
|
|
theme := huh.ThemeCharm(isDark)
|
|
|
|
title := compat.AdaptiveColor{Light: lipgloss.Color("#02BA84"), Dark: lipgloss.Color("#02BF87")}
|
|
theme.Focused.Title = theme.Focused.Title.Foreground(title).Bold(true)
|
|
theme.Blurred = theme.Focused
|
|
return theme
|
|
}
|
|
func GetTheme() myTheme {
|
|
var t myTheme
|
|
return t
|
|
}
|