mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
Change icon in About window (#4233)
This commit is contained in:
parent
bd154e0bc3
commit
ad45eb28de
@ -46,6 +46,7 @@ common_info.about = {
|
|||||||
callback = function()
|
callback = function()
|
||||||
UIManager:show(InfoMessage:new{
|
UIManager:show(InfoMessage:new{
|
||||||
text = T(_("KOReader %1\n\nA document viewer for E Ink devices.\n\nLicensed under Affero GPL v3. All dependencies are free software.\n\nhttp://koreader.rocks/"), version),
|
text = T(_("KOReader %1\n\nA document viewer for E Ink devices.\n\nLicensed under Affero GPL v3. All dependencies are free software.\n\nhttp://koreader.rocks/"), version),
|
||||||
|
icon_file = "resources/ko-icon.png"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@ local InfoMessage = InputContainer:new{
|
|||||||
image_height = nil, -- The image height if image is used. Keep it nil to use original height.
|
image_height = nil, -- The image height if image is used. Keep it nil to use original height.
|
||||||
-- Whether the icon should be shown. If it is false, self.image will be ignored.
|
-- Whether the icon should be shown. If it is false, self.image will be ignored.
|
||||||
show_icon = true,
|
show_icon = true,
|
||||||
|
icon_file = nil, -- use this file instead of "resources/info-i.png"
|
||||||
dismiss_callback = function() end,
|
dismiss_callback = function() end,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,8 +94,9 @@ function InfoMessage:init()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
image_widget = ImageWidget:new{
|
image_widget = ImageWidget:new{
|
||||||
file = "resources/info-i.png",
|
file = self.icon_file or "resources/info-i.png",
|
||||||
scale_for_dpi = true,
|
scale_for_dpi = true,
|
||||||
|
alpha = true,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
BIN
resources/ko-icon.png
Executable file
BIN
resources/ko-icon.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in New Issue
Block a user