Skip to content

Commit 4a8a473

Browse files
committed
chore: fix styling
1 parent ca99b44 commit 4a8a473

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

models/weaveinit/run_l1_node.go

+9-5
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ type RunL1NodeChainIdInput struct {
138138
}
139139

140140
func NewRunL1NodeChainIdInput(state *RunL1NodeState) *RunL1NodeChainIdInput {
141-
return &RunL1NodeChainIdInput{
141+
model := &RunL1NodeChainIdInput{
142142
TextInput: utils.NewTextInput(),
143143
state: state,
144144
question: "Please specify the chain id",
145145
}
146+
model.WithPlaceholder("Enter in alphanumeric format")
147+
return model
146148
}
147149

148150
func (m *RunL1NodeChainIdInput) GetQuestion() string {
@@ -175,11 +177,13 @@ type RunL1NodeMonikerInput struct {
175177
}
176178

177179
func NewRunL1NodeMonikerInput(state *RunL1NodeState) *RunL1NodeMonikerInput {
178-
return &RunL1NodeMonikerInput{
180+
model := &RunL1NodeMonikerInput{
179181
TextInput: utils.NewTextInput(),
180182
state: state,
181183
question: "Please specify the moniker",
182184
}
185+
model.WithPlaceholder("Enter moniker")
186+
return model
183187
}
184188

185189
func (m *RunL1NodeMonikerInput) GetQuestion() string {
@@ -336,7 +340,7 @@ func NewMinGasPriceInput(state *RunL1NodeState) *MinGasPriceInput {
336340
state: state,
337341
question: "Please specify min-gas-price",
338342
}
339-
model.WithPlaceholder("add a number with denom")
343+
model.WithPlaceholder("Enter a number with its denom")
340344
model.WithValidatorFn(utils.ValidateDecCoin)
341345
return model
342346
}
@@ -439,7 +443,7 @@ func NewSeedsInput(state *RunL1NodeState) *SeedsInput {
439443
state: state,
440444
question: "Please specify the seeds",
441445
}
442-
model.WithPlaceholder("add in the format id@ip:port, you can add multiple seeds by adding comma (,)")
446+
model.WithPlaceholder("Enter in the format `id@ip:port`. You can add multiple seeds by separating them with a comma (,)")
443447
model.WithValidatorFn(utils.IsValidPeerOrSeed)
444448
return model
445449
}
@@ -479,7 +483,7 @@ func NewPersistentPeersInput(state *RunL1NodeState) *PersistentPeersInput {
479483
state: state,
480484
question: "Please specify the persistent_peers",
481485
}
482-
model.WithPlaceholder("add in the format id@ip:port, you can add multiple seeds by adding comma (,)")
486+
model.WithPlaceholder("Enter in the format `id@ip:port`. You can add multiple seeds by separating them with a comma (,)")
483487
model.WithValidatorFn(utils.IsValidPeerOrSeed)
484488
return model
485489
}

styles/color.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type HexColor string
44

55
const (
66
White HexColor = "#F5F5F5"
7-
Ivory HexColor = "#B0B6BB"
7+
Ivory HexColor = "#CBCBCB"
88
Cyan HexColor = "#27D8FF"
99
DarkCyan HexColor = "#178299"
1010
Green HexColor = "#B0EE5F"

utils/checkbox.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (s *CheckBox[T]) View() string {
6565
}
6666
b.WriteString(fmt.Sprintf("%s %s %v\n", cursor, selectedMark, option))
6767
}
68-
b.WriteString(styles.Text("\nUse arrow-keys. Space to select. Return to submit, or q to quit.\n", styles.Gray))
68+
b.WriteString(styles.Text("\nUse arrow-keys. Space to select. Return to submit, or q to quit.\n", styles.White))
6969
return b.String()
7070
}
7171

utils/text_input.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ func (ti TextInput) ViewErr(err error) string {
102102
return "\n" + styles.Text("> ", styles.Cyan) + styles.Text(ti.Placeholder, styles.Gray) + styles.Cursor(" ") + "\n\n" + styles.RenderError(err) + bottomText
103103
} else if ti.Cursor < len(ti.Text) {
104104
// Cursor is within the text
105-
beforeCursor = styles.Text(ti.Text[:ti.Cursor], styles.Ivory)
105+
beforeCursor = styles.Text(ti.Text[:ti.Cursor], styles.White)
106106
cursorChar = styles.Cursor(ti.Text[ti.Cursor : ti.Cursor+1])
107-
afterCursor = styles.Text(ti.Text[ti.Cursor+1:], styles.Ivory)
107+
afterCursor = styles.Text(ti.Text[ti.Cursor+1:], styles.White)
108108
} else {
109109
// Cursor is at the end of the text
110-
beforeCursor = styles.Text(ti.Text, styles.Ivory)
110+
beforeCursor = styles.Text(ti.Text, styles.White)
111111
cursorChar = styles.Cursor(" ")
112112
}
113113

0 commit comments

Comments
 (0)