yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] juried:
No thanks, I prefer black lettering on white pages, with dark theme the white letters have an effect of creating a negative in my eyeballs which lingers for a moment and dances most annoyingly. So let's not have it standard. ☺
[Android Apps and Games] Capa1970:
The apk doesn't seem to be working for me???
[Android Apps and Games] GuinnessX:
"Black lettering on white pages" is a description of rendering, which is very easy to change to your liking in the settings. A dark theme option for the apk is an excellent idea. I love the one he made and hope to see it continue.
[Android Apps and Games] barth2:
Sorry. That one contains some experimental code that tries to un-invert images. I probably have the API level set wrong or something so it does not work on your device.

Here is one with just the UI blacked out. I only changed some icons and xml files. The code is same as original (not recompiled, read: not screwed up, by me) Should work.

https://docs.google.com/file/d/0B1AKmSMAnif2S3ZsZzBYMlhEdW8/preview?pli=1
[Android Apps and Games] Capa1970:
There were two links: one a Java file and the other an apk. When it failed yesterday, I just attempted to download the apk workout success. Was I suppose to download the Java file as well?
[Android Apps and Games] barth2:
no the java file is only for devs who want to try the code

Here is updated apk file without the debug info, so only 700K

https://drive.google.com/file/d/0B1AKmSMAnif2SllDd3dEOHZ5eUU/view?usp=sharing

again, this is only for people who care about black theme and/or inverted mode. I'm trying to make inverted mode not invert images. It mostly works for IMG tags. but not background images, though I try to deal with a few cases,

If it does not install, you may need to uninstall current app. That's because I'm signing with a debug/test key, which obviously does not match anthonycr's.

Yes, I'll eventually do this the right way and put it on github with full source. I'm learning, and my way of learning is jump in and do stuff and only as last resort RTFM :) I guarantee nothing except that when I mess up it's through ignorance and stupidity, not malice.
[Android Apps and Games] Capa1970:
Thanks, barth2, it worked. I had to uninstall the original app.

Wow, what an awesome improvisation! Dark theme and images that, for the most part, have color in inverted mode. This app went from 9 to a perfect

---------- Post added at 11:40 PM ---------- Previous post was at 11:38 PM ----------

For those of you wondering why many of us here want a dark theme and inverted colors, it's mainly about battery life:

http://www.androidauthority.com/black-amoled-display-power-saving-541984/

Yep, impressive battery life
[Android Apps and Games] geoslake:
Wow, thanks for your blacked version Barth2 !!! Im using inverted mode, and images are fine, this is perfect !

Now, if only someone could add video player touch controls, that would be nirvana.

(i dont use youtube app, using the browser to stream videos, and dolphin, for instance, has left vertical swipe to control brightness, right vertical swipe to control volume, and horizontal swipe for time seeking)
[Android Apps and Games] cricon:
Very fast. Very good.
[Android Apps and Games] barth2:
Update to my black version of lightning

https://drive.google.com/open?id=0B1AKmSMAnif2SllDd3dEOHZ5eUU&authuser=1

some refinements to inverted mode to preserve background images and keep images from getting inverted. does not work 100%, but that is probably too hard to do because I have no control on how people code their sites and it would take too long to do smarter processing.

added experimental night mode (white text on black). night mode advantages: no inverted images EVER, smoother scrolling because not applying a color filter. Disadvantages: some background images not visible, possible to get black on black or white on white on occasions, screen is white before turning black (UGH).

added button to cycle between normal / inverted / night mode

requirements: kit kat, uninstall of original lightning if you are running that (if you are running a previous build of mine, no need to uninstall). Debated whether I should change package name but don't know if that is kosher.

Biggest flaw right now is the page begins showing before I can apply my page modification via javascript, so you see the original page before it changes. In case of night mode, you get white screen before it turns black and it causes a "flash" eek. Ideally, I want to suppress page drawing until my javascript is finished, but don't know how. Anybody has a suggestion? Much appreciated :)
[Android Apps and Games] DF1E:
It would be nice if you could upload you changes to github. So others can help ypu
[Android Apps and Games] barth2:
I'm going away (first time in two years, woohoo). I'll do that after Christmas. First I'll have to learn how to use git(hub) LOL.
[Android Apps and Games] Magissia:
You can use a graphical client, it's easy to use.

