Skip to content

Commit

Permalink
move initial Face config from reline.rb to face.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Oct 14, 2023
1 parent e8eb85b commit 6e45734
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -602,16 +602,4 @@ def self.update_iogate
io
end

Reline::Face.config(:default) do |face|
face.define :default, style: :default
face.define :enhanced, style: :default
face.define :scrollbar, style: :default
end

Reline::Face.config(:completion_dialog) do |face|
face.define :default, foreground: :white, background: :cyan
face.define :enhanced, foreground: :white, background: :magenta
face.define :scrollbar, foreground: :white, background: :cyan
end

Reline::HISTORY = Reline::History.new(Reline.core.config)
12 changes: 12 additions & 0 deletions lib/reline/face.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,15 @@ def self.config(name, &block)

end

Reline::Face.config(:default) do |face|
face.define :default, style: :default
face.define :enhanced, style: :default
face.define :scrollbar, style: :default
end

Reline::Face.config(:completion_dialog) do |face|
face.define :default, foreground: :white, background: :cyan
face.define :enhanced, foreground: :white, background: :magenta
face.define :scrollbar, foreground: :white, background: :cyan
end

0 comments on commit 6e45734

Please sign in to comment.