Forum Replies Created
-
AuthorPosts
-
I 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?
Try 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.
I 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!
All 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"}}}Thanks!:)
I agree icons need to be replaced with more consistent ones. All of them not only toolbar.
And thanks for the links.
You should add your code into ted2 and recompile it.
Look inside of ted2document.monkey2. There is
Monkey1Class Ted2DocumentType Extends PluginAnd see how it works on existing docs: jsom/xml/monkey2-document.
In short, you have to register file extension you want to open with your custom viewer and then override method OnCreateView() – add here creation of your custom view, that will be added as new tab in editor.
- Yes. I will add reading of appArgs and we’ll can to open associated with ted2.exe files. Soon.
- No for now. Docs are based on HtmlView that don’t allow us to select text. So we should to open docs in our desktop browser.
I got the same problem on my notebook.
So I fixed that in ted2go – not pushed in repo yet, but soon.
There is new stuff:
* New parser – some cases became better, some worse (wip);
* Added new action by pressing F2 – goto declaration. Worked with global decls and with class members (wip);
* Fixed crash if we type inside of file with imports only (if there is no one decl);
* Changed items sorting order.Bright = saturated colors.:)
I surprised at quality of picture!
Wow, bright picture!
Nice topic.
In c# there is Task<T> class to wrap async results. When you call
Monkey1await myFuncAsync()keyword ‘await’ extract result ‘T’ type for you.
Also c# has functions Task.WaitAll() and Task.WaitAny().
WaitAll() easy to do with model discussed above. Like this
Monkey1234567Function AwaitAll<T>( futures:Future<T>[],callback:Void( results:T[] ) )Local results:=New T[features.Length]For Local i:=0 Until features.Lengthresults[i]=future.Get()NextIf callback Then callback( results )EndWaitAny – more difficult, need to subscribe on OnFinished event, that we should to add into Fiber execution section.
mx2 arrays are cpp arrays (because all mx-code translated to cpp before compiling), so they must be contiguous in memory, I think.
Thanks for explanation.
So it’s very easy to implement and will be done soon.
-
AuthorPosts