{"id":41846977,"url":"https://github.com/fluxswitch/dpg-customwindow","last_synced_at":"2026-01-25T10:02:06.092Z","repository":{"id":331839580,"uuid":"1132077844","full_name":"FluxSwitch/DPG-CustomWindow","owner":"FluxSwitch","description":"A  custom window  bar  template base on dearpygui","archived":false,"fork":false,"pushed_at":"2026-01-11T10:27:27.000Z","size":5588,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T14:56:37.640Z","etag":null,"topics":["custom","customwindows","dearpygui","style","window"],"latest_commit_sha":null,"homepage":"","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/FluxSwitch.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-11T09:26:51.000Z","updated_at":"2026-01-11T10:15:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/FluxSwitch/DPG-CustomWindow","commit_stats":null,"previous_names":["fluxswitch/dpg-customwindow"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FluxSwitch/DPG-CustomWindow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxSwitch%2FDPG-CustomWindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxSwitch%2FDPG-CustomWindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxSwitch%2FDPG-CustomWindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxSwitch%2FDPG-CustomWindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluxSwitch","download_url":"https://codeload.github.com/FluxSwitch/DPG-CustomWindow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxSwitch%2FDPG-CustomWindow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28751062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:58:17.166Z","status":"ssl_error","status_checked_at":"2026-01-25T09:55:56.104Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["custom","customwindows","dearpygui","style","window"],"created_at":"2026-01-25T10:02:04.018Z","updated_at":"2026-01-25T10:02:06.085Z","avatar_url":"https://github.com/FluxSwitch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CustomWindow (Dear PyGui Framework)\r\nA desktop application framework for a custom borderless window, built on Dear PyGui. It provides:\r\n- Custom title bar (icon, title text, minimize/maximize/close)\r\n- Borderless window dragging with edge/corner resize overlay\r\n- Windows API cursor switching and window controls (fallback to Dear PyGui behaviors on non‑Windows)\r\n- Centralized event handling in the `UIEvent` class; user UI is composed via `UserUI` into `UIHandle`\r\n- An independent  window snap system(Because of the borderless configuration, the Windows Snap feature can only operate in an independent manner.)\r\n\r\n\r\n## Demo\r\n| Original windows window bar | CustomWindow (This Project) |\r\n|------------------------|----------------------------------|\r\n| \u003cimg width=\"400\" height=\"318\" alt=\"image\" src=\"https://github.com/user-attachments/assets/428a1bf8-4c19-40f6-b665-4582c847ba27\" /\u003e | \u003cimg width=\"400\" height=\"300\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cecf16ac-593a-4220-9ac5-126e316e26ae\" /\u003e |  \r\n\r\nhttps://github.com/user-attachments/assets/6bc74125-9d9d-42f5-8163-759e0bab0119\r\n\r\n## Why\r\nSince Dear PyGui currently lacks a simple, mature custom window bar solution on Windows, I built one for future development.   \r\nFeel free to fork it if you need it.\r\nThis project was completed using vibe coding techniques.  \r\nPlease note that the code is VERY messy, but I have prepared a way for you to use it (see the following explanation about UserUI).  \r\nIf you want to customize the window bar yourself, the following elements are customizable:\r\n1. icon (please modify the icon image)\r\n2. title text and the title bar color(please modify the item's color theme and text with tag \"title_text_btn\")\r\n3. minimize/maximize/close window buttons (please modify the corresponding images)\r\n4. Some custom window constants\r\n\r\n## Installation\r\n\r\nInstall dependencies with pip (virtual environment recommended):\r\n\r\n```bash\r\npip install -r requirement.txt\r\n# or\r\npip install dearpygui\r\n```\r\n\r\n## Run\r\n\r\nStart the default window provided by the framework:\r\n\r\n```bash\r\npython CustomWindow.py\r\n```\r\n\r\n\r\n## Important Settings\r\n\r\n- `CUSTOMWINDOW_DEBUG`: When enabled, shows resize boundaries and button hover/active colors to aid debugging.\r\n- Layout behavior: The default main content window `content_window` automatically avoids the title bar and resize margins.\r\n\r\n## Platform Notes\r\n\r\n- Windows only: Uses WinAPI for controls (minimize/maximize/cursor switching) and offers the best experience.\r\n\r\n## Project Structure (summary)\r\n\r\n```\r\nCustomWindow.py        # Main framework file with UIHandle / UIEvent / ResizeOverlay / CustomWindowBar / UserUI\r\nfonts/                 # Font assets (optional)\r\nicon/                  # Window icon assets (optional)\r\nimages/                # Image assets (optional)\r\nresources/Resource.drawio\r\n```\r\n\r\n## Development Tips\r\n\r\n- If you want a simpler approach, please use the UserUI class for development.\r\n- To integrate more events, add methods in the `UIEvent` class and bind corresponding handlers in your layout.\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluxswitch%2Fdpg-customwindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluxswitch%2Fdpg-customwindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluxswitch%2Fdpg-customwindow/lists"}