Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2023, 03:45 AM   #16
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 746
Karma: 619508
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Use your own Apps Icons (untested):

From: https://4pda.to/forum/index.php?show...ost&p=76488379

Draw 2 icons, in bmp format, 256 gradations of gray, uncompressed.
desktop_app_applicationname.bmp is unpressed
desktop_app_applicationname_f.bmp - pressed

Put in the "system/resources/Line" folder.

Last edited by nhedgehog; 08-09-2023 at 04:54 AM.
nhedgehog is offline   Reply With Quote
Old 08-09-2023, 09:58 AM   #17
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 169
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
Cool. For me these worked, in "/mnt/ext1/system/resources/Line/" (no need to remount rw "/system"). 256x256 would have been two big, 106x128 (non square) is fine. As it appears that the icons are top aligned, probably somewhat smaller, like 96x96 would have been the best match with the stock round icons.
Attached Files
File Type: zip desktop_app_koreader.zip (6.6 KB, 81 views)
EastEriq is offline   Reply With Quote
Advert
Old 08-09-2023, 12:12 PM   #18
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,191
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
The icons didn't work on my HD3 (PB632). I also tried resizing them to 96x96, 32x32 and 16x16 but no dice.

A BMP image for the sleep screen (taskmgr_lock_background.bmp) placed in "/mnt/ext1/system/resources/Line/" works correctly however.
neil_swann80 is offline   Reply With Quote
Old 08-09-2023, 12:20 PM   #19
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Seems as though image sizes must be specific for device. @EastEriq, what device do you have. Maybe I can create a running list of devices and icon sizes
jrw174 is offline   Reply With Quote
Old 08-09-2023, 12:48 PM   #20
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
I tried the icons from @EastEriq at 96x96 and 106x128 on my Era but neither seemed to update the image for KoReader.
jrw174 is offline   Reply With Quote
Advert
Old 08-09-2023, 01:07 PM   #21
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,191
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Ah... they do work, but seemingly only for the default built-in system apps, not "user's apps".

I tested it with "desktop_app_gallery.bmp" and it shows, but not with koreader.

To blend in with the existing icons on my HD3 an image size of 96x96 is best, ensures the text labels underneath line up. I'd create a white 96x96 background, then centre a 64x64 icon within it to match the icon spacing.

