cdfa / AutoSetupLongTapFreeze

Script for Lightning Launcher that automatically sets up app freezing on any app in a container. See http://www.lightninglauncher.com/wiki/doku.php?id=script_autosetupappfreeze for more info
4 stars 0 forks source link

Add more (un)freeze GUI icon states. #12

Open JardaG opened 7 years ago

JardaG commented 7 years ago

Now there are two states: Unfreezed - color icon. Freezed - BW icon.

New suggestion: Unfreezed - color icon, reset background to default. Immediately after long tap - change background of icon to green (unfreeze) or red (freeze), or choose another noticeable visual effect. Freezed - reset background to default, set BW icon, best with overlay sign for naturally BW app icons #3.

Why? (Un)freezing app takes some time internally and user experience is not so good when long tap and GUI response is not aligned. I often press icon twice when I immediately want to run unfreezed app, but sometime I make freeze again.

Tested workaround: change order of call for change icon style and then call for (un)freeze, it works very good, but it make sense to wait to successful (un)freeze command and then update icon state, so third icon status is required.

cdfa commented 7 years ago

Hmm, i understand your problem. I think I have a better idea for a solution though: Frozen state: ice crystal icon as overlay (and bw icon if you want) Freezing/unfreezing: spinning ice crystal Unfrozen: normal Would be a little more work to implement, but would also be a nicer solution in my opinion. Tell me what you think. I do have to say that this will probably not be implemented soon because I'm quite busy with to other projects that have higher priority, but i will work on it when I can't do anything for those.

JardaG commented 7 years ago

Your idea is good, but eating CPU by animation is not my preferred solution. ;) Even when I already long tap the icon I never see thru my finger what is happen with icon/animation, this is reason why I suggest to only change the background because is much bigger than icon and than my finger. ;) Simplify it as is possible. ;) Maybe I'm possible to implement it too, your code is piece of nice inspiration. :)

cdfa commented 7 years ago

hmm, good point. What I could do is have a small image of an ice crystal in the center for the freezing/unfreezing state and have it only be full size when the freezing is done. If you want to change the code yourself you're welcome to :). That would simplify solving bugs a lot. If you can fix one/add some functionality yourself, feel free to also upload it to the repository.

JardaG commented 7 years ago

Ok, let crystal icons come later, now I will try to implement it with changing background. ;)

Can you describe me your development workflow and used tools? Maybe you can add this to some text file in repository or to wiki here, hm?

And can you upload last version here? Now I can found only v1.6b1 here.

cdfa commented 7 years ago

Alright updated the github repo and put the development information in the readme. I also invited you as collaborator on this repo. Good luck :)

JardaG commented 7 years ago

Great, big thank you! =)