Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaustubhpatange/compose-color

A plugin for Intellij based IDEs to draw rectangle on the editor's gutter denoting the color represented by androidx.compose.ui.graphics.Color.
https://github.com/kaustubhpatange/compose-color

android android-studio-plugin intellij-plugin jetpack-compose kotlin

Last synced: 3 months ago
JSON representation

A plugin for Intellij based IDEs to draw rectangle on the editor's gutter denoting the color represented by androidx.compose.ui.graphics.Color.

Awesome Lists containing this project

README

        

# Highlight Colors for Compose

![Build](https://github.com/KaustubhPatange/compose-color-plugin/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/com.github.kaustubhpatange.composecolor.svg)](https://plugins.jetbrains.com/plugin/15439-highlight-colors-for-compose)

**Android Studio Arctic Fox Canary 7 has this functionality built-in!**

A plugin for **Intellij** based IDEs to draw rectangle on the editor's gutter denoting the color represented by `androidx.compose.ui.graphics.Color`

Clicking on the color icon from the gutter will open a color picker dialog to modify the color.

Only the properties satisfying the following pattern will be highlighted:

```kotlin
$modifier $name = Color($int)
```

```diff
- Color(0XFF000000) // Not supported
+ val black = Color(0XFF000000)
```

<>

<>

## Installation

- Using IDE built-in plugin system:

Preferences > Plugins > Marketplace > Search for "Highlight Colors for Compose" >
Install Plugin

- Manually:

Download the [latest release](https://github.com/KaustubhPatange/compose-color/releases/latest) and install it manually using
Preferences > Plugins > ⚙️ > Install plugin from disk...

## License

- [The Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)

```
Copyright 2020 Kaustubh Patange

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```