Last edited by neil_swann80; 08-09-2023 at 01:52 PM.
neil_swann80 is offline   Reply With Quote
Old 08-09-2023, 02:35 PM   #22
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 169
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
I'm on firmware 5.20, presumably this may still be less modder-unfriendly than 6.X.
As for icon height, even 96 is actually still a bit too high on my device, judging from the alignment of the caption. Maybe 88 would match that of the stock icons, but whatever (one could decompile the theme to check...). As for horizontal alignment, it seems that icons are simply centered, so width might be larger. Trial and error.
Besides, I doubt if related, I recall that /mnt/ext1/system/language/XX.txt contains the localized names of the captions of the icons. There the format is
@Koreader=KOReader
where the initial after @ is uppercased, whereas in the icon name not (I used the spelling as it appears in /mnt/ext1/appilcations/*.app).
I attach another set of icons which WFM, without investing too much in aesthetics.
ETA: icons worked for me only after a device reboot, of course
ETA2: but the icons I have attached here are all 128pix high - I must be mixing up.
Attached Files
File Type: zip desktop_app_pb-mahjong.zip (9.3 KB, 44 views)

Last edited by EastEriq; 08-09-2023 at 03:40 PM.
EastEriq is offline   Reply With Quote
Old 08-09-2023, 04:34 PM   #23
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Hmm, FW 6.8 must be different. I don't see that @Koreader=KOReader text file you mentioned.

Something to keep looking into
jrw174 is offline   Reply With Quote
Old 08-09-2023, 04:48 PM   #24
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 169
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
To my understanding, you can create that file (normally absent, XX is the code of your localization language) if you want customized names under your icons different than the default. The first line of the file has to be the full name of the language, then one app name per line. I forgot where on the fora I found this.
Look in /ebrmain/language for the real thing, the full set of localizations. Which means, probably the file in /mnt/ext1/system/language can override any string, not just the app icon labels.
EastEriq is offline   Reply With Quote
Old 08-10-2023, 12:02 AM   #25
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,191
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
The alias file is located in: /ebrmain/cramfs/language
On my HD3 (FW 6.*)

I copied /ebrmain/cramfs/language/en.txt to /mnt/ext1/system/language/en.txt
then added:
@koreader=KOReader

Make sure you add the line BEFORE the section for: [vivlio]

I can confirm it changes the app text label correctly. This is very useful, thanks!

Unfortunately, however I rename koreader (tried all lowercase, just K capitalized etc) I still cannot get the new icon to show.

It feels as if we're very close though. I wonder what we're missing?

Last edited by neil_swann80; 08-10-2023 at 05:41 AM.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 04:21 AM   #26
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,191
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
It looks like you can hide apps and create/move between sections within the apps menu page without root just by editing:

mnt/ext1/system/config/desktop/view.json

If you mess up, or want to reset you can delete this file and a default one is recreated at reboot.

The info in the file seems relevant also, especially the part:

Code:
 "Fields - application key id, must start from \"U_\" for user application\n",
            "Support application subfields:\n",
            "> \"path\" - path to application (Required for user apps. Support apps only from userspace)\n",
...
"Examples:\n",
            "1) \"U_MyApp\": {\n",
            "     \"path\": \"applications/my_app.app\", \n",
            "     \"param\": [\"-a\", \"25\"],\n",
            "     \"title\": \"My application\",\n",
            "     \"icon\": { \"path\": \"applications/icons/my_app_icon.bmp\" },\n",
            "     \"focused_icon\": \"desktop_app_calc_f.bmp\"\n",
            "   }\n",
I'll try and have a more in-depth look after work later.

Last edited by neil_swann80; 08-10-2023 at 07:22 AM.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 07:50 AM   #27
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
I tried adding to the view.json file in ebrmain late last night but I got an error along the lines of U_Koreader can't be found. It wad late so I could have messed up the Json syntax. I'll give it another go today
jrw174 is offline   Reply With Quote
Old 08-10-2023, 07:56 AM   #28
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 169
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
Quote:
Originally Posted by neil_swann80 View Post
I copied /ebrmain/cramfs/language/en.txt to /mnt/ext1/system/language/en.txt
then added:
@koreader=KOReader
In my case I have in that file only the additional strings I want to localize, i.e. the labels of the added applications. I don't think you have to duplicate the whole file.
Code:
Italian
@Pb-mahjong=Solitario Mahjong
@Pbterm=Terminale
@Pi=Editor PI
@Koreader=KOReader
@Utelnetd_start=Telnet (attiva)
@Utelnetd_stop=Telnet (ferma)
@Jailbreak=~Jailbreak
@Uninstall=~Uninstall Jailbreak
@Services=~Install Services

( ~ is to have the latter entries at the bottom of the alphabetic list)
EastEriq is offline   Reply With Quote
Old 08-10-2023, 09:31 AM   #29
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Can confirm EastEriq's worked for me. In /mnt/ext1/system/language/en.txt I have this:

English
@koreader=KOReader
@pbterm=PB Term
@Jailbreak=Jail Break
@PbDbFixer= Database Fix

Still trying with the custom images .

If and when this is solved (thanks for all the replies and help everyone) I will create a git hub project to document all of this
jrw174 is offline   Reply With Quote
Old 08-10-2023, 09:44 AM   #30
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,191
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
I'm still trying with custom images for the user apps... but so far no dice!

The "User's" section in the apps menu screen isn't mentioned in view.json, so I figure there must be another file/process that generates this section.

Looking in the original en.txt file I can see the entry:
@Users=User's

Changing the alias for @Users does change it on the apps menu screen... so I've started a string search for "@Users" on my device to see where it's referenced. I'll let you know if I discover anything.

Last edited by neil_swann80; 08-10-2023 at 09:48 AM.
neil_swann80 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove question mark icons KayLee Calibre 2 03-05-2016 11:38 AM
desktop icons disappeared after reboot futureway enTourage eDGe 5 11-30-2011 07:27 AM
Totally stupid question: where's my app drawer? maxbookworm Nook Developer's Corner 6 01-26-2011 10:13 PM
DR800 Icons for desktop files Iñigo iRex Developer's Corner 3 05-16-2010 06:26 PM
no desktop icons on boot-up Unregistered Lounge 11 08-16-2005 12:47 PM


All times are GMT -4. The time now is 11:15 AM.


MobileRead.com is a privately owned, operated and funded community.