{"id":18623039,"url":"https://github.com/msasikanth/colorsheet","last_synced_at":"2025-08-21T20:33:04.207Z","repository":{"id":76944787,"uuid":"179653401","full_name":"msasikanth/ColorSheet","owner":"msasikanth","description":"A color picker bottom sheet 🌈","archived":false,"fork":false,"pushed_at":"2020-04-13T13:16:45.000Z","size":341,"stargazers_count":209,"open_issues_count":1,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-08T19:20:54.666Z","etag":null,"topics":["android","color-picker","material-design"],"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/msasikanth.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":"2019-04-05T09:21:50.000Z","updated_at":"2024-10-01T06:24:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6178fd74-9f9c-4e00-b23f-7330b36e225c","html_url":"https://github.com/msasikanth/ColorSheet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2FColorSheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2FColorSheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2FColorSheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msasikanth%2FColorSheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msasikanth","download_url":"https://codeload.github.com/msasikanth/ColorSheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230532448,"owners_count":18240792,"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":["android","color-picker","material-design"],"created_at":"2024-11-07T04:20:42.560Z","updated_at":"2024-12-20T04:07:57.508Z","avatar_url":"https://github.com/msasikanth.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorSheet\nA color picker bottom sheet\n\n[ ![Download](https://api.bintray.com/packages/sasikanthmiriyampalli/maven/color-sheet/images/download.svg?version=1.0.0) ](https://bintray.com/sasikanthmiriyampalli/maven/color-sheet/1.0.0/link)\n\n```\nimplementation \"dev.sasikanth:colorsheet:1.0.1\"\n```\n\n## Usage\n**Default color sheet, it will show grid of colors**\n\n\u003cimg width=\"300\" alt=\"portfolio_view\" src=\"./art/color_sheet.png\"\u003e\n\u003cbr\u003e\n\n```\nColorSheet().colorPicker(\n    colors = colors,\n    listener = { color -\u003e\n        // Handle color\n    })\n    .show(supportFragmentManager)\n```\n\n---\n\n**Color sheet with \"no color\" option**\n\n\u003cimg width=\"300\" alt=\"portfolio_view\" src=\"./art/color_sheet_no_color.png\"\u003e\n\u003cbr\u003e\n\n```\nColorSheet().colorPicker(\n    colors = colors,\n    noColorOption = true,\n    listener = { color -\u003e\n        // Handle color\n    })\n    .show(supportFragmentManager)\n```\nWith this you will get a no color option at start, when user selects this it will return **ColorSheet.NO_COLOR**.\n\n- - - -\n\nTo mark the color as selected in color sheet, specify selectedColor in colorPicker\n\n```\nColorSheet().colorPicker(\n    colors = colors,\n    selectedColor = color,\n    listener = { color -\u003e\n        // Handle color\n    })\n    .show(supportFragmentManager)\n```\n\n- - - -\n### Misc\n**Corner radius**\nDefault corner radius is 4dp. You can set your own corner radius like this\n```\nColorSheet().cornerRadius(radius)\n```\n\n**Color to Hex string**\n```\nColorSheetUtils.colorToHex(color)\n```\n\n**Sheet title textAppearance**\n```\n    \u003cstyle name=\"AppTheme\" parent=\"Theme.MaterialComponents\"\u003e\n        \u003citem name=\"colorSheetTitleFont\"\u003e@font/font\u003c/item\u003e\n        \u003citem name=\"colorSheetTitleLineHeightHint\"\u003e@dimen/line_height_hint\u003c/item\u003e // in sp\n        \u003citem name=\"colorSheetTitleLetterSpacing\"\u003e0\u003c/item\u003e\n    \u003c/style\u003e\n```\n\n### License\n\n```\nCopyright 2019 Sasikanth Miriyampalli\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   http://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```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsasikanth%2Fcolorsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsasikanth%2Fcolorsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsasikanth%2Fcolorsheet/lists"}