Skip to content

Commit

Permalink
fixes to docs, button
Browse files Browse the repository at this point in the history
some fixes to the docs and button for the github page
  • Loading branch information
jdarias committed Jun 20, 2020
1 parent 40e7042 commit 15a2b68
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
__pycache__/
*.swp
conf.conf
build/
dist/
11 changes: 10 additions & 1 deletion autotheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ def aboutBox():
def donatebutton():
webbrowser.open_new(r"https://www.paypal.me/juandaesarias")
winAbout.destroy()

def githubbutton():
webbrowser.open_new(r"https://github.com/jdarias/AutoTheme-19")
winAbout.destroy()

global winAbout
winAbout=Tk()
Expand All @@ -384,7 +388,7 @@ def donatebutton():
lbl_title.grid(column=1, row=0, sticky="w", padx=10)

# version
lbl_version=ttk.Label(text="Version 1b \"Let\'s just use a good\'ol integer\"", font=(None, 10, "bold"), master=frm_title)
lbl_version=ttk.Label(text="Version 0.1", font=(None, 10, "bold"), master=frm_title)
lbl_version.grid(column=1, row=1, sticky="w", padx=10)

# info about the program
Expand All @@ -409,6 +413,11 @@ def donatebutton():
btn_donate=tk.Button(master=frm_donate, text=" Donate ", image=img_donate, compound=tk.LEFT, command=donatebutton)
btn_donate.pack(side=tk.RIGHT)

# image and button for the github page
img_github=tk.PhotoImage(file=resource_path("icons\\btn\\GitHub-Mark-24px.png"))
btn_github=tk.Button(master=frm_donate, text=" GitHub ", image=img_github, compound=tk.LEFT, command=githubbutton)
btn_github.pack(side=tk.LEFT)

winAbout.iconbitmap(resource_path("icons\\16.ico"))
winAbout.mainloop()
#---/opts
Expand Down
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Autotheme-19
A Windows app that switches between dark and clear themes (on Windows 10) according to the times of the day you set.

The app sets the clear theme during the day and the dark theme during the night.
- The app sets the clear theme during the day and the dark theme during the night.

You can set the sunrise and sunset hours yourself or let the app calculate these times for you.
- You can set the sunrise and sunset hours yourself or let the app calculate these times for you.

The app can also run at startup so you basically set it and forget it.
- The app can also run at startup so you basically set it and forget it.

No matter when you turn your computer on, or if you haven't used it in a while, the app will change your theme according to its settings. It will also enforce the setting if the theme changes, i.e by another app.
- If you work at night, you can set the app to set the clear theme at night and the dark theme during the day.

If you work at night, you can set the app to set the clear theme at night and the dark theme during the day.
It doesn't matter when you turn your computer on, or if you haven't used it in a while, the app will change your theme according to its settings. It will also enforce the setting if the theme changes, i.e by another app.

Written as a Python learning project during the COVID-19 pandemic.

Expand All @@ -32,7 +32,7 @@ This app does not "call home" nor collects data from you.
I am not responsible for the development or the funcionality of the libraries linked in this project. Please check the respective documentation and direct inquiries to the relevant project. Everything is open source. You can check the source code of the app and suggest improvements.

## Setup / Uninstall
Put the autotheme.exe file anywhere on your system and double clic it.
Put the autotheme.exe file anywhere on your system and double click it.

On your first run, it will show the options window and you can set the sunrise/sunset hours, if you work at night or if you want to calculate the hours using your location.

Expand All @@ -57,7 +57,7 @@ If you like this project and it has brought you a smile, please consider making
- [winshell](http://github.com/tjguk/winshell>)

## Python libraries used in this project
See [the Python Documentation](https://docs.python.org) for information on them)
See [the Python Documentation](https://docs.python.org) for information on them

- tkinter
- ast
Expand Down

0 comments on commit 15a2b68

Please sign in to comment.