{"id":17984435,"url":"https://github.com/ztrap/compose-color-preview-plugin","last_synced_at":"2025-03-25T20:32:10.860Z","repository":{"id":144525551,"uuid":"616998472","full_name":"zTrap/compose-color-preview-plugin","owner":"zTrap","description":"Compose color preview plugin for JetBrains IDE family","archived":false,"fork":false,"pushed_at":"2024-04-11T08:50:59.000Z","size":634,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-12T00:45:37.869Z","etag":null,"topics":["color-preview","compose-desktop","compose-multiplatform","gutter-icons","intellij-plugin","ui"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/zTrap.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2023-03-21T13:58:46.000Z","updated_at":"2024-04-15T09:04:02.511Z","dependencies_parsed_at":"2024-04-15T09:04:00.941Z","dependency_job_id":"2ff59b9b-8045-4b7f-a15c-c254f70dd566","html_url":"https://github.com/zTrap/compose-color-preview-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fcompose-color-preview-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fcompose-color-preview-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fcompose-color-preview-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fcompose-color-preview-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zTrap","download_url":"https://codeload.github.com/zTrap/compose-color-preview-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222090821,"owners_count":16929472,"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":["color-preview","compose-desktop","compose-multiplatform","gutter-icons","intellij-plugin","ui"],"created_at":"2024-10-29T18:21:22.800Z","updated_at":"2025-03-25T20:32:10.827Z","avatar_url":"https://github.com/zTrap.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Plugin version](https://img.shields.io/jetbrains/plugin/v/21298-compose-color-preview)](https://plugins.jetbrains.com/plugin/21298-compose-color-preview)\n\n# ![Preview](plugin/src/main/resources/META-INF/pluginIcon.svg) Compose color preview plugin for JetBrains IDE family\n\nThis plugin draws colors in the editor gutter and the code completion popup. You can modify them by clicking on the icons in the gutter\n\nIt works with the `androidx.compose.ui.graphics.Color` from\n[Jetpack Compose](https://developer.android.com/develop/ui/compose) or\n[Compose Multiplatform](https://www.jetbrains.com/lp/compose-multiplatform)\n\n## Features\n\n- [x] Shows preview in the code completion popup for simple constant fields\n- [x] Shows preview in places simple constant fields usage with type `Color`\n- [x] Shows preview for results of `compositeOver`, `copy`, `convert` and `lerp` functions\n- [x] Shows preview in the `Color` creation places\n    - [x] ULong constructor\n    - [x] Long \"constructor\" function\n    - [x] Int \"constructor\" function\n    - [x] Int x3 \"constructor\" function\n    - [x] Float x3 \"constructor\" function\n    - [x] Float x3 with color scheme \"constructor\" function\n    - [x] Float x4 \"constructor\" function\n    - [x] Float x4 with color scheme \"constructor\" function\n    - [x] hsl \"constructor\" function\n    - [x] hsv \"constructor\" function\n- [x] Shows palette by clicking on the icon to change color\n    - [x] Change color with saving the original numeral system\n\n![Preview1](./.github/preview1.png)\n![Preview2](./.github/preview2.png)\n\n## Installation\n\nInstall it from the Jetbrains plugin repository within your IDE (**recommended**):\n\n- \u003ckbd\u003eSettings/Preferences\u003c/kbd\u003e \u003e \u003ckbd\u003ePlugins\u003c/kbd\u003e \u003e \u003ckbd\u003eMarketplace\u003c/kbd\u003e \u003e \u003ckbd\u003eSearch 'Compose Color\n  Preview'\u003c/kbd\u003e\n\nYou can also download the JAR package from\nthe [Jetbrains plugin repository](https://plugins.jetbrains.com/plugin/21298-compose-color-preview) or\nfrom [GitHub Releases](https://github.com/zTrap/compose-color-preview-plugin/releases) and add it manually to your\nplugins:\n\n- \u003ckbd\u003eSettings/Preferences\u003c/kbd\u003e \u003e \u003ckbd\u003ePlugins\u003c/kbd\u003e \u003e \u003ckbd\u003e⚙️\u003c/kbd\u003e \u003e \u003ckbd\u003eInstall plugin from disk...\u003c/kbd\u003e\n\n## FAQ\n\n\u003cdetails\u003e\n  \u003csummary\u003eI have a duplicate preview in the color declaration line in Android Studio. How to fix it?\u003c/summary\u003e\n  \u003cbr/\u003e\n  You can simply disable one of the previews. \n  Go to \u003ckbd\u003eSettings/Preferences\u003c/kbd\u003e \u003e \u003ckbd\u003eEditor\u003c/kbd\u003e \u003e \u003ckbd\u003eGeneral\u003c/kbd\u003e \u003e \u003ckbd\u003eGutter Icons\u003c/kbd\u003e and disable \n  \"Compose color picker\" from \"Jetpack compose\" section or \"Color chooser\" from \"Compose Color Preview\" section\n\u003c/details\u003e\n\u003cbr/\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cs\u003eStarting from IDEA 2024.1 colors list order in popup is reversed. Can you fix it?\u003c/s\u003e \u003cb\u003eFixed in IDEA 2024.2\u003c/b\u003e\u003c/summary\u003e\n  \u003cbr/\u003e\n  Unfortunately, no. It's Intellij IDEA Platform bug and \u003ca href=\"https://youtrack.jetbrains.com/issue/IJPL-26348/Reversed-items-order-in-line-markers-popup\"\u003ethe issue\u003c/a\u003e \n  is created. So we can only wait for a fix from JetBrains\n  \u003cbr/\u003e\n\u003c/details\u003e\n\u003cbr/\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eHex in color picker have wrong pattern. Can you fix it?\u003c/summary\u003e\n  \u003cbr/\u003e\n  Yes, but it requires a complete rewrite of the color picker popup which is not what I want to do. \n  The request for this feature has been \u003ca href=\"https://youtrack.jetbrains.com/issue/IJPL-148574/Provide-the-ability-to-configure-the-hex-pattern-for-the-color-picker-in-gutter\"\u003esubmitted\u003c/a\u003e to JetBrains, and we need to wait for a reaction\n\u003c/details\u003e\n\n## Contribution\n\nContributions are welcome. Please check [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.\n\nBesides source code contributions, feel free to open bug reports or just suggest new\nfeatures [here](https://github.com/zTrap/compose-color-preview-plugin/issues).\n\n## License\n\n- [The Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n\n```\nCopyright 2023-2024 Peter Gulko (zTrap)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztrap%2Fcompose-color-preview-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztrap%2Fcompose-color-preview-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztrap%2Fcompose-color-preview-plugin/lists"}