Regards
[Android Apps and Games] geoslake:
Wonder if its possible to modify the browser to ask what to do with audio and video files (havent tried on video, so at least for audio).

When opening an internet link with an mp3, i can stream it in Lightning, but theres no progress bar (it seems there should be one, but it kinda disappearing immediately).

So either a fix to this, or the ability to chose external app to open those links wold be awesome.

Cheers
[Android Apps and Games] matraca:
I am in the same boat, I love this browser but I need to download mp3 files on a daily basis and there is no option to download to phone, only to stream. I hope a fix for this wil come soon
[Android Apps and Games] OldYellowBricks:
+1
[Android Apps and Games] barth2:
I created a github account and installed github client for Windows. I made a repository on github and added a readme

https://github.com/thataboy/Storm

I can't figure out how to add all the files in my project folder to my local repository and upload them to github though. Help??
[Android Apps and Games] :
Very interesting project.
[Android Apps and Games] geoslake:
Love the new button to switch modes. I don't use night mode because of the "first day, then night" thing you mentioned, which kills my eyes at night.

BTW happy new year ;)
[Android Apps and Games] lediod:
thanks
[Android Apps and Games] barth2:
BTW has anyone successfully built and run lightning using android studio 1.0 (or any version for that matter). I always get a dexopt error ("Installation failed since the device possibly has stale dexed jars that don't match the current version"). Eclipse works but I understand I should be moving to android studio anyway.
[Android Apps and Games] hashimz:
Wow, Quick and Simple. Much better then Chrome. Thanks alot.
[Android Apps and Games] o-w-a:
Yes I did I even themed it added some material icons to it. And a material floating action button for tabs.

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Android Apps and Games] TotallyAnxious:
Wanna share it? lol
[Android Apps and Games] o-w-a:
I can't till tomorrow it's 7am here and my laptop is too far away :p I'm actually going to publish it too if the dev is cool with it. ?

Here is a screenshot though

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Android Apps and Games] TotallyAnxious:
I look forward to it. And I doubt he would care. He seems like one of those people who really appreciates the whole open source thing. Hola vpn put the whole lightning browser in their app without giving credit and as far as I know he didn't care.
[Android Apps and Games] o-w-a:
Yeah I know there even people who makes money out of his work. But yeah... I've added a screenshot, tell me what you thin means a lot :)
[Android Apps and Games] TotallyAnxious:
I don't like the pink text and url. Are the colors going to be configurable? And is the floating button the bottom always visible? If so it would probably get annoying. Otherwise it's a good start!
[Android Apps and Games] o-w-a:
Well actually I want it to disappear as you scroll but I want it to expand into two mini buttons too and that's my priority. As for the colors; I don't know, I can change it to a simpler one.

To be honest this is my first real project. I'm developing themes for some keyboards but never had to deal with real code so I might be slow on updates sorry

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Android Apps and Games] TotallyAnxious:
No need to apologize! I just started releasing my personal kernel. So I totally feel you. Take your time!
[Android Apps and Games] o-w-a:
Thank you! I'm going to upload an apk tomorrow

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Android Apps and Games] krule031:
Man it looks awesome.

Looking forward to it. :)
[Android Apps and Games] barth2:
Did you have to do anything special to compile and run with android studio? I did a git clone, then run the command shown in the read.me to pull the netcipher library. It compiles but when installing on any device I get dexopt error. what sdk do you have installed?

Thanks very much
[Android Apps and Games] o-w-a:
ok so here is what I did;

First I did the way you did as written on the readme file but that gave me errors while importing to Android Studio. Then, I downloaded the lightning browser source manually and the netcipher library put them inside the same folder and ran import project on Android Studio and voila!

. I've used the API 19 for compile version and 21.1.1 for build tools.
[Android Apps and Games] barth2:
thank you. Did you also download netcipher library manually? If so, how?
[Android Apps and Games] o-w-a:
Well when I first tried the git command as shown in the read me file I kept that folder and used that folder.
[Android Apps and Games] o-w-a:
Here is the apk. Please not that;

