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.
pull/764/head
NiLuJe 10 years ago
parent 3b5076a112
commit bd32e1f10a

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Loading…
Cancel
Save