Forum Replies Created
-
AuthorPosts
-
@Mark Sibly
Oh snap, you fixed the close button margin problem?!
I should have read that before I sent you the mail then heh.@nerobot Thanks!
I want to hide the Toolbar and then little toolbar in the code document that has the Comment and Uncommet buttons.Yep, you did it Mark!
Looks great now, and finally I can have the IDE colours I want heh.
Thanks for the quick fix.Update: Oh didn’t see your second post.
I’ve still got the old version though and that last example you posted looks fine even on that one.

Thanks Mark, you da man!
I’m on Windows 10.
Ati/AMD card (r390x)
I updated my GPU drivers, uninstalled every program that might interfere with my colours (like f.lux), but sofar nothing’s solved it.I first noticed the problem when trying to make a Theme for Ted2Go and all the colours ending up wrong.
So I’ve been whining over at the Ted2Go thread heh.It certainly does not.

Looks great in Emscripten though!
It seems the error isn’t specifically linked to the IDE!
I’ve been experimenting and it looks like ALL my colours in Monkey 2 are wrong.Here I’m drawing 3 rectangles, the 2 at the top should be blue-ish but are green when drawn.
The bottom one should be very different from the 2 at the top, but they look exactly the same when I draw them.Monkey1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859#Import "<std>"#Import "<mojo>"Using std..Using mojo..Class MyWindow Extends WindowMethod OnRender( canvas:Canvas ) Override'Blue via HEXcanvas.Color=GetHexColor("#282C34")canvas.DrawRect(0,0,256,256)'Blue via RGBcanvas.Color=New Color(40.0/255.0,44.0/255.0,52.0/255.0)canvas.DrawRect(256,0,256,256)'Green via HEXcanvas.Color=GetHexColor("#223333")canvas.DrawRect(0,256,256,256)EndEndFunction Main()New AppInstanceNew MyWindowApp.Run()End'Taken from Mojo's theme loaderFunction GetHexColor:Color(str:String)Local a:=1.0,r:=0.0,g:=0.0,b:=0.0If str.StartsWith("#")If str.Length=4 '#RGBr=StringToULong( str.Slice( 1,2 ),16 )/15.0g=StringToULong( str.Slice( 2,3 ),16 )/15.0b=StringToULong( str.Slice( 3,4 ),16 )/15.0Else If str.Length=5 '#ARGBa=StringToULong( str.Slice( 1,2 ),16 )/15.0r=StringToULong( str.Slice( 2,3 ),16 )/15.0g=StringToULong( str.Slice( 3,4 ),16 )/15.0b=StringToULong( str.Slice( 4,5 ),16 )/15.0Else If str.Length=7 '#RRGGBBr=StringToULong( str.Slice( 1,3 ),16 )/255.0g=StringToULong( str.Slice( 3,5 ),16 )/255.0b=StringToULong( str.Slice( 5,7 ),16 )/255.0Else If str.Length=9 '#AARRGGBBa=StringToULong( str.Slice( 1,3 ),16 )/255.0r=StringToULong( str.Slice( 3,5 ),16 )/255.0g=StringToULong( str.Slice( 5,7 ),16 )/255.0b=StringToULong( str.Slice( 7,9 ),16 )/255.0ElseReturn Color.MagentaEndifElseReturn Color.MagentaEndifReturn New Color( r,g,b,a )End
That is for Windows.
But if I compile for Emscripten the result is correct!

I’ve started a separate thread for this, hoping Mark will see it!
On another note, is there any way to increase the distance between lines in the text view gadget?I tried the “dev” branch of both Monkey 2 and Ted2Go now and the colour is STILL wrong. :/
I’ve built Monkey 2 from the master branch and Ted2Go from the master branch and applied your theme.
The colour is still wrong.
Another annoying this is that if I try to move the Tab Close button using Margin or Padding, you can still click on the original position of the close button.
No 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.Yeah 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.

Fine, 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.

The 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.
That 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.

I’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? -
AuthorPosts