baker icon indicating copy to clipboard operation
baker copied to clipboard

Loading text

Open mimetic opened this issue 15 years ago • 18 comments

Currently, a loading chapter displays a number. It's the number of that file in the list of files. However, if I have a forward or a table of contents, then the loader shows "3" when I'm loading chapter 1.

I've modified my class to show "Loading...", but it would be niftier if the text to be shown came from the HTML file, no? I think this was working before.

mimetic avatar Jun 08 '11 00:06 mimetic

It's one of the modifications made in Laker, that we are considering adding... Thanks for opening the ticket so we can track it. :)

folletto avatar Jun 08 '11 00:06 folletto

Is there a way on the laker framework to change the color of the loading background from black to white?... regards J

jonniejoejonson avatar Jun 08 '11 14:06 jonniejoejonson

On Baker, yes, open the file RootViewController (https://github.com/Simbul/baker/blob/master/Classes/RootViewController.m) and you'll see a few configuration constants at the top of the file, two of them control the background: SCROLLVIEW_BGCOLOR and PAGE_NUMBERS_COLOR. :)

folletto avatar Jun 08 '11 14:06 folletto

Thanks Folletto, i will take a look at that. I'm actually trying to get the laker one to go from black to white, so there would be no need to change your one... im assuming that there is no way to get rid of the loading pages altogether?... kind regards J

jonniejoejonson avatar Jun 08 '11 17:06 jonniejoejonson

It's the same thing on the two, since Laker is still Baker at the core.

You can try downloading the master branch from GitHub, we are working trying to optimize page loading. It's hard, but we have something. ;) See Issue #27 for more infos.

folletto avatar Jun 08 '11 18:06 folletto

Thanks Folletto, i wish i understood the coding involved to help this project, but sadly im a web developer and new to xcode... thanks for your help... it would be really cool to preload all the pages and remove the need for the loading page.. so that you can see one page slide out as the new page slides in... I will take a look at the master branch... thanks for your help... regards J

jonniejoejonson avatar Jun 09 '11 16:06 jonniejoejonson

It isn't easy, but that's exactly what we are working on. :)

folletto avatar Jun 09 '11 16:06 folletto

Im sure it is difficult, my brain hurts just trying to understand the first thing to do with xcode... You have a really nice product already, but i think this improvement would be the icing on the cake... i wish you the best of luck.... kind regards J

jonniejoejonson avatar Jun 09 '11 16:06 jonniejoejonson

hi, I will love to have a loading image for each chapter, even if it has to be hard coded :)

usaps avatar Jun 10 '11 08:06 usaps

...well, er... you have to code it yourself. ;)

folletto avatar Jun 10 '11 08:06 folletto

yeah I know ;)

usaps avatar Jun 10 '11 08:06 usaps

Haha, the "coding it yourself" that the bit that always trips me up!

laswell avatar Jun 11 '11 02:06 laswell

I've just added the page titles in the loading screens, just below the page numbers, as in Laker Compendium by @ffranke. Some feedbacks before closing this up are appreciated as usual :)

Xm4s avatar Jun 16 '11 21:06 Xm4s

Ok I'll check asap. ;)

folletto avatar Jun 16 '11 21:06 folletto

Implemented in 352093f0056090f3be8d6cfe69ebfa4b13e2ed24.

Simbul avatar Jun 20 '11 22:06 Simbul

Worth considering: on the actual beta of iOS5 the spinner doesn't show up on back background, they changed the grey sprite. We'll check again before the final iOS5 release.

folletto avatar Jun 20 '11 23:06 folletto

I just wanted to say that I can't find the constant SCROLLVIEW_BGCOLOR or PAGE_NUMBERS_COLOR in the link that was in this thread. Am I missing something? The page numbers don't match up with the pages I'm loading, so I want to change the page number color to hide them.

https://github.com/Simbul/baker/blob/master/Classes/RootViewController.m

Can someone tell me the line number in that file to change? Thanks in advance.

lostinjapan avatar Nov 14 '11 04:11 lostinjapan

nevermind! I found it! It's a constant now. My bad :)

"-baker-page-numbers-color": "#FFFFFF",

lostinjapan avatar Nov 14 '11 05:11 lostinjapan