I'ts called "42 Browser", has lots to improve, it is a personal project don't expect much, has all the features that lightning browser has nothing more nothing less and updates may be slow. Used makovkastar's library for FAB.

Oh and it has a dummy icon (pink version of the original one)

Please don't post anything related to this project here anymore.

Find me on G+ for updates or just to discuss.

/+BarışCemBaykara

Thank you! :)
[Android Apps and Games] anthonycr:
Hey everyone, happy new year. Sorry I haven't been around but I was really busy all semester and just forgot to log back in when it ended. I haven't forgot about you all here, but I haven't gotten too much work done on the app over the past few months. I've started working on it again as I'm on break for a few more weeks before the semester starts, although I am also working full time. Hope you guys understand, and I'll try to come on here more. It just got to be too much to keep up with stuff while the semester was going.

Also, huge thanks to anyone here that's contributed to the repo over the past few months. There's some good changes that were made, particularly a settings rework and lots of translations added.

I'm looking to get lightning and thunder updated for Lollipop with material design (probably close to chromes look) over the next few weeks. Also, I'm hoping to move the project over to Android Studio as I've been using it for a work project (the company I interned at hired me back for the winter) and I've become quite fond of it. As an aside, importing the project into AS works fine for me.

Also, in case anyone hasn't been getting Orbot TOR to work on Lollipop with Lightning it's because I have to update it for Lollipop, so it is fixable. I've already committed those changes to the repo so if you build from source it works fine.

Anyway, hello again XDA.

:)
[Android Apps and Games] anthonycr:
I really appreciate open-source especially since I learned a lot from reading the AOSP code, but it also hurts when people use my work and pretend it's their own, especially since I make less money on the browser than those that have forked it. Also, I'm just a single dude so bothering all these people for not obeying the MPL license, it's not worth my effort haha. That's not to diminish the license. Whenever someone brings to my attention someone not attributing me, I email them and make them rectify it. I just don't actively look for clones.

I contacted Hola and they fixed the attribution right away... And the funny thing is that I got a reply from their CEO who offered me an interview, so we'll see how that goes. I think they originally missed attribution because in the license activity I mention lightning, but if you change the name of the app it changes the name of the licensed source code.

Anyway, whether I like it or not, this browser is viral as there are soooo many forks popping up all over. I'm content to know I built something good enough for others to fork.[emoji41]
[Android Apps and Games] TotallyAnxious:
Congrats on the interview! It's rad to see Hola handled the situation well.

I'm definitely looking forward for the lightning redesign. Been missing it since switching to lollipop. Might have to teach myself how to compile an app just to start using it early.
[Android Apps and Games] :
I guess java.lang.ConscienceOutOfBoundsException

Do ya thing. Nice work. Keep coding.
[Android Apps and Games] krule031:
[MENTION=4544494]anthonycr[/MENTION]

Welcome back bro!

I'm looking forward for the material design update, keep up the good work! :)
[Android Apps and Games] himanshu19890:
Getting problem to import the the lighting browser project to eclipse IDE

Please help me to import the project on eclipse IDE. I have done all the steps mentioned in read me file. All the library projects imported fine but main project is not showing android property after importing.
[Android Apps and Games] Tjee:
Would you be interested in adding some kind of tracking blocker à la Ghostery ?
[Android Apps and Games] xNAPx:
I would like to know why is not possible to host a photo or a file on Facebook or other things
[Android Apps and Games] anthonycr:
Definitely interested.

There's a bug if you're on KitKat otherwise it should work. Someone submitted a patch to the browser a week ago so hopefully the next update will have it working. Also if you're on lolli I haven't updated for that yet

I'm not really sure what you mean by "Android property." You should have imported it as an Android project and it pretty much should work.
[Android Apps and Games] anthonycr:
Oh hello, material Lightning.
[Android Apps and Games] estanenmi:
plz can you do something to text reflow works again in lollipop? this is a great future for a web browser... thanx man... you do it very well..

