{"id":26487926,"url":"https://github.com/offerrall/kivydesktop","last_synced_at":"2026-05-20T19:05:29.892Z","repository":{"id":282409437,"uuid":"945713918","full_name":"offerrall/KivyDesktop","owner":"offerrall","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-14T12:52:04.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T13:39:17.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/offerrall.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":"2025-03-10T02:22:00.000Z","updated_at":"2025-03-14T12:52:07.000Z","dependencies_parsed_at":"2025-03-14T13:39:19.259Z","dependency_job_id":"20653079-cc31-47d8-88a4-2e77753f796a","html_url":"https://github.com/offerrall/KivyDesktop","commit_stats":null,"previous_names":["offerrall/kivydesktop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offerrall%2FKivyDesktop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offerrall%2FKivyDesktop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offerrall%2FKivyDesktop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offerrall%2FKivyDesktop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offerrall","download_url":"https://codeload.github.com/offerrall/KivyDesktop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566916,"owners_count":20473451,"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":[],"created_at":"2025-03-20T06:54:08.259Z","updated_at":"2026-05-20T19:05:29.885Z","avatar_url":"https://github.com/offerrall.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kivy Desktop\n\nA collection of stylized widgets for creating visually appealing desktop applications with Kivy.\n\n![readme](./readme.png)\n\n## Features\n\n- **DButton**: Customizable buttons with icon support, different styles, and hover effects.\n- **DNumeric**: Numeric control with adjustment via drag, text input or +/- buttons.\n- **DSpinner**: Stylized dropdown menu.\n- **DSwitch**: Stylized ON/OFF switch.\n- **DScrollView**: Enhanced scroll view for desktop applications.\n- **DTextInput**: Disable all default text input behavior.\n- **DBoxLayout**: Stylized box layout with border and background customization.\n- **DNamedWidget**: A widget with a name attribute for easy identification.\n- **Popup**: Simple popup with customizable title and message.\n- **ColorSelector**: Color selector widget with RGB and HSV inputs.\n- **Theme**: Theme system with customizable colors.\n\n## Installation\n\n### From Source\n1. Clone the repository:\n```bash\ngit clone https://github.com/offerrall/KivyDesktop\n```\n\n2. Navigate to the project directory:\n```bash\ncd KivyDesktop\n```\n\n3. Install the package:\n```bash\npip install .\n```\n\nOr install in development mode:\n```bash\npip install -e .\n```\n\n```bash\npip install -r requirements.txt\n```\n\n## Example Usage\nFor a simple example of how to use the widgets, check out the `example.py` file in the repository.\n\n## Some Widget Components\n\n### DButton\n```python\nbutton = DButton(\n    text=\"Click me\",                     # Button text\n    icon_source=\"path/to/icon.png\",      # Optional icon\n    icon_placement=\"left\",               # Icon position (\"left\" or \"right\")\n    content_alignment=\"center\",          # Text alignment (\"left\", \"center\", \"right\")\n    release_callback=my_function,        # Function to call when button is released\n    background_color=[0.1, 0.1, 0.1, 1], # Background color\n    font_color=[1, 1, 1, 1]              # Text color\n)\n```\n\n### DNumeric\n```python\nnumeric = DNumeric(\n    value=50,                            # Current value\n    min_value=0,                         # Minimum value\n    max_value=100,                       # Maximum value\n    step=1,                              # Step size\n    use_float=False,                     # Use floating point values\n    float_precision=2,                   # Decimal places (if use_float=True)\n    on_change_callback=my_function       # Function to call when value changes\n)\n```\n\n### DSpinner\n```python\nspinner = DSpinner(\n    text=\"Select option\",                # Current selection text\n    values=[\"Option 1\", \"Option 2\"],     # Dropdown options\n    on_select_callback=my_function       # Function to call when selection changes\n)\n```\n\n### DSwitch\n```python\nswitch = DSwitch(\n    value=True,                          # Current state\n    on_text=\"ON\",                        # Text when switch is ON\n    off_text=\"OFF\",                      # Text when switch is OFF\n    on_change_callback=my_function       # Function to call when state changes\n)\n```\n\n### DScrollView\n```python\nscroll = DScrollView(\n    orientation=\"vertical\",              # Scroll direction\n    spacing=10,                          # Spacing between children\n    padding=10,                          # Padding around content\n    auto_adjust_height=True              # Auto-adjust height based on content\n)\n\n# Add widgets to scroll view\nscroll.add_widget(my_widget)\n```\n\n### DBoxLayout\n```python\nbox = DBoxLayout(\n    orientation=\"vertical\",               # Layout orientation\n    background_color=[0.2, 0.2, 0.2, 1],  # Background color\n    background_radius=[6, 6, 6, 6],       # Corner radius\n    border_line_width=1.2,                # Border width\n    border_color=[0.05, 0.05, 0.05, 1],   # Border color\n    padding=[10, 10, 10, 10]              # Internal padding\n)\n\n# Add widgets to the box layout\nbox.add_widget(my_widget)\n```\n\n## Customizing Themes\n\nYou can customize the theme colors by modifying the `COLORS` dictionary:\n\n```python\nfrom kivy_desktop.theme import COLORS\n\n# Override default colors\nCOLORS['back1'] = [0.15, 0.15, 0.15, 1]  # Slightly lighter background\nCOLORS['seleted'] = [0, 0.8, 1, 1]       # Different highlight color\n```\n\n## Requirements\n\n- Python 3.9+\n- Kivy 2.0.0+\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofferrall%2Fkivydesktop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofferrall%2Fkivydesktop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofferrall%2Fkivydesktop/lists"}