Coder Social home page Coder Social logo

Dark Skin about unitymarkdownviewer HOT 11 CLOSED

gwaredd avatar gwaredd commented on July 28, 2024
Dark Skin

from unitymarkdownviewer.

Comments (11)

gwaredd avatar gwaredd commented on July 28, 2024

You can change the skin by editing Editor/Skin ...

from unitymarkdownviewer.

MostHated avatar MostHated commented on July 28, 2024

It would be super helpful if there was a dark skin included that could be selected, or detect the current Editor skin and apply it.

from unitymarkdownviewer.

gwaredd avatar gwaredd commented on July 28, 2024

It should be relatively easy, do you have a theme already?

from unitymarkdownviewer.

MostHated avatar MostHated commented on July 28, 2024

I do not. I tried to see if I could edit the one that was included, but for some reason, as soon as I click on the skin file my editor seems to come to nearly a complete halt and trying to click on anything within the skin file takes nearly 30 seconds to get a result. As soon as I click off/away from the skin file so that it is deselected, everything is fine again. Trying to simply locate and edit wherever I would need to, to simply change the background color became quite frustrating rather quickly.

It was a rather small project with no much going on to begin with, and I know it is not my pc as I have a R9 3950x with 64gb ram. I have not really dealt with skin files much in the past, though, so I am not sure if this is a common occurrence?

I don't know if they are setup specifically per application/useage to where I could try and locate one from some other project and use it, but considering now that the Unity editor comes with a dark theme enabled by default, (the super bright white backgound really hits you in the eyes if you are not expecting it, lol) it would be great if one were included and enabled by default.

from unitymarkdownviewer.

gwaredd avatar gwaredd commented on July 28, 2024

I'll have to "roadmap" this feature until I have a bit more time ...

from unitymarkdownviewer.

MostHated avatar MostHated commented on July 28, 2024

Hey there,
I just saw the update with the dark skin, looks so much nicer, so thanks for that. One thing I noticed as soon as I opened it up though and clicked on the README.md was this:

The text seems to be overlapping the above header? I will try it out in a fresh project though to make sure it's not something on my end.


Edit

Looks like it might be on my end, I tried it on a fresh 2020.1 project, the prior was 2019.4.x, and it seems like the overlap is good in this one, but the actual size of the view area is restricted.

from unitymarkdownviewer.

gwaredd avatar gwaredd commented on July 28, 2024

Checked in an update, see if that helps

from unitymarkdownviewer.

MostHated avatar MostHated commented on July 28, 2024

Hmmm.. I did a pull and saw the changes, deleted it from both the 2019.4 and 2020.1 projects and copied it in fresh, but had the same result in both. Just to be sure, I deleted it entirely, recloned it, tried again, still the same for some reason, where the view is only about 1/3 of the overall inspector panel. It looks great otherwise, at least. 👍 lol

from unitymarkdownviewer.

Theadd avatar Theadd commented on July 28, 2024

#4 (comment)

the view is only about 1/3 of the overall inspector panel.

// fix for Screen.height
var offset = 450.0f;
var scale = 2.0f;

It's more of a patch than a fix but changing the lines above to the following ones provides a better view

            // fix for Screen.height
            var offset = 0.0f;
            var scale  = 1.6f;

from unitymarkdownviewer.

MostHated avatar MostHated commented on July 28, 2024

Ok, nice. I was able to get it looking solid with the following by changing offset to be an additional amount instead of subtracting:

// fix for Screen.height
var offset = 300.0f;
var scale  = 1.6f;

// calculate working space
if( Event.current.type == EventType.Layout )
{
    mHeight = ( Screen.height + offset ) / scale;
}

Not sure if that might end up causing other issues elsewhere, but at least with just checking around a little, it seems to be solid like that.

from unitymarkdownviewer.

gwaredd avatar gwaredd commented on July 28, 2024

I see the issue here. As far as I can tell, the MarkdownViewer.Draw() code is a pile of nonsense! ;)

from unitymarkdownviewer.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.