Enviado desde mi Nexus 6 usando Tapatalk 2
[Android Apps and Games] geoslake:
Will dark/night mode (both for interface ans pages) mod be integrated in the official version (i bought full version btw) ?

Thanks
[Android Apps and Games] anthonycr:
I'm not aware of a way to do this.

I have no plans for a dark interface. For the pages, there's already an inverted rendering mode but it's not ideal. If an unofficial version exists with this feature then you should request that they submit a pull request to the repository so that I can be included in the app. I haven't been around here for a while so I may have missed discussion about a dark mode.
[Android Apps and Games] :
Maybe a startpage with all bookmarks? That would be great
[Android Apps and Games] anthonycr:
You can already set your homepage to show bookmarks by going into settings and setting the homepage to bookmarks. Or are you looking for the bookmark page to contain the search bar as well?
[Android Apps and Games] :
Silly me ?
[Android Apps and Games] anthonycr:
So your comment got me thinking and I spent a while looking at the old text reflow issue in the chromium tracker and I found a solution. It's hacky and will make some websites look weird but at least when you zoom in the text will realign to some extent. It requires running JavaScript in the page every time the zoom changes but I'll add it in the next version.

For those interested, running the following JavaScript in the onScaleChanged method of the WebChromeClient essentially does text reflow:

document.getElementsByTagName('body')[0].style.width=window.innerWidth+'px';

Woohoo!
[Android Apps and Games] Optimissimus99:
Is the material update in the Play beta channel already? (Pro Version)
[Android Apps and Games] anthonycr:
Not yet
[Android Apps and Games] andy_rose:
Looking good!
[Android Apps and Games] anthonycr:
For inverted rendering, do folks prefer an option that renders the page as inverted automatically after it finishes loading or a button in the menu/navigation drawer that just allows you to invert the page when you want to?

Also, I have a solution that won't invert images but it uses JavaScript and means that it won't be inverted 100% of the time, basically only after the page finishes loading or after the user presses the invert button. Should I leave it as is or change to one of these other solutions?
[Android Apps and Games] barth2:
[MENTION=4544494]anthonycr[/MENTION]

I tried doing something like that. My solution is to run the JS after page load, and have a button to switch mode

APK

https://drive.google.com/open?id=0B1AKmSMAnif2SW5iTFFTaTliZ1E&authuser=1

Source

https://drive.google.com/open?id=0B1AKmSMAnif2STdiVDdBajVSdk0&authuser=1

It doesn't always work. On image heavy sites, the double inversion slow things down a lot.

I also have a night mode, which sets background to black while trying to retain background images. Why do I want to keep background images? Because a lot of sites use div with background-image when they really should use div with an img. I'm not happy with it because it often fails and worse the page appears before I can apply the JS so you see a white page followed by a black page, resulting in a "flash."

Please feel free to take a look and use what you can. I hope you can improve on it. I haven't been able to come up with a better solution, which I suspect requires diving into the webview lib.
[Android Apps and Games] anthonycr:
[MENTION=5697750]barth2[/MENTION] thanks a lot.

There's one algorithm I found that just inverts all colors in a webpage by looping through the DOM and replacing the values. It works only after loading completely pretty much and seems to break quite often (it never seems to work on medium.com)

A second version I found was to use the filter attribute introduced in CSS3 that indicates to the browser that it should render the content inverted. This works great because it can be loaded more quickly. However, it renders weird after scrolling a long page (basically turns blank) probably due to a bug in the GPU rendering of the webview. The big problem with this though is that the filter CSS attribute is only supported in KitKat and above.

That second method is basically the CSS3 way to do what I'm already doing, which is to change the GPU rendering mode on the WebView. It has one advantage which is that it can be modified to not invert images.

There doesn't sent to be a foolproof way to do it without, like you said, diving into the webview

I'll check out what you've done.
[Android Apps and Games] anthonycr:
What do people think of this? Using a new API, I'm coloring the action bar to match the website (if you've used Link Bubble you'll notice Chris Lacy does the same thing with the loading bar). Does this look good or is it too much. I personally love it.
[Android Apps and Games] barth2:
It's cute :) how do you determine what the color should be?
[Android Apps and Games] :
First i have to thank you for your good work. Lightning is my favorite browser.

