Home Download Buy Blog Forum Support

[In Beta] Sublime ThemeChanger [Testers and Ideas needed!]

[In Beta] Sublime ThemeChanger [Testers and Ideas needed!]

Postby DanielV on Sun Oct 21, 2012 3:42 pm

[Beta] ThemeChanger for Sublime Text 2

Introduction:
I always used to switch my color scheme depending on the amount of sunlight, because looking at a dark screen in a light environment or vice versa gives me eye strains. When developing I'm always focussed on the project and I always found myself changing the color scheme way to late when I was already feeling my eyes a little. So I made a simple bash script that switched my user preferences around 7:30 and 19:30, this didn't work so well because every times I changed some settings. I forgot to do it in the backup files causing me to lose my settings. So I started developing this plugin. I think that every developer that uses Sublime Text 2 for most of their day should try this out to see the difference.

Github Branches:
Beta: Github
Nightly: Github (Not recommended)

Want to help?
  • I'm currently looking for ideas to improve the plugin. Leave a comment with your suggestion.
  • The plugin is still in beta and since the plugin is quite a background plugin I need beta testers to find bugs and performance issues
  • If you would like to contribute to the plugin by developing, go over to the github page. I'll always accept great pulls!

Status
Version: Beta 0.1

Bugs:
  • Saving the settings file requires another save of any file to update the settings, due to a bug in the Sublime Text 2

Changelog:
0.1:
  • First working version
  • Changed status to beta
Last edited by DanielV on Mon Oct 22, 2012 8:18 pm, edited 9 times in total.
DanielV
 
Posts: 11
Joined: Sat Oct 20, 2012 8:38 pm

Re: [InDev] Sublime ThemeChanger [Error]

Postby Eduan on Sun Oct 21, 2012 4:02 pm

Well I'm no Python guru, and have no idea what the error could be, but I can tell you I fully support this! I've actually been looking for this lately. :)

BTW, can you add an undefined amount of times to change themes? Or only a limited amount?

- Eduan
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: [InDev] Sublime ThemeChanger [Contributors]

Postby DanielV on Sun Oct 21, 2012 4:28 pm

I fixed the error, it had something todo with me being to lazy to restart Sublime Text 2. I changed the posts to a more like diary of the development so people can see how buggy it is.

@Eduan: Thanks for the enthusiasm, You set the plugin to change the scheme every second if you would want that, there is no option to pick dates yet though.

If you want this please comment so I can see whether I should implement it or not
DanielV
 
Posts: 11
Joined: Sat Oct 20, 2012 8:38 pm

Re: [InDev] Sublime ThemeChanger [Contributors]

Postby Eduan on Sun Oct 21, 2012 4:43 pm

Glad you solved the problem. :)

I don't really care for changing it at certain dates, I meant changing it at certain times. But your answer to second per second change answers the question. ;)

Whenever you have it finished shoot me a PM, so that I can test it out. :)
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: [InDev] Sublime ThemeChanger [Contributors]

Postby agibsonsw on Sun Oct 21, 2012 4:49 pm

I also tend to change my theme during the day ;). Not sure that I would use a plug-in for this myself but I certainly encourage your enthusiasm.

It would be possible (I suppose..) to use geo-location-ing to find the sunset/sunrise times, and even the weather, for the user's location.

Some modern computers use "ambient lighting". I have no idea how this works but, presumably, if the computer is able to determine the lighting of the current environment, then it must (presumably) store this information somewhere.. in which case it could also be read (somehow?). This should fill your weekends 8-)
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: [InDev] Sublime ThemeChanger [Contributors]

Postby DanielV on Sun Oct 21, 2012 6:45 pm

agibsonsw wrote:I also tend to change my theme during the day ;). Not sure that I would use a plug-in for this myself but I certainly encourage your enthusiasm.

It would be possible (I suppose..) to use geo-location-ing to find the sunset/sunrise times, and even the weather, for the user's location.

Some modern computers use "ambient lighting". I have no idea how this works but, presumably, if the computer is able to determine the lighting of the current environment, then it must (presumably) store this information somewhere.. in which case it could also be read (somehow?). This should fill your weekends 8-)


Haha, the ambient lighting is going me personally a bit too far, it is still my first plugin, but if somebody were to commit it I would definately accept it.
I'll be looking in to the sunset/sunrise part though, who knows.
DanielV
 
Posts: 11
Joined: Sat Oct 20, 2012 8:38 pm

Re: [In Beta] Sublime ThemeChanger [Testers and Ideas needed!]

Postby smhg on Sun Feb 16, 2014 3:31 pm

Should someone still be looking for a sunset/sunrise based solution: I made a plugin called SunCycle.
It switches your color scheme/theme based on sunrise/sunset at your location.

Installation with Package Control: https://sublime.wbond.net/packages/SunCycle

You have to enter your location's coordinates manually in the settings currently.
I hope to find some time to optionally do an IP address lookup to derive them (useful if you travel a lot).
smhg
 
Posts: 1
Joined: Sun Feb 16, 2014 3:14 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 7 guests

cron