mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add some breathing room to the FM icons.
In the form of a spacer icon between the first/last icon and the next/prev one. Should help with fatfingeritis.
This commit is contained in:
@@ -376,11 +376,18 @@ function Menu:init()
|
||||
callback = function() self:onLastPage() end,
|
||||
bordersize = 0,
|
||||
show_parent = self,
|
||||
}
|
||||
self.page_info_spacer = Button:new{
|
||||
icon = "resources/icons/appbar.spacer.png",
|
||||
callback = function() end, -- NoOp
|
||||
bordersize = 0,
|
||||
show_parent = self,
|
||||
}
|
||||
self.page_info_left_chev:hide()
|
||||
self.page_info_right_chev:hide()
|
||||
self.page_info_first_chev:hide()
|
||||
self.page_info_last_chev:hide()
|
||||
self.page_info_spacer:hide()
|
||||
|
||||
self.page_info_text = TextWidget:new{
|
||||
text = "",
|
||||
@@ -388,9 +395,11 @@ function Menu:init()
|
||||
}
|
||||
self.page_info = HorizontalGroup:new{
|
||||
self.page_info_first_chev,
|
||||
self.page_info_spacer,
|
||||
self.page_info_left_chev,
|
||||
self.page_info_text,
|
||||
self.page_info_right_chev,
|
||||
self.page_info_spacer,
|
||||
self.page_info_last_chev,
|
||||
}
|
||||
|
||||
@@ -556,6 +565,7 @@ function Menu:updateItems(select_number)
|
||||
self.page_info_right_chev:showHide(self.page_num > 1)
|
||||
self.page_info_first_chev:showHide(self.page_num > 2)
|
||||
self.page_info_last_chev:showHide(self.page_num > 2)
|
||||
self.page_info_spacer:show()
|
||||
|
||||
self.page_info_left_chev:enableDisable(self.page > 1)
|
||||
self.page_info_right_chev:enableDisable(self.page < self.page_num)
|
||||
|
||||
BIN
resources/icons/appbar.spacer.png
Normal file
BIN
resources/icons/appbar.spacer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 171 B |
Reference in New Issue
Block a user