From 5c0df7fca301e0e05ec76539919935cb2c747fb3 Mon Sep 17 00:00:00 2001 From: Shinovon Date: Wed, 24 May 2023 23:41:41 +0500 Subject: [PATCH] About screen changes --- src/mahomaps/screens/AboutScreen.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/mahomaps/screens/AboutScreen.java b/src/mahomaps/screens/AboutScreen.java index 79c8a8ed..89d27ae9 100644 --- a/src/mahomaps/screens/AboutScreen.java +++ b/src/mahomaps/screens/AboutScreen.java @@ -28,13 +28,14 @@ public AboutScreen() { setCommandListener(this); addCommand(back); try { - ImageItem i = new ImageItem(null, Image.createImage("/icon.png"), - Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_LEFT, "logo"); + ImageItem i = new ImageItem(null, MahoMapsApp.GetCanvas().getWidth() > 300 ? Image.createImage("/splash.png") : Image.createImage("/icon.png"), + Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_CENTER, "logo"); append(i); } catch (IOException e) { } - StringItem s; - append(s = new StringItem("MahoMaps", "J2ME клиент растровых Яндекс.Карт.\nВерсия 1." + MahoMapsApp.version)); + StringItem s = new StringItem("MahoMaps", "J2ME клиент растровых Яндекс.Карт.\nВерсия 1." + MahoMapsApp.version); + s.setLayout(Item.LAYOUT_LEFT); + append(s); if(MahoMapsApp.platform != null && MahoMapsApp.platform.indexOf("S60") != -1 && MahoMapsApp.platform.indexOf("platform_version=3.2") == -1) { // фокус на начало экрана try { @@ -65,7 +66,15 @@ public AboutScreen() { gh.setDefaultCommand(openLink); gh.setItemCommandListener(this); append(gh); - append(new StringItem("Послесловие", "Powered by butthurt from nnchat\n292 labs (tm)")); + try { + ImageItem i = new ImageItem(null, Image.createImage("/stick.png"), + Item.LAYOUT_NEWLINE_BEFORE | Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_CENTER, "торшер"); + append(i); + } catch (IOException e) { + } + s = new StringItem("Послесловие", "Powered by butthurt from nnchat\n292 labs (tm)"); + s.setLayout(Item.LAYOUT_LEFT); + append(s); append(new StringItem("Реклама", "Гитхаб Анселя:\ngithub.com/Feodor0090\n" + "Канал Анселя:\nt.me/sym_ansel_blog\n" + "Борда rehdzi:\nnnchan.ru\n"