webOS Nation Forums >  webOS apps and software >  webOS development > More icons/apps per page
More icons/apps per page

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/10/2009, 09:46 PM   #1 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Lightbulb More icons/apps per page

Alright I've been searching for this with no luck. I already rooted my pre and enabled adding pages to the launcher. I currently have seven pages. Most of them have exactly 9 apps. I don't like scrolling down to have to see more, thus the added pages.

My question is, I want to have more than 9 apps fit on a page (without scrolling). Why are we limited to 3x3? Why not 4x4? Or 5x5? The quicklaunch bar is 5 across, why not the launcher? Could anyone develop or research a way to do this?
cwgtex is offline   Reply With Quote
Thanked By: mamouton
Old 08/10/2009, 10:38 PM   #2 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default



I achieved it.. but I personally don't really like how it looks.
dhMassacre is offline   Reply With Quote
Old 08/10/2009, 10:58 PM   #3 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

I love it...how did you get it to look like that?
cwgtex is offline   Reply With Quote
Old 08/10/2009, 11:07 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default

Opened up /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js

Went to the 20th line which originally had:
Code:
kPageMargin: 10,
And changed it to
Code:
kPageMargin: 0,
Then I went down to the 402nd linewhich originally had:
Code:
this.kAppWidth = newAppDiv.getWidth();
And Changed it to
Code:
this.kAppWidth = 75

The bigger that number is (75) the less ammount of apps you'll fit on the page....
I'm gonna work on changing the icon's on the launcher's sizes so it looks nicer..
dhMassacre is offline   Reply With Quote
Old 08/10/2009, 11:47 PM   #5 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

Just made the changes with vi, and taking it out of dev mode to restart. Here we go...
cwgtex is offline   Reply With Quote
Old 08/10/2009, 11:51 PM   #6 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

It worked! Thanks!

Quote:
Originally Posted by dhMassacre View Post
I'm gonna work on changing the icon's on the launcher's sizes so it looks nicer..
But on a full page I can see what you meant about the icons need to shrink just a bit, it does seem crowded. I'm still gonna leave it like this for a while.
cwgtex is offline   Reply With Quote
Old 08/11/2009, 05:27 AM   #7 (permalink)
Member
 
Join Date: Aug 2009
Posts: 27
Likes Received: 0
Thanks: 1
Thanked 2 Times in 2 Posts
Default

it worked, thanks a lot!
The only problem i can see with this is not even the icon size.. but it's their text underneath them... if the text is too long, it will overlap with the text of the icon next to it...

I'm keeping it this way though, hopefully there will be a fix for the minor details.
DliniyPasha is offline   Reply With Quote
Old 08/11/2009, 07:25 AM   #8 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

Any other Pre gurus out there know a way to slightly shrink the icons and/or text on the launcher?
cwgtex is offline   Reply With Quote
Old 08/11/2009, 01:31 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default

Yup, me and destinal got it working, I'll post a wiki page in a minute.

EDIT: Okay, I edited mine so my icons are pretty small, along with my text.. so I am just going to post the values for that, and explain what each value does..



That's how mine looks, but the icon size, font size, and apps per row are all TOTALLY changeable.


I'll post back with a wiki link.

Last edited by dhMassacre; 08/11/2009 at 01:37 PM.
dhMassacre is offline   Reply With Quote
Old 08/11/2009, 01:59 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default

Patch Launcher To Allow More Icons Per Row - WebOS Internals
dhMassacre is offline   Reply With Quote
Old 08/11/2009, 02:30 PM   #11 (permalink)
Member
 
Join Date: Jul 2009
Posts: 8
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

good start, but definitely some graphical glitches going on.

- text of multiple icons butting up against each other
- margin on the right side isn't equal to the left so the icons are closer
- the page indicators at the bottom right are partially off the screen

like the concept tho
mwasher is offline   Reply With Quote
Old 08/11/2009, 02:50 PM   #12 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default

I'm working on wrapping text, along with fixing the margins, this was a super-quick job, so sloppy...

Page indicators problem is fixed.
dhMassacre is offline   Reply With Quote
Old 08/11/2009, 03:40 PM   #13 (permalink)
Member
 
Join Date: Jun 2009
Posts: 435
Likes Received: 0
Thanks: 60
Thanked 38 Times in 29 Posts
Default

I was playing with that a few minutes ago, before I even saw this thread. Just browsing the wiki . I think it looks great with 4 icons per row, except I don't know how to change the left margin. The other problem is that some of the longer app names (Sprint Navigation, for example) run into each other unless the font is set ridiculously small.

BTW dhMassacre, thanks for the wiki page, you might want to add on there that you can set the number of apps per row in 2 ways: changing the kAppWidth value is good for getting the spacing right, but you can set this.kAppsPerRow to 4 or 5, as you prefer, to be able to use smaller spacing without overcrowding the row.
Does that make sense?
I.e., change this:
this.kAppsPerRow = Math.round(this.kPageWidthNoMargin / this.kAppWidth);
to this:
this.kAppsPerRow = 4;

in addition to setting the kAppWidth in launcher-assistant.js.
stubbs is offline   Reply With Quote
Old 08/11/2009, 04:05 PM   #14 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

Quote:
Originally Posted by dhMassacre View Post
This is awesome! I guess its true, ask and ye shall receive!

Thanks to all!
cwgtex is offline   Reply With Quote
Old 08/11/2009, 04:52 PM   #15 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default

Quote:
Originally Posted by cwgtex View Post
This is awesome! I guess its true, ask and ye shall receive!

Thanks to all!
lol, was just browsing, and this seemed like something i could actually doo..
dhMassacre is offline   Reply With Quote
Old 08/11/2009, 06:31 PM   #16 (permalink)
Member
 
Rennat's Avatar
 
Join Date: Jun 2009
Location: With a colony of King Penguins in Antartica
Posts: 1,318
Likes Received: 95
Thanks: 533
Thanked 304 Times in 153 Posts
Default

This really helps me out with organizing my apps. They are much more organized and easier to use. THANKS EVERYONE!
__________________
My Tutorial on how to get Ubuntu on the TouchPad: http://forums.precentral.net/webos-d...-touchpad.html
Rennat is offline   Reply With Quote
Old 08/11/2009, 07:31 PM   #17 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default



There's my final result, its beast IMO
Fixed the margin, also fixed the page indicators...

None of my text overlaps, but I'm sure if I put the ones with the longest names together, it would.. so I just have text wrapping to work on....

I'll explain to someone exactly what edits I did to get it where it is if they want to edit the wiki page for me..
dhMassacre is offline   Reply With Quote
Old 08/11/2009, 08:12 PM   #18 (permalink)
Member
 
Join Date: Jul 2009
Posts: 6
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default how do you edit text in putty?

stupid question, but how do edit the text in putty?
vixijo is offline   Reply With Quote
Old 08/11/2009, 08:16 PM   #19 (permalink)
Member
 
Join Date: Jun 2009
Posts: 347
Likes Received: 0
Thanks: 9
Thanked 101 Times in 41 Posts
Default

vi filename will bring you into a text editor.
i prefer enabling sftp access and editing it with winscp's editor, on windows.
dhMassacre is offline   Reply With Quote
Thanked By: vixijo
Old 08/11/2009, 08:19 PM   #20 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

Quote:
Originally Posted by vixijo View Post
stupid question, but how do edit the text in putty?
Read up on vi here:

Basic Linux Use - WebOS Internals
cwgtex is offline   Reply With Quote
Thanked By: vixijo
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0