{"id":21127009,"url":"https://github.com/pyrustic/cyberpunk-theme","last_synced_at":"2025-07-08T23:32:46.684Z","repository":{"id":57475851,"uuid":"352173566","full_name":"pyrustic/cyberpunk-theme","owner":"pyrustic","description":"The default dark theme for Pyrustic Framework","archived":false,"fork":false,"pushed_at":"2022-03-21T20:29:02.000Z","size":101,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-08T20:52:24.636Z","etag":null,"topics":["beautiful","cyberpunk","dark","dark-theme","desktop","frontend","gui","pyrustic","python","theme","tkinter"],"latest_commit_sha":null,"homepage":"https://pyrustic.github.io","language":"Python","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/pyrustic.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}},"created_at":"2021-03-27T20:45:22.000Z","updated_at":"2024-09-18T16:57:15.000Z","dependencies_parsed_at":"2022-09-07T17:13:06.203Z","dependency_job_id":null,"html_url":"https://github.com/pyrustic/cyberpunk-theme","commit_stats":null,"previous_names":["pyrustic/tk-cyberpunk-theme"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/pyrustic/cyberpunk-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrustic%2Fcyberpunk-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrustic%2Fcyberpunk-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrustic%2Fcyberpunk-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrustic%2Fcyberpunk-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyrustic","download_url":"https://codeload.github.com/pyrustic/cyberpunk-theme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrustic%2Fcyberpunk-theme/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263985544,"owners_count":23539779,"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":["beautiful","cyberpunk","dark","dark-theme","desktop","frontend","gui","pyrustic","python","theme","tkinter"],"created_at":"2024-11-20T04:46:15.031Z","updated_at":"2025-07-08T23:32:46.385Z","avatar_url":"https://github.com/pyrustic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Image --\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/pyrustic/misc/master/media/cyberpunk-cover.png\" alt=\"Figure\" width=\"970\"\u003e\n    \u003cp align=\"center\"\u003e\n    \u003ci\u003e Cyberpunk theme made with TkStyle \u003c/i\u003e\n    \u003c/p\u003e\n\u003c/div\u003e\n\n\n\u003c!-- Intro Text --\u003e\n# Cyberpunk-Theme\n\u003cb\u003e A Dark Theme for your Tkinter Python apps \u003c/b\u003e\n\nThis project is part of the [Pyrustic Open Ecosystem](https://pyrustic.github.io).\n\n\u003c!-- Quick Links --\u003e\n[Installation](#installation) | [Reference](https://github.com/pyrustic/cyberpunk-theme/tree/master/docs/reference#readme) | [TkStyle](https://github.com/pyrustic/tkstyle)\n\n\n## Usage\nThanks to [TkStyle](https://github.com/pyrustic/tkstyle), the `cyberpunk-theme` is both flexible and easy to use.\n\n### Set the theme\n\n```python\nimport tkinter as tk\nfrom cyberpunk_theme import Cyberpunk\n\n\n# root\nroot = tk.Tk()\n\n# apply the Cyberpunk theme to the GUI\ncyberpunk_theme = Cyberpunk()\ncyberpunk_theme.target(root)\n\n# From now on, the theme applies to the entire GUI\n\n# (your awesome code)\n# ...\n\n# mainloop\nroot.mainloop()\n\n\n```\n\nWhat if you want to customize the style of a specific widget ?\n\n### Style a specific widget\nEach generic widget has a default style which can be retrieved via a function named `get_{widget-name}_style_1'`.\n\nSome generic widgets like the `Button` widget have multiple styles.\n\n```python\nimport tkinter as tk\nfrom cyberpunk_theme.widget.button import get_button_dark_style\n\n# root\nroot = tk.Tk()\n\n# button\nbutton = tk.Button(root, text=\"Click\")\nbutton.pack()\n\n# style\nbutton_style_1 = get_button_dark_style()\nbutton_style_1.target(button)\n\n# mainloop\nroot.mainloop()\n```\nThe generic `Button` widget has up to ten styles.\n\nThe package [megawidget](https://github.com/pyrustic/megawidget) contains a collection of useful custom widgets built with the standard tkinter widgets.\n\nYou can set specific styles to `megawidgets` too !\n\n### Style a specific megawidget\n```python\nimport tkinter as tk\nfrom megawidget.table import Table\nfrom cyberpunk_theme.megawidget.table import get_table_style_1\n\n# root\nroot = tk.Tk()\n\n# the table megawidget\ntitles = (\"Name\", \"Age\")\ndata = [(\"Jack\", 39), (\"Jane\", 42)]\ntable = Table(root, titles=titles, data=data)\ntable.pack()\n\n# style the table\ntable_style_1 = get_table_style_1()\ntable_style_1.target(table)\n\n# mainloop\nroot.mainloop()\n```\n\n## Create your own theme\nYou can create your own theme or style, or modify the `cyberpunk-theme` as you wish.\n\nCheck out [TkStyle](https://github.com/pyrustic/tkstyle) !\n\n\n## Installation\n```bash\n$ pip install cyberpunk-theme\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrustic%2Fcyberpunk-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyrustic%2Fcyberpunk-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrustic%2Fcyberpunk-theme/lists"}