| lxtheme | ||
| screenshots | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| lxtheme_demo.py | ||
| README.md | ||
| Version | ||
LxTheme
A modern, highly customizable, and dark-mode-first theme engine for Python Tkinter (ttk).
Features
- Modern Design: Beautifully crafted Tkinter theme with dark and light variants.
- Custom Widgets: Includes specialized components for modern desktop applications (e.g., custom switches, rounded frames, clean input fields, and custom menus).
- Native HiDPI / 4k Support: Integrated
IconManagerautomatically scales SVGs dynamically for crisp icons on high-resolution displays. - Easy Integration: Designed to seamlessly integrate with any standard
tkinterorttkapplication. - Responsive & Performant: Built with performance and usability in mind.
LxTheme Demo
Curious about how it looks and feels? We've included a comprehensive demo application that showcases all available widgets, styles, and configurations!
To launch the interactive demo, simply run:
lxtheme-demo
The demo provides a real-time playground to explore buttons, entries, trees, switches, tabs, and more.
Screenshots
📸 Show Screenshots (Click here)
Demo Application (Overview)
Check, Radio & Switch
Scales & Progressbars
Treeview
Form Elements & Inputs
LabelFrames
Installation
The recommended way to install LxTheme is via the official LxTools APT repository. This ensures you always receive automatic updates for your system.
For easy setup of the repository, visit the official page: https://apt.ilunix.de/
Once the repository is added, simply install the theme engine via:
sudo apt update
sudo apt install python3-lxtheme
Usage
import tkinter as tk
from tkinter import ttk
from lxtheme import LxTheme
root = tk.Tk()
# Initialize the LxTheme
theme = LxTheme(root, "dark") # or "light"
ttk.Label(root, text="Hello, LxTheme!").pack(padx=20, pady=20)
ttk.Button(root, text="Click Me").pack(padx=20, pady=20)
root.mainloop()
License
This project is licensed under the GPLv3. For more information, see the LICENSE file.





