ctk-theme-builder 3.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ctk_theme_builder-3.2.3/LICENSE +21 -0
- ctk_theme_builder-3.2.3/PKG-INFO +132 -0
- ctk_theme_builder-3.2.3/README.md +76 -0
- ctk_theme_builder-3.2.3/assets/config/repo_updates.json +492 -0
- ctk_theme_builder-3.2.3/assets/data/ctk_theme_builder-2.2.0.db +0 -0
- ctk_theme_builder-3.2.3/assets/data/ctk_theme_builder-2.4.0.db +0 -0
- ctk_theme_builder-3.2.3/assets/data/ctk_theme_builder.db +0 -0
- ctk_theme_builder-3.2.3/assets/etc/default_palette.json +66 -0
- ctk_theme_builder-3.2.3/assets/etc/default_theme.json +347 -0
- ctk_theme_builder-3.2.3/assets/etc/geometry_parameters.json +60 -0
- ctk_theme_builder-3.2.3/assets/etc/harmony_palette.json +26 -0
- ctk_theme_builder-3.2.3/assets/etc/palette_labels.json +9 -0
- ctk_theme_builder-3.2.3/assets/etc/theme_skeleton.json +340 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder-about.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder120x120.icns +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder120x120.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder128x128.icns +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder128x128.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder24x24.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder256x256.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder48x48.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/bear-logo-colour-dark.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/bear-logo-colour.jpg +0 -0
- ctk_theme_builder-3.2.3/assets/images/bear-logo-grayscale.jpg +0 -0
- ctk_theme_builder-3.2.3/assets/images/bear24x24.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/bear256x256.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/bear48x48.ico +0 -0
- ctk_theme_builder-3.2.3/assets/images/colour_wheel.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/eye_dm.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/eye_lm.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/folder.jpg +0 -0
- ctk_theme_builder-3.2.3/assets/images/folder.png +0 -0
- ctk_theme_builder-3.2.3/assets/images/penguin.png +0 -0
- ctk_theme_builder-3.2.3/assets/palettes/Anthracite.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Blue.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Cobalt.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/DaynNight.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/GhostTrain.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Green.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Greengage.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/GreyGhost.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Hades.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Harlequin.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/MoonlitSky.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/MrWhippy.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/NeonBanana.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/NightTrain.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Oceanix.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Phoenix.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/Sweetkind.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/TestCard.json +66 -0
- ctk_theme_builder-3.2.3/assets/palettes/TrojanBlue.json +66 -0
- ctk_theme_builder-3.2.3/assets/themes/Anthracite.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/Blue.json +336 -0
- ctk_theme_builder-3.2.3/assets/themes/DaynNight.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/GhostTrain.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/Green.json +336 -0
- ctk_theme_builder-3.2.3/assets/themes/Greengage.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/GreyGhost.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/Hades.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/Harlequin.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/MoonlitSky.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/NightTrain.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/Oceanix.json +347 -0
- ctk_theme_builder-3.2.3/assets/themes/TrojanBlue.json +347 -0
- ctk_theme_builder-3.2.3/assets/views/Basic.json +167 -0
- ctk_theme_builder-3.2.3/assets/views/Categorised.json +201 -0
- ctk_theme_builder-3.2.3/assets/views/widget_list.txt +57 -0
- ctk_theme_builder-3.2.3/ctk_tb/__init__.py +1 -0
- ctk_theme_builder-3.2.3/ctk_tb/__main__.py +5 -0
- ctk_theme_builder-3.2.3/ctk_tb/controller/__init__.py +6 -0
- ctk_theme_builder-3.2.3/ctk_tb/controller/ctk_theme_builder.py +94 -0
- ctk_theme_builder-3.2.3/ctk_tb/controller/migrate_assets.py +183 -0
- ctk_theme_builder-3.2.3/ctk_tb/model/__init__.py +6 -0
- ctk_theme_builder-3.2.3/ctk_tb/model/ctk_theme_builder.py +1166 -0
- ctk_theme_builder-3.2.3/ctk_tb/model/preferences.py +318 -0
- ctk_theme_builder-3.2.3/ctk_tb/paths.py +64 -0
- ctk_theme_builder-3.2.3/ctk_tb/runtime_init.py +285 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/__init__.py +6 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/bom.lst +16 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/cbtk_kit.py +1085 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/color_constants.py +1130 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_builder_qa_app.bat +19 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_builder_qa_app.py +281 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_builder_qa_app.sh +48 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_migrate.bat +11 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_migrate.py +219 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/loggerutl.py +355 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/package.sh +129 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/tb-package.sh +6 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/theme_compat.py +34 -0
- ctk_theme_builder-3.2.3/ctk_tb/utils/tooltip_compat.py +133 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/__init__.py +6 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/about.py +84 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/control_panel.py +2789 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/ctk_button_dnd.py +149 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/ctk_fa_browser.py +656 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/ctk_theme_preview.py +1001 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/export_import.py +335 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/geometry_dialog.py +526 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/harmonics_dialog.py +744 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/preferences.py +839 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/provenance_dialog.py +147 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/theme_merger.py +313 -0
- ctk_theme_builder-3.2.3/ctk_tb/view/view_utils.py +76 -0
- ctk_theme_builder-3.2.3/pyproject.toml +88 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 avalon60 (Clive Bostock)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ctk-theme-builder
|
|
3
|
+
Version: 3.2.3
|
|
4
|
+
Summary: A desktop theme editor for building and previewing CustomTkinter themes.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: customtkinter,tkinter,theme,gui,desktop
|
|
8
|
+
Author: Clive Bostock
|
|
9
|
+
Requires-Python: >=3.10,<3.14
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: X11 Applications
|
|
12
|
+
Classifier: Environment :: Win32 (MS Windows)
|
|
13
|
+
Classifier: Environment :: MacOS X
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
24
|
+
Requires-Dist: CTkMessagebox (==2.5)
|
|
25
|
+
Requires-Dist: bump2version (>=1.0.1,<2.0.0)
|
|
26
|
+
Requires-Dist: colorharmonies (==1.0.5)
|
|
27
|
+
Requires-Dist: colour (==0.1.5)
|
|
28
|
+
Requires-Dist: contourpy (==1.3.2)
|
|
29
|
+
Requires-Dist: ctkfontawesome[images] (>=0.6.0,<0.7.0)
|
|
30
|
+
Requires-Dist: ctktooltip (==0.9)
|
|
31
|
+
Requires-Dist: customtkinter (==5.2.2)
|
|
32
|
+
Requires-Dist: cycler (==0.12.1)
|
|
33
|
+
Requires-Dist: darkdetect (==0.8.0)
|
|
34
|
+
Requires-Dist: distro (==1.9.0)
|
|
35
|
+
Requires-Dist: fonttools (==4.59.0)
|
|
36
|
+
Requires-Dist: importlib-resources (==6.1.1)
|
|
37
|
+
Requires-Dist: kiwisolver (==1.4.8)
|
|
38
|
+
Requires-Dist: loguru (==0.7.2)
|
|
39
|
+
Requires-Dist: matplotlib (==3.10.5)
|
|
40
|
+
Requires-Dist: numpy (==2.2.6)
|
|
41
|
+
Requires-Dist: packaging (==23.2)
|
|
42
|
+
Requires-Dist: pathvalidate (==3.2.0)
|
|
43
|
+
Requires-Dist: pillow (==11.3.0)
|
|
44
|
+
Requires-Dist: pyparsing (==3.1.1)
|
|
45
|
+
Requires-Dist: pyperclip (==1.8.2)
|
|
46
|
+
Requires-Dist: python-dateutil (==2.8.2)
|
|
47
|
+
Requires-Dist: scikit-build (==0.17.6)
|
|
48
|
+
Requires-Dist: six (==1.16.0)
|
|
49
|
+
Requires-Dist: tomli (==2.0.1)
|
|
50
|
+
Requires-Dist: zipp (==3.15.0)
|
|
51
|
+
Project-URL: Homepage, https://github.com/avalon60/ctk_theme_builder
|
|
52
|
+
Project-URL: Issues, https://github.com/avalon60/ctk_theme_builder/issues
|
|
53
|
+
Project-URL: Repository, https://github.com/avalon60/ctk_theme_builder
|
|
54
|
+
Description-Content-Type: text/markdown
|
|
55
|
+
|
|
56
|
+
# CTk Theme Builder
|
|
57
|
+
|
|
58
|
+
CTk Theme Builder is a desktop editor for creating, previewing, and refining themes for [CustomTkinter](https://github.com/TomSchimansky/CustomTkinter) applications.
|
|
59
|
+
|
|
60
|
+
It provides a live preview workflow for adjusting colours, geometry, palettes, and theme metadata without editing theme JSON files by hand.
|
|
61
|
+
|
|
62
|
+
## Features
|
|
63
|
+
|
|
64
|
+
- Visual theme editing with live preview
|
|
65
|
+
- Support for light and dark theme variants
|
|
66
|
+
- Theme geometry editing for supported widget properties
|
|
67
|
+
- Palette management and colour harmonics tools
|
|
68
|
+
- Theme merge and import/export support
|
|
69
|
+
- Provenance tracking for theme metadata
|
|
70
|
+
- Built-in theme and palette assets to get started quickly
|
|
71
|
+
|
|
72
|
+
## Installation
|
|
73
|
+
|
|
74
|
+
Recommended installation from PyPI, using a virtual environment:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
python -m venv .venv
|
|
78
|
+
source .venv/bin/activate
|
|
79
|
+
pip install ctk-theme-builder
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
On Windows PowerShell:
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
python -m venv .venv
|
|
86
|
+
.venv\Scripts\Activate.ps1
|
|
87
|
+
pip install ctk-theme-builder
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Alternative install methods for users who already use `uv`:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
uv pip install ctk-theme-builder
|
|
94
|
+
uvx --from ctk-theme-builder ctk-theme-builder
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Usage
|
|
98
|
+
|
|
99
|
+
Launch the application:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
ctk-theme-builder
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Optional command-line arguments:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
ctk-theme-builder --set-appearance Dark
|
|
109
|
+
ctk-theme-builder --set-theme /path/to/theme.json
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
To migrate themes and palettes from a legacy installation:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
ctktb-migrate-assets /path/to/old/install
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Requirements
|
|
119
|
+
|
|
120
|
+
- Python 3.10 to 3.13
|
|
121
|
+
- A desktop environment capable of running Tk-based GUI applications
|
|
122
|
+
|
|
123
|
+
## Documentation
|
|
124
|
+
|
|
125
|
+
- Installation and upgrade notes: [docs/installs-upgrades.md](docs/installs-upgrades.md)
|
|
126
|
+
- User guides and release notes: [project wiki](https://github.com/avalon60/ctk_theme_builder/wiki)
|
|
127
|
+
- Source code and issue tracker: [GitHub repository](https://github.com/avalon60/ctk_theme_builder)
|
|
128
|
+
|
|
129
|
+
## Licence
|
|
130
|
+
|
|
131
|
+
Released under the MIT Licence. See [LICENSE](LICENSE).
|
|
132
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# CTk Theme Builder
|
|
2
|
+
|
|
3
|
+
CTk Theme Builder is a desktop editor for creating, previewing, and refining themes for [CustomTkinter](https://github.com/TomSchimansky/CustomTkinter) applications.
|
|
4
|
+
|
|
5
|
+
It provides a live preview workflow for adjusting colours, geometry, palettes, and theme metadata without editing theme JSON files by hand.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Visual theme editing with live preview
|
|
10
|
+
- Support for light and dark theme variants
|
|
11
|
+
- Theme geometry editing for supported widget properties
|
|
12
|
+
- Palette management and colour harmonics tools
|
|
13
|
+
- Theme merge and import/export support
|
|
14
|
+
- Provenance tracking for theme metadata
|
|
15
|
+
- Built-in theme and palette assets to get started quickly
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
Recommended installation from PyPI, using a virtual environment:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
python -m venv .venv
|
|
23
|
+
source .venv/bin/activate
|
|
24
|
+
pip install ctk-theme-builder
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
On Windows PowerShell:
|
|
28
|
+
|
|
29
|
+
```powershell
|
|
30
|
+
python -m venv .venv
|
|
31
|
+
.venv\Scripts\Activate.ps1
|
|
32
|
+
pip install ctk-theme-builder
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Alternative install methods for users who already use `uv`:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
uv pip install ctk-theme-builder
|
|
39
|
+
uvx --from ctk-theme-builder ctk-theme-builder
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Launch the application:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
ctk-theme-builder
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Optional command-line arguments:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
ctk-theme-builder --set-appearance Dark
|
|
54
|
+
ctk-theme-builder --set-theme /path/to/theme.json
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
To migrate themes and palettes from a legacy installation:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
ctktb-migrate-assets /path/to/old/install
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Requirements
|
|
64
|
+
|
|
65
|
+
- Python 3.10 to 3.13
|
|
66
|
+
- A desktop environment capable of running Tk-based GUI applications
|
|
67
|
+
|
|
68
|
+
## Documentation
|
|
69
|
+
|
|
70
|
+
- Installation and upgrade notes: [docs/installs-upgrades.md](docs/installs-upgrades.md)
|
|
71
|
+
- User guides and release notes: [project wiki](https://github.com/avalon60/ctk_theme_builder/wiki)
|
|
72
|
+
- Source code and issue tracker: [GitHub repository](https://github.com/avalon60/ctk_theme_builder)
|
|
73
|
+
|
|
74
|
+
## Licence
|
|
75
|
+
|
|
76
|
+
Released under the MIT Licence. See [LICENSE](LICENSE).
|