{"id":15056079,"url":"https://github.com/anivie/elementfx","last_synced_at":"2025-10-28T07:07:26.059Z","repository":{"id":41399333,"uuid":"500668170","full_name":"Anivie/ElementFX","owner":"Anivie","description":"ElementUi in javafx,that you can get a beautiful applications with only one line code.","archived":false,"fork":false,"pushed_at":"2022-12-02T13:44:33.000Z","size":747,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"element","last_synced_at":"2025-05-29T18:57:03.446Z","etag":null,"topics":["java","javafx","javafx-components","javafx-gui","javafx-library","kotlin"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anivie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-07T02:54:31.000Z","updated_at":"2024-12-07T14:08:16.000Z","dependencies_parsed_at":"2023-01-22T13:05:12.338Z","dependency_job_id":null,"html_url":"https://github.com/Anivie/ElementFX","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Anivie/ElementFX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2FElementFX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2FElementFX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2FElementFX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2FElementFX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anivie","download_url":"https://codeload.github.com/Anivie/ElementFX/tar.gz/refs/heads/element","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anivie%2FElementFX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281397993,"owners_count":26494062,"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-10-28T02:00:06.022Z","response_time":60,"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":["java","javafx","javafx-components","javafx-gui","javafx-library","kotlin"],"created_at":"2024-09-24T21:47:57.068Z","updated_at":"2025-10-28T07:07:26.029Z","avatar_url":"https://github.com/Anivie.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElementFX\n\nElementUi in javafx,that you can get a beautiful applications with only one line code.  \nJavaFX版本的ElementUi，您可以仅需一行代码而轻松美化您的JavaFX应用\n\n### Usage:\n\nFor Java:\n```\n        Button button = new Button();\n        ElementButtonKt.theme(button, ElementButton.grayButton);\n        \n        Scene scene = new Scene(root);\n        scene.getStylesheets().add(CssResources.globalCssFile);\n        scene.getStylesheets().add(CssResources.buttonCssFile);//可选，用于每个组件可单独调整主题\n        \n        /*\n        or：\n        CssResourcesKt.themes(scene, (strings, cssResources) -\u003e {\n            strings.add(CssResources.globalCssFile);\n            strings.add(CssResources.buttonCssFile);\n            return null;\n        });\n        */\n        \n        primaryStage.setScene(scene);\n        primaryStage.setTitle(\"ElementForJavaFX\");\n        primaryStage.show();\n```\nFor Kotlin:\n```\n    primaryStage.run {\n        scene = Scene(root,400.0,400.0).apply {\n            themes {\n                this += it.globalCssFile\n                this += it.buttonCssFile//可选，用于每个组件可单独调整主题\n            }\n        }\n        title = \"ElementForJavaFX\"\n        show()\n    }\n```\n\n### Note:\n\n本项目尚未在仓库中发布，您可以自行在out/production/resources/cloud_css中找到您需要的css文件通过JavaFx的api自行引入  \n也可以在release中下载预览版本通过本地导入的方式引用  \n具体用法请查看demo\n\nThis project has not yet been released in the maven,but you can find the css file you need in out/production/resources/cloud_css and import it by JavaFx api.  \nYou can also download the preview version in the release and importing in locally way.  \nPlease refer to the demo for details.\n\n\n## 当前支持的组件(Supported nodes):\n\u003e + Button\n\u003e + TextField\n\u003e + ListView\n\u003e + TextArea\n\u003e + Label\n\u003e + ComboBox\n\u003e + CheckBox\n\u003e + ScrollPane\n\u003e + ScrollBar\n\u003e + DatePicker\n\u003e + TableView\n\u003e + Spinner\n\u003e + TabPane\n\u003e + Pagination\n\u003e + ContextMenu\n\u003e + Slider\n\u003e + ProgressBar\n\u003e + TreeView\n\n#### 示例效果：\n![Screen](screenshot/screen_1.0.png)  \nDemo path is : src/test/kotlin/testapp/Demo.kt\n\n\n### todo:\n为每个组件单独调整主题。  \nChange themes individually for nodes.\n```\n        val regButton = Button(\"Register\").apply {\n            theme(ElementButton.orangeButton)\n        }\n```\n\u003cfont color=\"red\" size=\"4px\"\u003eNOTE:当前仅支持TextField和Button\u003c/font\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanivie%2Felementfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanivie%2Felementfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanivie%2Felementfx/lists"}