mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Nicer close button, solves #321.
This commit is contained in:
@@ -68,12 +68,12 @@ MenuCloseButton = InputContainer:new{
|
||||
|
||||
function MenuCloseButton:init()
|
||||
self[1] = TextWidget:new{
|
||||
text = " X ",
|
||||
face = Font:getFace("cfont", 42),
|
||||
text = "×",
|
||||
face = Font:getFace("cfont", 32),
|
||||
}
|
||||
|
||||
local text_size = self[1]:getSize()
|
||||
self.dimen.w, self.dimen.h = text_size.w, text_size.h
|
||||
self.dimen.w, self.dimen.h = text_size.w*2, text_size.h*2
|
||||
|
||||
self.ges_events.Close = {
|
||||
GestureRange:new{
|
||||
|
||||
Reference in New Issue
Block a user