Comments (11)
You can change the skin by editing Editor/Skin ...
from unitymarkdownviewer.
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.
It should be relatively easy, do you have a theme already?
from unitymarkdownviewer.
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.
I'll have to "roadmap" this feature until I have a bit more time ...
from unitymarkdownviewer.
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.
Checked in an update, see if that helps
from unitymarkdownviewer.
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.
from unitymarkdownviewer.
the view is only about 1/3 of the overall inspector panel.
UnityMarkdownViewer/Editor/Scripts/MarkdownViewer.cs
Lines 85 to 87 in 295c6b8
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.
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.
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)
- Not rendering on 2019.2 HOT 3
- This package is magic and I love it HOT 1
- Markdig version HOT 6
- Usage within a IMGUI Container HOT 2
- Unity Asset Store missing HOT 2
- Duplicating view HOT 7
- (BUG) Sometimes does not render document contents when selecting another text asset HOT 7
- Unnecessary debug logs in package HOT 2
- Performance issues for large documents HOT 2
- Bug: no way to set base URL for images etc. HOT 1
- Bold text looks bad HOT 2
- How to change font? HOT 5
- MkViewer as component HOT 2
- Animated GIF support HOT 3
- Update on Unity Asset Store HOT 4
- Render Markdown in TextMeshPro HOT 4
- UnityWebRequest.isHttpError' is obsolete: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unitymarkdownviewer.