About Monkey 2 › Forums › Monkey 2 Projects › Ted2Go IDE
This topic contains 596 replies, has 46 voices, and was last updated by 
 nerobot 3 months ago.
- 
		AuthorPosts
 - 
		
			
				
November 14, 2016 at 5:07 pm #5025
Thanks!:)
I agree icons need to be replaced with more consistent ones. All of them not only toolbar.
And thanks for the links.
November 15, 2016 at 12:43 am #5040I’m trying to setup my own theme for Ted2.
But the colours seem to be a bit off?
I want the background (content) to be #282C34 but if I set it to that it always turns out as #223333 in Ted2.
To the left is the colour I want, to the right is the way it ends up in Ted2.
Does it have to be websafe colours or something?November 15, 2016 at 8:51 am #5053All you need is
- Do work inside of ‘monkey2/bin/ted2_windows/assets/themes/ – if you want to only add theme.
 - Copy any existing theme into new file.
 - Add style for TextView inside it.
 - Add your style info into themes.json to see it inside of ted2.
 
Below is resulting style with changed bgColor.
Monkey123456789101112131415161718192021222324252627282930313233343536373839{"extends":"ted2-default","colors":{"clear": "#181818","gutter": "#262626","content": "#323232","panel": "#4c4c4c","knob": "#666666","hover": "#888888","active" : "#989898","text-default": "#fff","text-highlight": "#ff0","text-disabled": "#888","text-background": "#888","textview-cursor":"#08f","textview-selection":"#888","textview-color0":"#0000","textview-color1":"#fff","textview-color2":"#ff0","textview-color3":"#0f8","textview-color4":"#0f8","textview-color5":"#0ff","textview-color6":"#fc0","textview-color7":"#fff"},"styles":{"TextView":{"backgroundColor":"#282C34"}}}November 15, 2016 at 11:37 am #5062In my opinion The above is everything wrong with themes! There. I’ve said it!
22 colors, most not human readable/understandable – what does textview-color0 do? anyone?
Don’t get me started on using a readable scheme that allows for ANY text, no checking, no help, no advice about any of the settings. This is everything a bad program should be.
</rant mode off>
Now. here is how it should be done:
- internally it can be anything in any form.
 - externally, if it is color related then it should be done with colors
 - there should be some form of internal color base to work from. saying SetRGB( xxx,yyy,xxdx,ggg) is not a solution, it is a hinderance. How about an actual color picker that is directly linked to the internal base color system?
 - If it is changing UI, then present the UI. And then SHOW what the result would be. that would mean coding a proper GUI to handle all of this with inbuilt global color systems
 
OK, below is at least a good example of an editor with a user editable color scheme, and also a demo color picker.
Lastly. I have all the code for internal color pickers, and a lot more if you would like this to be folded into ted2go?
November 15, 2016 at 2:51 pm #5070That still doesn’t work.
content is now #282C34 and TextView backgroundColor is also #282C34 but that colour isn’t actually displayed anywhere in the editor.
November 15, 2016 at 3:06 pm #5071I agree – themes system is not ideal, but not bad at all.:)
what does textview-color0 do? anyone?
these are colors for code highlighting:
Monkey12345678Const COLOR_NONE:=0Const COLOR_IDENT:=1Const COLOR_KEYWORD:=2Const COLOR_STRING:=3Const COLOR_NUMBER:=4Const COLOR_COMMENT:=5Const COLOR_PREPROC:=6Const COLOR_OTHER:=7How about an actual color picker that is directly linked to the internal base color system?
Yes, I have it in todo – “create preferences dialog”. And colors picker will be there.
Lastly. I have all the code for internal color pickers, and a lot more if you would like this to be folded into ted2go?
Not for now, but I want to see your code and maybe get some parts of code. Samples looked nice!
November 15, 2016 at 3:12 pm #5072November 15, 2016 at 3:42 pm #5073The theme works, I’ve made one called theme-hezkore.json
I’ve changed the font, font size, icons and most of the colours, but most of the colours are not correct.
It’s easy to test, just make a new theme and apply this test:Monkey1234567891011121314151617{"extends":"ted2-default","colors":{"clear": "#282C34","gutter": "#282C34","content": "#282C34","panel": "#282C34"},"styles":{"TextView":{"backgroundColor":"#282C34"}}}This is how the editor then looks:

And that is colour #223333 not #282C34 as the theme says it should be.
November 15, 2016 at 4:00 pm #5074Try to use all colors from other theme and modify only what you want.
There is no TextView on the screenshot . To see it you should open any code file.
November 15, 2016 at 4:19 pm #5075Fine, here’s the same theme with code.
Still the wrong colour.
The IDE loads the colours incorrectly, becaues that is NOT #282C34, it’s colour #223333 which I have not used anywhere.
November 15, 2016 at 4:34 pm #5076I tried and got properly result. Hm.
Don’t know.. but did you select your theme in ‘menu — view — themes’?
How it’s possible…
Did you try to copy/paste whole my first style example?
November 15, 2016 at 4:41 pm #5077Yeah here’s a gif showing that the colours ARE applied (Red)
But when I apply #282C34 it turns out green when it should be blue.
November 15, 2016 at 4:42 pm #5078Been working with ted2go more today. A suggestion:
Can auto complete lists be sorted by a combination of casing, length and distance/popularity?
casing
If I type Item then the list should prioritise ItemBlah over itemBlahlength
If i type appl then the list should prioritise apple over AppleColordistance/usage (not as important as casing and length)
The list should try and sort by number popularity of keyword and also the closest recent usage of keyword. So for example if i define a Local variable, then autocomplete should favour this over variables further away in the file.November 16, 2016 at 12:59 am #5085November 16, 2016 at 1:13 am #5086No you can still apply it (as you can clearly see in my GIF!) via selecting the same theme again.
The red colour works, but when I apply the blue colour it turns out green.
Theme colours are broken/bugged.
The problem is not that my theme doesn’t work, the problem is that colours I specify ends up the wrong colour in the IDE. - 
		AuthorPosts
 
You must be logged in to reply to this topic.
		
		
	
