{"id":16608456,"url":"https://github.com/oclero/luna","last_synced_at":"2025-08-18T11:12:07.312Z","repository":{"id":45838611,"uuid":"385634081","full_name":"oclero/luna","owner":"oclero","description":"Luna is a modern and good-looking QtQuick components library (QML UI kit) aimed to desktop usage.","archived":false,"fork":false,"pushed_at":"2021-07-17T12:17:51.000Z","size":94,"stargazers_count":22,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T09:44:30.200Z","etag":null,"topics":["cpp","qml","qtquick","ui-kit"],"latest_commit_sha":null,"homepage":"","language":"QML","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/oclero.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-07-13T14:33:29.000Z","updated_at":"2025-04-04T15:30:17.000Z","dependencies_parsed_at":"2022-09-12T13:40:46.196Z","dependency_job_id":null,"html_url":"https://github.com/oclero/luna","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oclero/luna","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Fluna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Fluna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Fluna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Fluna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oclero","download_url":"https://codeload.github.com/oclero/luna/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Fluna/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982206,"owners_count":24679449,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpp","qml","qtquick","ui-kit"],"created_at":"2024-10-12T01:26:17.019Z","updated_at":"2025-08-18T11:12:07.291Z","avatar_url":"https://github.com/oclero.png","language":"QML","readme":"\u003cp align=\"center\" style=\"text-align:center\"\u003e\n\t\u003cimg src=\"logo.svg\" width=\"300px\" alt=\"Luna logo\"/\u003e\n\t\u003c/br\u003e\n\t\u003c/br\u003e\n\u003cimg src=\"https://img.shields.io/badge/Version-1.0.0-16A8FF\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/License-MIT-3DA639\"/\u003e\n\u003cimg src=\"https://img.shields.io/badge/Language-QML-FFBC00\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Qt-5.15.2+-41CD52?logo=qt\"\u003e\n\u003c/p\u003e\n\n# Luna\n\n![Screenshot](screenshot.png)\n\n**Luna** is a QML components library (Buttons, CheckBoxes, SpinBoxes, etc.) aimed to desktop usage.\n\n- Based on QtQuickControls 2.\n- **Fixes various behaviors** for default QML components.\n- Adds support for a much needed `DoubleSpinBox`, to handle doubles (the standard one handles only integers).\n- Provides a `TreeView`.\n- Provides a `Vector3dEditor` to handle `QVector3D` objects.\n- Lots of **animations** and **graphical effects**.\n\nThese new components are not 100% pure QML: they're based on C++ classes for the backend and logic, for performance reasons.\n\n**Compatibility:** tested on Windows and macOS.\n\n**Table of Contents**\n\n- [How to use](#how-to-use)\n- [Modules](#modules)\n\t- [Containers](#containers)\n\t- [Controls](#controls)\n\t- [Utils](#utils)\n- [Author](#author)\n- [License](#license)\n\n## How to use\n\n1. Link with the `luna` library.\n\n2. If you're statically linking, initialize the lib's resources:\n\n\t```c++\n\t#include \u003cluna/ResourceInitialization.hpp\u003e\n\n\tluna::initializeResources();\n\t```\n3. Declare the library to the QML engine to be able to use it:\n\n\t```c++\n\t#include \u003cluna/QmlEngineConfig.hpp\u003e\n\n\tluna::registerQmlModule(engine);\n\t```\n\n4. In QML files, import the library as needed, where `\u003cModule\u003e` is a QML `luna` module:\n\n\t```qml\n\timport Luna.\u003cModule\u003e 1.0 as \u003cModule\u003e\n\t```\n\tModules are:\n\t- `Containers`\n\t- `Controls`\n\t- `Dialogs`\n\t- `MainWindow`\n\t- `Styles`\n\t- `Utils`\n\n\tFor detaied information about modules, read the [dedicated section](#moudles) below.\n\n## Modules\n\n### Containers\n\n- `Expander`: Allows to hide/show UI with a nice animation.\n- `Panel`\n- `ScrollView`: Improved ScrollView that will scroll automatically to the item that gets active focus.\n\n### Controls\n\n- `BusyIndicator`\n- `Button`\n- `CheckBox`\n- `ComboBox`\n- `DoubleSpinBox`: Input field, with drag up/down support, that accepts doubles.\n- `IntegerSpinBox`: Input field, with drag up/down support, that accepts integers.\n- `LayoutSpacer`: Same as QtWidgets's QSpacerItem.\n- `ListView`\n- `ListViewItem`\n- `Menu`\n- `MenuItem`\n- `MenuSeparator`\n- `ProgressBar`\n- `ScrollBar`\n- `Separator`\n- `Slider`\n- `SpinBox`: Default (integer) SpinBox with +/- buttons.\n- `Switch`\n- `Text`\n- `TextField`\n- `TreeView`\n- `TreeViewArrow`\n- `Vector3dEditor`: Composed of 3 DoubleSpinBox and uses a `QVector3D` as value.\n\n### Utils\n\n- `AnimationUtils`: Allows to start an animation on a property.\n- `BindingUtils`: Allows to change a value without breaking existing bindings.\n- `ButtonShape` : Generic shape for buttons.\n- `EventLoopUtils`: Allows to schedule a task.\n- `FocusBorder` : Animated keyboard focus indicator.\n- `GeometryUtils`: Various computations of item sizes.\n- `InputShape` : Generic shape for text input fields.\n- `MenuUtils`: Utilities to handle menus in QML.\n- `Platform`: Get current OS from QML.\n- `QtObject2`: QtObject that allows nesting of other QtObjects.\n- `ScrollUtils`: Utilities to handle ScrollView behaviors.\n- `SvgIcon`: Same as SvgImage but allows to change the overlay color.\n- `SvgImage`: An image that takes source from a SVG file and scales correctly.\n- `Tooltip`: Animated tooltip.\n\n## Author\n\nOlivier Cléro | [email](mailto:oclero@pm.me) | [website](https://www.olivierclero.com)\n\n## License\n\n**Luna** is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foclero%2Fluna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foclero%2Fluna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foclero%2Fluna/lists"}