View Single Post
Old 06-17-2016, 04:30 AM   #14
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by encol View Post
I'm investigating about icons too, it seems we have to do some javascript, or edit the default_status_bar.html in the /usr/share/webkit-1.0/pillow folder
Actually, it looks like default_status_bar.css is the key. It defines loads of PNG images for progress spinner, radio signal strength, airplane mode, battery, and more. It also defines absolute positions and sizes. If you model code on that you could probably change the URLs to http:// addresses instead of relative addresses to the assets folder (worth a try), and use any images of appropriate size, though this may be firewall limited in some cases. And "statusBarRightIconDock" is probably of interest. Some variant of the existing battery icon KUAL extension would be needed. This stuff is all new to me, so not obvious at all...

What I could do practically in my sleep is direct framebuffer manipulation. Monitor the selected portion of the screen and when it changes re-blit the title image (pre-rendered text and/or images). You may see a quick glitch when it redraws over whatever just changed (perhaps every minute when the time changes, if the entire title bar redrawn). Redrawing the entire title bar seems inefficient and unlikely though. And native mode title bar updates would inevitably need to deal with when the title bar is hidden or rotated, and such...

But at least interrogatePillow is in libpillow.so, so a native mode C program could link to that, and its embedded functions probably use similar symbols as their javascript counterparts. But I am losing interest. Javascript is not what I want to mess with at the moment.

I hope some of what I posted above might be useful to somebody -- I spent plenty of time looking for interesting stuff. But my attention on this is spent -- other things are calling for my attention.

Last edited by geekmaster; 06-17-2016 at 10:46 AM.
geekmaster is offline   Reply With Quote