mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
History, Collection: title bar in FM style (#11243)
These changes make the title bar in File manager, History and Collection windows of the same height. The items and book covers thumbnail dimensions in Mosaic and Detailed list display modes are now equal, and up/down scaling of the thumbnails is not needed when switching between File manager, History and Collection.
This commit is contained in:
@@ -434,21 +434,22 @@ function TitleBar:setTitle(title, no_refresh)
|
||||
self.inner_title_group:resetLayout()
|
||||
end
|
||||
self.title_group:resetLayout()
|
||||
if no_refresh then
|
||||
return
|
||||
if not no_refresh then
|
||||
UIManager:setDirty(self.show_parent, "ui", self.dimen)
|
||||
end
|
||||
UIManager:setDirty(self.show_parent, "ui", self.dimen)
|
||||
end
|
||||
end
|
||||
|
||||
function TitleBar:setSubTitle(subtitle)
|
||||
function TitleBar:setSubTitle(subtitle, no_refresh)
|
||||
if self.subtitle_widget and not self.subtitle_multilines then -- no TextBoxWidget:setText() available
|
||||
self.subtitle_widget:setText(subtitle)
|
||||
if self.inner_subtitle_group then
|
||||
self.inner_subtitle_group:resetLayout()
|
||||
end
|
||||
self.title_group:resetLayout()
|
||||
UIManager:setDirty(self.show_parent, "ui", self.dimen)
|
||||
if not no_refresh then
|
||||
UIManager:setDirty(self.show_parent, "ui", self.dimen)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user