{"id":19423254,"url":"https://github.com/atomjoy/colorize-forest-ttk-theme","last_synced_at":"2025-06-30T11:38:02.889Z","repository":{"id":224531315,"uuid":"763503601","full_name":"atomjoy/colorize-forest-ttk-theme","owner":"atomjoy","description":"Colorize script creates a theme in the selected color from the Forest-ttk-theme templates (hue color).","archived":false,"fork":false,"pushed_at":"2024-02-26T17:22:48.000Z","size":678,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T04:32:21.074Z","etag":null,"topics":["colorize-forest-theme","dark-theme","forest-theme","forest-theme-color","python","python-theme","tkinter","tkinter-gui","tkinter-python","ttk"],"latest_commit_sha":null,"homepage":"https://github.com/atomjoy/colorize-forest-ttk-theme","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomjoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-26T12:24:15.000Z","updated_at":"2024-02-26T12:43:57.000Z","dependencies_parsed_at":"2024-11-10T17:47:38.410Z","dependency_job_id":null,"html_url":"https://github.com/atomjoy/colorize-forest-ttk-theme","commit_stats":null,"previous_names":["atomjoy/colorize-forest-ttk-theme"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/atomjoy/colorize-forest-ttk-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fcolorize-forest-ttk-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fcolorize-forest-ttk-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fcolorize-forest-ttk-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fcolorize-forest-ttk-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomjoy","download_url":"https://codeload.github.com/atomjoy/colorize-forest-ttk-theme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomjoy%2Fcolorize-forest-ttk-theme/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262766429,"owners_count":23361102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colorize-forest-theme","dark-theme","forest-theme","forest-theme-color","python","python-theme","tkinter","tkinter-gui","tkinter-python","ttk"],"created_at":"2024-11-10T13:37:36.992Z","updated_at":"2025-06-30T11:38:02.855Z","avatar_url":"https://github.com/atomjoy.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colorize Forest theme for ttk\n\nColorize script creates a template in the selected color from the Forest-ttk-theme templates (hue color).\n\n## Install\n\n```sh\nsudo apt install python3 python3-dev python3-setuptools\nsudo apt install python3-tk python3-pil python3-numpy\n```\n\n## Create theme images\n\nCreate your own script or edit and run the main.py script\n\n```python\nfrom colorize import *\n\nif __name__=='__main__':\n    \n    # Create images\n    # Color range from 1 to 360 color (hue):\n    # Colors red: 1, yellow: 50, green: 100, blue: 200, violet: 300, red: 360\n    # Lightnes power: normal: 1, lighter: 10\n    createColorDarkTheme(200, 5)\n    createColorLightTheme(200, 5)\n\n    # Create in custom directory     \n    createColorDarkTheme(200, 5, \"blue\")\n    createColorLightTheme(200, 5, \"blue\")\n    \n    # Create .tcl files\n    # Create forest-blue-dark.tcl from forest-dark.tcl\n    # Create forest-blue-light.tcl from forest-light.tcl\n    # Replace color in .tcl files\n    createTclDark(\"blue\")\n    createTclLight(\"blue\")\n\n    # Create color sample\n    createSample(200, 5)\n\n    # Create all colors palette samples (power: 1)\n    createDarkAll(1)\n    createLightAll(1)\n\n    # Create all colors palette samples (power: 5)\n    createDarkAll(5)\n    createLightAll(5)\n```\n\n## Update theme color\n\nUpdate in forest-color-dark.tcl and forest-color-light.tcl lines with color: \"#008bff\" to your color (use the color picker on the forest-color-dark directory image).\n\n```sh\n# Change #008bff to your color, use the color picker on the forest-color-dark image\n\narray set colors {        \n    -selectbg       \"#008bff\"\n}\n```\n\n## How to use\n\n### Python / tkinter\n\nTo use the theme just import the forest-light.tcl, or the forest-dark.tcl file, and call the theme_use method to set the theme:\n\n```sh\n# Import the tcl file\nroot.tk.call('source', 'forest-color-dark.tcl')\nroot.tk.call('source', 'forest-color-light.tcl')\n\n# Set the theme with the theme_use method (toggle)\nttk.Style().theme_use('forest-color-dark')\nttk.Style().theme_use('forest-color-light')\n```\n\n### Images\n\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/colorize-forest-ttk-theme/main/screenshots/theme-1.png\" width=\"100%\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/atomjoy/colorize-forest-ttk-theme/main/screenshots/theme-2.png\" width=\"100%\"\u003e\n\n## Links\n\n### Forest-theme doc samples\n- \u003chttps://github.com/rdbende/Forest-ttk-theme\u003e\n\n### Excel app with forest-theme\n- \u003chttps://github.com/codefirstio/tkinter-excel-app\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fcolorize-forest-ttk-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomjoy%2Fcolorize-forest-ttk-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomjoy%2Fcolorize-forest-ttk-theme/lists"}