mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Resolve review comments
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
local FileManagerHistory = require("apps/filemanager/filemanagerhistory")
|
||||
local InputContainer = require("ui/widget/container/inputcontainer")
|
||||
local FrameContainer = require("ui/widget/container/framecontainer")
|
||||
local CenterContainer = require("ui/widget/container/centercontainer")
|
||||
local FileManagerMenu = require("apps/filemanager/filemanagermenu")
|
||||
local DocumentRegistry = require("document/documentregistry")
|
||||
local VerticalGroup = require("ui/widget/verticalgroup")
|
||||
@@ -58,14 +59,19 @@ local FileManager = InputContainer:extend{
|
||||
function FileManager:init()
|
||||
self.show_parent = self.show_parent or self
|
||||
|
||||
self.path_text = TextWidget:new{
|
||||
face = Font:getFace("infofont", 18),
|
||||
text = self.root_path,
|
||||
}
|
||||
|
||||
self.banner = VerticalGroup:new{
|
||||
TextWidget:new{
|
||||
face = Font:getFace("tfont", 24),
|
||||
text = self.title,
|
||||
},
|
||||
TextWidget:new{
|
||||
face = Font:getFace("infofont", 18),
|
||||
text = self.root_path,
|
||||
CenterContainer:new{
|
||||
dimen = { w = Screen:getWidth(), h = nil },
|
||||
self.path_text,
|
||||
},
|
||||
VerticalSpan:new{ width = Screen:scaleBySize(10) }
|
||||
}
|
||||
@@ -93,7 +99,7 @@ function FileManager:init()
|
||||
self.file_chooser = file_chooser
|
||||
|
||||
function file_chooser:onPathChanged(path) -- luacheck: ignore
|
||||
FileManager.instance.banner[2].text = path
|
||||
FileManager.instance.path_text:setText(path)
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user