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:
hius07
2023-12-19 09:22:53 +02:00
committed by GitHub
parent 9d94ab38f3
commit 5a4e70a19d
4 changed files with 68 additions and 39 deletions

View File

@@ -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