File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func New() Model {
7171 var t textinput.Model
7272 for i := range m .inputs {
7373 t = textinput .New ()
74- t .Cursor .Style = focusedStyle . Copy ()
74+ t .Cursor .Style = focusedStyle
7575 t .CharLimit = 32
7676
7777 switch i {
Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ import (
2424var (
2525 commonStyle = lipgloss .NewStyle ().Foreground (lipgloss.AdaptiveColor {Light : "#FFFFFF" , Dark : "#000000" })
2626
27- titleStyle = commonStyle .Copy ().
27+ titleStyle = commonStyle .
2828 Background (lipgloss.AdaptiveColor {Light : "#134074" , Dark : "#FFADAD" }).
2929 Padding (0 , 1 )
3030
31- hostStyle = commonStyle .Copy ().
31+ hostStyle = commonStyle .
3232 Background (lipgloss.AdaptiveColor {Light : "#13315C" , Dark : "#FFD6A5" }).
3333 Padding (0 , 1 )
3434
35- infoStyle = commonStyle .Copy ().
35+ infoStyle = commonStyle .
3636 Background (lipgloss.AdaptiveColor {Light : "#212529" , Dark : "#CAFFBF" }).
3737 AlignHorizontal (lipgloss .Right )
3838
39- errorStyle = commonStyle .Copy ().
39+ errorStyle = commonStyle .
4040 Background (lipgloss.AdaptiveColor {Light : "#5A2A27" , Dark : "#D4A373" }).
4141 AlignHorizontal (lipgloss .Right )
4242)
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ func NewTimeRangeModel() list.Model {
9090 list .SetShowHelp (false )
9191 list .SetShowFilter (false )
9292 list .SetShowTitle (true )
93- list .Styles .TitleBar = baseStyle . Copy ()
94- list .Styles .Title = baseStyle .Copy (). MarginBottom (1 )
93+ list .Styles .TitleBar = baseStyle
94+ list .Styles .Title = baseStyle .MarginBottom (1 )
9595 list .Styles .TitleBar .Align (lipgloss .Left )
9696 list .Title = "Select Time Range"
9797 list .SetShowStatusBar (false )
You can’t perform that action at this time.
0 commit comments