https://github.com/rdbende/sun-valley-ttk-theme-svg
Sun Valley ttk theme with SVG images
https://github.com/rdbende/sun-valley-ttk-theme-svg
sv-ttk
Last synced: 20 days ago
JSON representation
Sun Valley ttk theme with SVG images
- Host: GitHub
- URL: https://github.com/rdbende/sun-valley-ttk-theme-svg
- Owner: rdbende
- License: mit
- Created: 2021-07-31T16:38:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-31T17:03:03.000Z (over 3 years ago)
- Last Synced: 2025-02-09T15:22:57.338Z (2 months ago)
- Topics: sv-ttk
- Language: Tcl
- Homepage:
- Size: 4.73 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sun-Valley-ttk-theme
A stunning theme for ttk based on Microsoft's Sun Valley visual style. This time with SVG images.
## Note
Light theme not available yet## Documentation
For the documentation see the [documentation](DOCUMENTATION.pdf)!## How to use?
I wanted to make usage of the theme very simple, so the theme setting is handled by a separate tcl script.
This way whether you want to use a dark or light theme, you need to import just a single file. The other thing
that makes this a good solution is that normally switching between light and dark theme is not entirely perfect,
and the colors doesn't change properly.```python
import tkinter as tk
from tkinter import ttkimport tksvg
root = tk.Tk()
tksvg.load(root)# Just simply import the sun_valley.tcl file
root.tk.call("source", "sun_valley.tcl")# Then set the theme you want with the set_theme procedure
root.tk.call("set_theme", "dark")root.mainloop()
```## What's next?
Check out my other themes!
- [Azure ttk theme](https://github.com/rdbende/Azure-ttk-theme)
- [Forest ttk theme](https://github.com/rdbende/Forest-ttk-theme)