ci_edit icon indicating copy to clipboard operation
ci_edit copied to clipboard

Is there anyone who is working on "user customizable color scheme" ?

Open 0xPrateek opened this issue 6 years ago • 7 comments

Hello, I have looked up previous issues related to color schemes (#5, #15 ) but I think i have better color scheme implementation idea which will enhance the UI of the editor.

0xPrateek avatar Jun 01 '19 07:06 0xPrateek

Not that I'm aware of. It's an area that needs some attention.

Note: While looking at the code referenced below, you may start to wonder "how does this work?": the answer is that it doesn't. The current code is a mix of two versions of handling colors that haven't been cleaned up/fixed. What follows is a description of how it was intended to work, but doesn't currently work.

Code: The color scheme stuff is in ci_edit/app/default_prefs.py, roughly lines 100-300 and lines 1180-1220. (or search for 'color8 = ' and ' "palette":').

The (intended) way for a user to change the color scheme (to "dark" for example) is to edit "~/.ci_edit/prefs/editor.json" with text like:

{
        "colorScheme": "dark"
}

That is (or should, if it wasn't broken) be handled in ci_edit/app/ci_program.py within setUpPalette(self).

There's also an option to specify "~/.ci_edit/prefs/editor.json":

{
        "colorScheme": "custom"
}

and provide a custom palette in "~/.ci_edit/prefs/color_scheme.json".

dschuyler avatar Jun 03 '19 17:06 dschuyler

Would you like me to fix the current color design or are you thinking of reworking the code so much that fixing the existing code wouldn't help?

dschuyler avatar Jun 03 '19 17:06 dschuyler

Actually, I have thought a couple of ways to change the color scheme. You have explained the current color scheme implementation very well and now I can better think on my implementation method (Thanks.. :) )

  • How the user will be able to change the color scheme 1 - By using some shortcut keys; like we have ctrl+s for saving. we can also have some specific keys related to some default color scheme and thus the user can change the color scheme directly from the terminal just it will reload the editor once. 2- The second method is by creating a configuration file specifically for the custom color scheme which will be a script and it does what you said that it should do manually. we can choose either of the ways.. :+1:

0xPrateek avatar Jun 03 '19 19:06 0xPrateek

I just want to know that if that feature of changing the color scheme is not UP and you aren't working on it then can i work on to improve ci_edit?

0xPrateek avatar Jun 03 '19 19:06 0xPrateek

I'll assign this bug to you to show that you're working on it.

dschuyler avatar Jun 04 '19 16:06 dschuyler

Great ..!

0xPrateek avatar Jun 05 '19 07:06 0xPrateek

Any progress on this? I would love to have dark themes so that opening the editor in a dark-themed terminal would not be so jarring.

seasonedfish avatar Jan 10 '21 04:01 seasonedfish