The new action bar looks really good, but i think it's a bit too much.
[Android Apps and Games] anthonycr:
[MENTION=5697750]barth2[/MENTION] Color is determined by the Favicon of the website. So, for instance, XDA would turn the action bar orange. From the little testing I've done, it usually matches pretty well, although occasionally (like on my personal website) the favicon is a different color from the website.

[MENTION=6174684]Dani2070[/MENTION] if I end up including it, there will *definitely* be an option to turn it off as the browser is a tool and I know not everyone likes animations and stuff like that in a tool.
[Android Apps and Games] :
I like the new style. For my taste it is a bit to colorful, maybe softer like this #BFEFFF

Maybe get the color value and convert it to rgb if needed and after that adjusting the values.

Just 2 ideas

1. Mode to turn off data saving. Even when I disable cookies sites like google save my history

2. Background mode so you can listen to music while using other apps (youtube for example). Sometimes when I listen to an online stream the music keeps playing until I completely close the app by swiping it away

BTW: if you need a new icon I am your man ;)
[Android Apps and Games] Tjee:
Yes, considering the Orbot integration, I think the privacy potential of this browser should go all the way. You could then even advertise it as such, which would be a great way to be more distinctive and unique.

There aren't really any privacy oriented browsers out there, except for ghostery browser, which isn't even open source.

And of course Orweb, but I don't use Tor for daily browsing.
[Android Apps and Games] :
Yeah, something like noscript would be overkill. I know you can turn off javascript but something like a button in a bar to turn it off/on would be far more user friendly. With all these things this browser is going to be the best one you can get(for me this browser is). Boy I have so many ideas :)
[Android Apps and Games] am11:
I've been using Habit Browser for a while now and not sure how the inverted mode is implemented there but it seems to work pretty well. Not sure if it's possible to figure out its approach but link below in case it's helpful.

https://play.google.com/store/apps/details?id=jp.ddo.pigsty.HabitBrowser
[Android Apps and Games] anthonycr:
I'm not certain right now but Habit Browser might be using an undocumented hidden feature of the WebView which performs inverted rendering... Essentially a hack. I'm going to test it to see if it's indeed that hidden feature.

If it is I suppose I can use it but as it's not an official feature it's subject to being removed at any time.
[Android Apps and Games] am11:
Could have inverted rendering modes as an advanced setting where the user can chose the hack if it works better for them with the default being the more proper implementation.

However and I'm probably being pedantic but I prefer the black background in lighting browser inverted rendering over the dark background in habit browser.
[Android Apps and Games] barth2:
I tried it. It appears to also be using JavaScript to apply css. It has the same "flashing" problem as mine. It doesn't try to preserve background images. Go to slate.com for example. There are lots of missing images.
[Android Apps and Games] am11:
Ah very clear with state.com background images are lost. I guess I just didn't notice or happened to browse sites without background images. Either way for me it seems like an acceptable compromise in order to have inverted rendering.

What is the flashing problem?
[Android Apps and Games] anthonycr:
What's weird is I always try out Medium.com for inverted rendering because there is something about the site that messes it up and whether I'm using the Hardware rendering Lightning currently uses or some JavaScript I've tried to invert the page it always shows the site as blank black after you scroll halfway down. Habit's (JavaScript?) version doesn't do this which is odd considering [MENTION=5697750]barth2[/MENTION] says it breaks on Slate.
[Android Apps and Games] barth2:
^^^ if you don't notice it, then it's not a problem :)
[Android Apps and Games] am11:
I just tried Medium.com in habit and when it's inverted the images become blank black from the get go and I also lose the M and get edium

Screenshots attached
[Android Apps and Games] anthonycr:
Well I was gonna put up a beta tonight but was thwarted by the android support libraries cross referencing each other and screwing my build up so I'm gonna try again tomorrow if I have time. Everything seems to be running well on all versions of android but that wasn't with too much testing so we'll see how it goes.