浏览代码

Remove *Foreground configuration

rigormorrtiss 4 年之前
父节点
当前提交
946e164564
共有 5 个文件被更改,包括 0 次插入11 次删除
  1. 0 1
      discordo.go
  2. 0 2
      ui/dropdowns.go
  3. 0 1
      ui/inputfields.go
  4. 0 1
      ui/textviews.go
  5. 0 6
      util/config.go

+ 0 - 1
discordo.go

@@ -179,7 +179,6 @@ func onGuildsDropDownSelected(_ string, i int) {
 			SetReference(channel)
 		switch channel.Type {
 		case discord.GuildCategory:
-			channelNode.SetColor(tcell.GetColor(config.Theme.TreeNodeForeground))
 			channelsTreeNode.AddChild(channelNode)
 		case discord.GuildText, discord.GuildNews:
 			if channel.CategoryID == 0 || channel.CategoryID == discord.NullChannelID {

+ 0 - 2
ui/dropdowns.go

@@ -12,9 +12,7 @@ func NewGuildsDropDown(onGuildsDropDownSelected func(text string, index int), th
 	guildsDropDown.
 		SetLabel("Guild: ").
 		SetSelectedFunc(onGuildsDropDownSelected).
-		SetLabelColor(tcell.GetColor(theme.DropDownForeground)).
 		SetFieldBackgroundColor(tcell.GetColor(theme.DropDownBackground)).
-		SetFieldTextColor(tcell.GetColor(theme.DropDownForeground)).
 		SetBackgroundColor(tcell.GetColor(theme.DropDownBackground)).
 		SetBorder(true).
 		SetBorderPadding(0, 0, 1, 1)

+ 0 - 1
ui/inputfields.go

@@ -15,7 +15,6 @@ func NewMessageInputField(onMessageInputFieldDone func(key tcell.Key), theme *ut
 		SetFieldWidth(0).
 		SetDoneFunc(onMessageInputFieldDone).
 		SetFieldBackgroundColor(tcell.GetColor(theme.InputFieldBackground)).
-		SetPlaceholderTextColor(tcell.GetColor(theme.InputFieldPlaceholderForeground)).
 		SetBackgroundColor(tcell.GetColor(theme.InputFieldBackground)).
 		SetBorder(true).
 		SetBorderPadding(0, 0, 1, 1).

+ 0 - 1
ui/textviews.go

@@ -14,7 +14,6 @@ func NewMessagesTextView(onMessagesTextViewChanged func(), theme *util.Theme) *t
 		SetWordWrap(true).
 		ScrollToEnd().
 		SetChangedFunc(onMessagesTextViewChanged).
-		SetTextColor(tcell.GetColor(theme.TextViewForeground)).
 		SetBackgroundColor(tcell.GetColor(theme.TextViewBackground)).
 		SetBorder(true).
 		SetBorderPadding(0, 0, 1, 1)

+ 0 - 6
util/config.go

@@ -10,12 +10,6 @@ type Theme struct {
 	TreeViewBackground   string `json:"treeview.background"`
 	TextViewBackground   string `json:"textview.background"`
 	InputFieldBackground string `json:"inputField.background"`
-
-	DropDownForeground              string `json:"dropdown.foreground"`
-	TextViewForeground              string `json:"textview.foreground"`
-	TreeNodeForeground              string `json:"treenode.foreground"`
-	InputFieldForeground            string `json:"inputField.foreground"`
-	InputFieldPlaceholderForeground string `json:"inputField.placeholderTextForeground"`
 }
 
 type Config struct {