mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-12-04 01:28:45 +00:00
refactor: Clean up colors.go formatting and remove unused style variables
- Remove unused color variables: blackColor, greenColor, blueColor, purpleColor, cyanColor - Remove unused base styles: baseStyle, focusedStyle, blurredStyle, helpStyle - Remove unused text styles: boldStyle, italicStyle, underlineStyle, dimStyle - Remove unused semantic styles: errorStyle, successStyle, warningStyle, infoStyle - Remove unused icon styles: iconStyle, iconSuccessStyle, iconErrorStyle, iconWarningStyle, iconInfoStyle
This commit is contained in:
@@ -14,7 +14,6 @@ var (
|
|||||||
accentColor = lipgloss.Color("#FF6B6B") // Red
|
accentColor = lipgloss.Color("#FF6B6B") // Red
|
||||||
mutedColor = lipgloss.Color("#999999") // Gray
|
mutedColor = lipgloss.Color("#999999") // Gray
|
||||||
whiteColor = lipgloss.Color("#FFFFFF") // White
|
whiteColor = lipgloss.Color("#FFFFFF") // White
|
||||||
blackColor = lipgloss.Color("#000000") // Black
|
|
||||||
|
|
||||||
// Semantic colors
|
// Semantic colors
|
||||||
successColor = lipgloss.Color("#4ECDC4") // Same as primary
|
successColor = lipgloss.Color("#4ECDC4") // Same as primary
|
||||||
@@ -24,26 +23,10 @@ var (
|
|||||||
|
|
||||||
// Additional colors
|
// Additional colors
|
||||||
yellowColor = lipgloss.Color("#FFD93D") // Yellow
|
yellowColor = lipgloss.Color("#FFD93D") // Yellow
|
||||||
greenColor = lipgloss.Color("#6BCF7F") // Green
|
|
||||||
blueColor = lipgloss.Color("#4A90E2") // Blue
|
|
||||||
purpleColor = lipgloss.Color("#9B59B6") // Purple
|
|
||||||
cyanColor = lipgloss.Color("#00BCD4") // Cyan
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Base styles
|
// Base styles
|
||||||
var (
|
var (
|
||||||
baseStyle = lipgloss.NewStyle().
|
|
||||||
BorderStyle(lipgloss.RoundedBorder())
|
|
||||||
|
|
||||||
focusedStyle = baseStyle.
|
|
||||||
BorderForeground(accentColor)
|
|
||||||
|
|
||||||
blurredStyle = baseStyle.
|
|
||||||
BorderForeground(mutedColor)
|
|
||||||
|
|
||||||
helpStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(mutedColor)
|
|
||||||
|
|
||||||
headerStyle = lipgloss.NewStyle().
|
headerStyle = lipgloss.NewStyle().
|
||||||
Bold(true).
|
Bold(true).
|
||||||
Foreground(whiteColor).
|
Foreground(whiteColor).
|
||||||
@@ -119,12 +102,6 @@ var (
|
|||||||
Foreground(errorColor).
|
Foreground(errorColor).
|
||||||
Bold(true)
|
Bold(true)
|
||||||
|
|
||||||
// Text styles
|
|
||||||
boldStyle = lipgloss.NewStyle().Bold(true)
|
|
||||||
italicStyle = lipgloss.NewStyle().Italic(true)
|
|
||||||
underlineStyle = lipgloss.NewStyle().Underline(true)
|
|
||||||
dimStyle = lipgloss.NewStyle().Faint(true)
|
|
||||||
|
|
||||||
// Command styles
|
// Command styles
|
||||||
commandStyle = lipgloss.NewStyle().
|
commandStyle = lipgloss.NewStyle().
|
||||||
Foreground(primaryColor).
|
Foreground(primaryColor).
|
||||||
@@ -170,23 +147,7 @@ var (
|
|||||||
BorderForeground(accentColor).
|
BorderForeground(accentColor).
|
||||||
Padding(1)
|
Padding(1)
|
||||||
|
|
||||||
// Error and success styles
|
// Debug and muted styles
|
||||||
errorStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(errorColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
successStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(successColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
warningStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(warningColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
infoStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(infoColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
debugStyle = lipgloss.NewStyle().
|
debugStyle = lipgloss.NewStyle().
|
||||||
Foreground(mutedColor).
|
Foreground(mutedColor).
|
||||||
Italic(true)
|
Italic(true)
|
||||||
@@ -194,26 +155,6 @@ var (
|
|||||||
mutedStyle = lipgloss.NewStyle().
|
mutedStyle = lipgloss.NewStyle().
|
||||||
Foreground(mutedColor).
|
Foreground(mutedColor).
|
||||||
Faint(true)
|
Faint(true)
|
||||||
|
|
||||||
// Icon styles
|
|
||||||
iconStyle = lipgloss.NewStyle().
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
iconSuccessStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(successColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
iconErrorStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(errorColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
iconWarningStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(warningColor).
|
|
||||||
Bold(true)
|
|
||||||
|
|
||||||
iconInfoStyle = lipgloss.NewStyle().
|
|
||||||
Foreground(infoColor).
|
|
||||||
Bold(true)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Style represents a lipgloss style
|
// Style represents a lipgloss style
|
||||||
|
|||||||
Reference in New Issue
Block a user