Move class Widgets::Message to Widgets::Chat::NewMessage
This commit is contained in:
parent
cc56a5eb2a
commit
61fa1d89ec
3 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,7 @@ require 'widgets/search'
|
||||||
require 'widgets/list'
|
require 'widgets/list'
|
||||||
|
|
||||||
require 'widgets/chat'
|
require 'widgets/chat'
|
||||||
require 'widgets/message'
|
require 'widgets/chat/new_message'
|
||||||
|
|
||||||
class Main
|
class Main
|
||||||
def self.inherited(_base)
|
def self.inherited(_base)
|
||||||
|
|
|
@ -13,7 +13,7 @@ module Widgets
|
||||||
@width = width
|
@width = width
|
||||||
@height = height
|
@height = height
|
||||||
|
|
||||||
@message = Widgets::Message.new x, y + height - 1, width, 1
|
@message = NewMessage.new x, y + height - 1, width, 1
|
||||||
|
|
||||||
@focused = false
|
@focused = false
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Widgets
|
module Widgets
|
||||||
class Message < Text
|
class Chat
|
||||||
|
class NewMessage < Text
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
Reference in a new issue