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.
Files changed (107) hide show
  1. ctk_theme_builder-3.2.3/LICENSE +21 -0
  2. ctk_theme_builder-3.2.3/PKG-INFO +132 -0
  3. ctk_theme_builder-3.2.3/README.md +76 -0
  4. ctk_theme_builder-3.2.3/assets/config/repo_updates.json +492 -0
  5. ctk_theme_builder-3.2.3/assets/data/ctk_theme_builder-2.2.0.db +0 -0
  6. ctk_theme_builder-3.2.3/assets/data/ctk_theme_builder-2.4.0.db +0 -0
  7. ctk_theme_builder-3.2.3/assets/data/ctk_theme_builder.db +0 -0
  8. ctk_theme_builder-3.2.3/assets/etc/default_palette.json +66 -0
  9. ctk_theme_builder-3.2.3/assets/etc/default_theme.json +347 -0
  10. ctk_theme_builder-3.2.3/assets/etc/geometry_parameters.json +60 -0
  11. ctk_theme_builder-3.2.3/assets/etc/harmony_palette.json +26 -0
  12. ctk_theme_builder-3.2.3/assets/etc/palette_labels.json +9 -0
  13. ctk_theme_builder-3.2.3/assets/etc/theme_skeleton.json +340 -0
  14. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder-about.png +0 -0
  15. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder.ico +0 -0
  16. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder120x120.icns +0 -0
  17. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder120x120.png +0 -0
  18. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder128x128.icns +0 -0
  19. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder128x128.png +0 -0
  20. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder24x24.ico +0 -0
  21. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder256x256.ico +0 -0
  22. ctk_theme_builder-3.2.3/assets/images/CTkThemeBuilder48x48.ico +0 -0
  23. ctk_theme_builder-3.2.3/assets/images/bear-logo-colour-dark.png +0 -0
  24. ctk_theme_builder-3.2.3/assets/images/bear-logo-colour.jpg +0 -0
  25. ctk_theme_builder-3.2.3/assets/images/bear-logo-grayscale.jpg +0 -0
  26. ctk_theme_builder-3.2.3/assets/images/bear24x24.ico +0 -0
  27. ctk_theme_builder-3.2.3/assets/images/bear256x256.ico +0 -0
  28. ctk_theme_builder-3.2.3/assets/images/bear48x48.ico +0 -0
  29. ctk_theme_builder-3.2.3/assets/images/colour_wheel.png +0 -0
  30. ctk_theme_builder-3.2.3/assets/images/eye_dm.png +0 -0
  31. ctk_theme_builder-3.2.3/assets/images/eye_lm.png +0 -0
  32. ctk_theme_builder-3.2.3/assets/images/folder.jpg +0 -0
  33. ctk_theme_builder-3.2.3/assets/images/folder.png +0 -0
  34. ctk_theme_builder-3.2.3/assets/images/penguin.png +0 -0
  35. ctk_theme_builder-3.2.3/assets/palettes/Anthracite.json +66 -0
  36. ctk_theme_builder-3.2.3/assets/palettes/Blue.json +66 -0
  37. ctk_theme_builder-3.2.3/assets/palettes/Cobalt.json +66 -0
  38. ctk_theme_builder-3.2.3/assets/palettes/DaynNight.json +66 -0
  39. ctk_theme_builder-3.2.3/assets/palettes/GhostTrain.json +66 -0
  40. ctk_theme_builder-3.2.3/assets/palettes/Green.json +66 -0
  41. ctk_theme_builder-3.2.3/assets/palettes/Greengage.json +66 -0
  42. ctk_theme_builder-3.2.3/assets/palettes/GreyGhost.json +66 -0
  43. ctk_theme_builder-3.2.3/assets/palettes/Hades.json +66 -0
  44. ctk_theme_builder-3.2.3/assets/palettes/Harlequin.json +66 -0
  45. ctk_theme_builder-3.2.3/assets/palettes/MoonlitSky.json +66 -0
  46. ctk_theme_builder-3.2.3/assets/palettes/MrWhippy.json +66 -0
  47. ctk_theme_builder-3.2.3/assets/palettes/NeonBanana.json +66 -0
  48. ctk_theme_builder-3.2.3/assets/palettes/NightTrain.json +66 -0
  49. ctk_theme_builder-3.2.3/assets/palettes/Oceanix.json +66 -0
  50. ctk_theme_builder-3.2.3/assets/palettes/Phoenix.json +66 -0
  51. ctk_theme_builder-3.2.3/assets/palettes/Sweetkind.json +66 -0
  52. ctk_theme_builder-3.2.3/assets/palettes/TestCard.json +66 -0
  53. ctk_theme_builder-3.2.3/assets/palettes/TrojanBlue.json +66 -0
  54. ctk_theme_builder-3.2.3/assets/themes/Anthracite.json +347 -0
  55. ctk_theme_builder-3.2.3/assets/themes/Blue.json +336 -0
  56. ctk_theme_builder-3.2.3/assets/themes/DaynNight.json +347 -0
  57. ctk_theme_builder-3.2.3/assets/themes/GhostTrain.json +347 -0
  58. ctk_theme_builder-3.2.3/assets/themes/Green.json +336 -0
  59. ctk_theme_builder-3.2.3/assets/themes/Greengage.json +347 -0
  60. ctk_theme_builder-3.2.3/assets/themes/GreyGhost.json +347 -0
  61. ctk_theme_builder-3.2.3/assets/themes/Hades.json +347 -0
  62. ctk_theme_builder-3.2.3/assets/themes/Harlequin.json +347 -0
  63. ctk_theme_builder-3.2.3/assets/themes/MoonlitSky.json +347 -0
  64. ctk_theme_builder-3.2.3/assets/themes/NightTrain.json +347 -0
  65. ctk_theme_builder-3.2.3/assets/themes/Oceanix.json +347 -0
  66. ctk_theme_builder-3.2.3/assets/themes/TrojanBlue.json +347 -0
  67. ctk_theme_builder-3.2.3/assets/views/Basic.json +167 -0
  68. ctk_theme_builder-3.2.3/assets/views/Categorised.json +201 -0
  69. ctk_theme_builder-3.2.3/assets/views/widget_list.txt +57 -0
  70. ctk_theme_builder-3.2.3/ctk_tb/__init__.py +1 -0
  71. ctk_theme_builder-3.2.3/ctk_tb/__main__.py +5 -0
  72. ctk_theme_builder-3.2.3/ctk_tb/controller/__init__.py +6 -0
  73. ctk_theme_builder-3.2.3/ctk_tb/controller/ctk_theme_builder.py +94 -0
  74. ctk_theme_builder-3.2.3/ctk_tb/controller/migrate_assets.py +183 -0
  75. ctk_theme_builder-3.2.3/ctk_tb/model/__init__.py +6 -0
  76. ctk_theme_builder-3.2.3/ctk_tb/model/ctk_theme_builder.py +1166 -0
  77. ctk_theme_builder-3.2.3/ctk_tb/model/preferences.py +318 -0
  78. ctk_theme_builder-3.2.3/ctk_tb/paths.py +64 -0
  79. ctk_theme_builder-3.2.3/ctk_tb/runtime_init.py +285 -0
  80. ctk_theme_builder-3.2.3/ctk_tb/utils/__init__.py +6 -0
  81. ctk_theme_builder-3.2.3/ctk_tb/utils/bom.lst +16 -0
  82. ctk_theme_builder-3.2.3/ctk_tb/utils/cbtk_kit.py +1085 -0
  83. ctk_theme_builder-3.2.3/ctk_tb/utils/color_constants.py +1130 -0
  84. ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_builder_qa_app.bat +19 -0
  85. ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_builder_qa_app.py +281 -0
  86. ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_builder_qa_app.sh +48 -0
  87. ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_migrate.bat +11 -0
  88. ctk_theme_builder-3.2.3/ctk_tb/utils/ctk_theme_migrate.py +219 -0
  89. ctk_theme_builder-3.2.3/ctk_tb/utils/loggerutl.py +355 -0
  90. ctk_theme_builder-3.2.3/ctk_tb/utils/package.sh +129 -0
  91. ctk_theme_builder-3.2.3/ctk_tb/utils/tb-package.sh +6 -0
  92. ctk_theme_builder-3.2.3/ctk_tb/utils/theme_compat.py +34 -0
  93. ctk_theme_builder-3.2.3/ctk_tb/utils/tooltip_compat.py +133 -0
  94. ctk_theme_builder-3.2.3/ctk_tb/view/__init__.py +6 -0
  95. ctk_theme_builder-3.2.3/ctk_tb/view/about.py +84 -0
  96. ctk_theme_builder-3.2.3/ctk_tb/view/control_panel.py +2789 -0
  97. ctk_theme_builder-3.2.3/ctk_tb/view/ctk_button_dnd.py +149 -0
  98. ctk_theme_builder-3.2.3/ctk_tb/view/ctk_fa_browser.py +656 -0
  99. ctk_theme_builder-3.2.3/ctk_tb/view/ctk_theme_preview.py +1001 -0
  100. ctk_theme_builder-3.2.3/ctk_tb/view/export_import.py +335 -0
  101. ctk_theme_builder-3.2.3/ctk_tb/view/geometry_dialog.py +526 -0
  102. ctk_theme_builder-3.2.3/ctk_tb/view/harmonics_dialog.py +744 -0
  103. ctk_theme_builder-3.2.3/ctk_tb/view/preferences.py +839 -0
  104. ctk_theme_builder-3.2.3/ctk_tb/view/provenance_dialog.py +147 -0
  105. ctk_theme_builder-3.2.3/ctk_tb/view/theme_merger.py +313 -0
  106. ctk_theme_builder-3.2.3/ctk_tb/view/view_utils.py +76 -0
  107. 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).