{"id":17724777,"url":"https://github.com/jibsen/tmcolorconv","last_synced_at":"2025-03-14T05:32:07.987Z","repository":{"id":20193839,"uuid":"23465008","full_name":"jibsen/tmcolorconv","owner":"jibsen","description":"Convert tmTheme to sRGB color space","archived":false,"fork":false,"pushed_at":"2018-12-11T07:27:09.000Z","size":255,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-10-20T20:45:55.103Z","etag":null,"topics":["conversion","python3","srgb","textmate","theme"],"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/jibsen.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":"2014-08-29T13:34:40.000Z","updated_at":"2022-09-21T11:23:46.000Z","dependencies_parsed_at":"2022-08-02T10:38:40.040Z","dependency_job_id":null,"html_url":"https://github.com/jibsen/tmcolorconv","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jibsen%2Ftmcolorconv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jibsen%2Ftmcolorconv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jibsen%2Ftmcolorconv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jibsen%2Ftmcolorconv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jibsen","download_url":"https://codeload.github.com/jibsen/tmcolorconv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532517,"owners_count":20306151,"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":["conversion","python3","srgb","textmate","theme"],"created_at":"2024-10-25T15:48:44.514Z","updated_at":"2025-03-14T05:32:07.532Z","avatar_url":"https://github.com/jibsen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\ntmTheme Color Convert\n=====================\n\nMany [TextMate](http://macromates.com/) color themes were designed on Mac\nOS X, which used the Generic RGB color profile and a gamma of 1.8 by default.\nThis results in the colors being darker if used directly on Windows.\n\nFor portability and compatibility with other editors and operating systems,\nit is better to use sRGB.\n\nThis script will convert the color values in a tmTheme file from Generic RGB\nto sRGB, optionally applying simple alpha blending with the foreground and\nbackground colors (for TextMate 2 themes before [this change][blend]).\n\nI wrote this while working on a [blog post][post] about the effects of color\nmanagement on themes in text editors.\n\n[post]: http://hardtoc.com/2014/09/03/not-quite-monokai.html\n[blend]: https://github.com/textmate/textmate/commit/8e1aa09\n\n\nUsage\n-----\n\nThe scripts are written for Python 3.\n\n`tmcolorconv.py` takes a tmTheme file and converts the color values from\nGeneric RGB to sRGB. A gamma value to be used for the original file can be\nsupplied, and optionally colors with alpha values can be blended with\nforeground/background color instead of copied.\n\n    usage: tmcolorconv.py [-h] [-g GAMMA] [-b] infile outfile\n\n    Convert Generic RGB to sRGB.\n\n    positional arguments:\n      infile                input tmTheme file\n      outfile               output tmTheme file\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -g GAMMA, --gamma GAMMA\n                            input gamma (default 1.8)\n      -b                    blend alpha\n\n`mkconvmatrix.py` is a playground for working with color space conversions. It\nwas used to compute the `GenericRGBtosRGB` matrix used in `tmcolorconv.py`.\n\n\nExamples\n--------\n\nThese screenshots show the themes from the examples folder in\n[Sublime Text 3][Sublime] on Windows.\n\nOriginal and sRGB version of [Monokai][]:\n\n![Monokai](examples/monokai_compare.png)\n\nOriginal and sRGB version of [Railscasts][]:\n\n![Railscasts](examples/railscasts_compare.png)\n\nOriginal and sRGB version of [Tomorrow Night][Tomorrow]:\n\n![Tomorrow Night](examples/tomorrow_compare.png)\n\nOriginal and sRGB version of [Twilight][]:\n\n![Twilight](examples/twilight_compare.png)\n\n[Sublime]: http://www.sublimetext.com/\n[Monokai]: http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/\n[Railscasts]: http://railscasts.com/about\n[Tomorrow]: https://github.com/chriskempson/tomorrow-theme\n[Twilight]: https://github.com/textmate/themes.tmbundle\n\n\nLicense\n-------\n\nThis projected is licensed under the terms of the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjibsen%2Ftmcolorconv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjibsen%2Ftmcolorconv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjibsen%2Ftmcolorconv/lists"}