Comments (12)
Sorry for the late update guys. I've decided to have a toggle able setting to shut off certain animations added by the theme. I'm planning on releasing the update on Friday, so thanks for your patience. And hopefully this is a workable solution to the issue. Do share your thoughts with me if either of you have any ideas. Thanks!
from yin-and-yang-theme.
What the heck!? Yea, that looks SUPER annoying! I'm gonna try my best to update the theme today and see if we can sort this out.
from yin-and-yang-theme.
Hello! Apologies for the late response. I've just recently updated the theme and I've included some changes to icons in side pane (now using icon font instead of mask image), and also a setting to disable side pane animations. Please let me know how the update performs for you guys and keep me posted on any changes I should make. Thanks!
from yin-and-yang-theme.
Interesting. I don't seem to be getting this behavior at all, even with fast scrolling. Perhaps I'm missing something? Though, I do have a few things in mind that may be causing the issue, just from looking at your gif. I'll have to troubleshoot later today.
scrolling.mp4
from yin-and-yang-theme.
Yes its weird, i get it even with very small and slow scrolls
from yin-and-yang-theme.
I am noticing same behavior when using the theme together with the Sliding Panes plug-in (when > 5 (larger) notes are open at the same time). I noticed that the CSS transitions result in bad performance (macOS) (f.e. the "Workspace" part of the theme). Dropping those CSS transitions result in much better performance.
from yin-and-yang-theme.
I am noticing same behavior when using the theme together with the Sliding Panes plug-in (when > 5 (larger) notes are open at the same time). I noticed that the CSS transitions result in bad performance (macOS) (f.e. the "Workspace" part of the theme). Dropping those CSS transitions result in much better performance.
You just got rid of the transitions and it resulted in better scrolling performance? I guess I'm not understanding how that impacts scrolling. Did bad performance occur only with Sliding Panes on? (I don't use this plugin btw)
@usizu I'm assuming it occurs for you regardless of any plugin being toggled on/off. Is this correct?
from yin-and-yang-theme.
Yep I tried toggling them all off by enabling safe mode and reloading obsidian and the same behaviour persists
from yin-and-yang-theme.
Did bad performance occur only with Sliding Panes on
Correct.
from yin-and-yang-theme.
I was just testing out the 'california coast' theme and realised that I have the same scroll issue in that one too. Since it says Yin Yang was inspired by that one, maybe there is some common feature to both of them that is causing the scroll issues.
Also by subtracting code in chunks I managed to isolate the part that is causing the performance issues. It's on line 6178:
body:not(.no-svg-replace) .nav-file-title-content:before {
content: "☐";
font-family: sans-serif;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
By removing this the performance goes back to normal. It works even if you only remove the content: "☐";
part (which causes the icons to disappear), so it seems like its the icons themselves that are the issue.
Also tested that if I simply hide the left sidebar (or don't have the File Explorer or Tag Pane visible) then the problem goes away also. So something about those icons slows everything down enough that scrolling in main Editor/Preview panes affected. Scrolling in the icon panes is also slow, and also is normal if that code is removed.
from yin-and-yang-theme.
@usizu Ive already found this a while ago, and I went ahead and replaced the icons in file explorer with font instead of mask image. The issue seems to be using mask images, not necessarily icons (though icons in general will slow things down at least a bit). I believe it takes more to render the mask image, which is resulting in poor performance. There are other themes that also have icons, and in using them, they appear to have the same scrolling issue as Y&Y. I don’t think California Coast does this the same way I do though, I actually think mine was much more inefficient. But I’m still working on optimizing the font icons for mobile.
Also, there has already been a setting in Style Settings to remove file explorer icons, so no need for editing the css file itself.
There is also a setting to remove all custom icons completely. Every custom icon is a mask image, so this will surely increase scrolling performance.
from yin-and-yang-theme.
With the global remove custom icons setting it seems to perform normally again. Though it seems its still using mask image when the icons are on? (and it lags if I do leave them on). But am happy to just turn them off and have good performance.
from yin-and-yang-theme.
Related Issues (20)
- Plans to maintain for 0.16? HOT 1
- Inconsistencies between the Reading and Edit modes, and Broken "Style Setting" options
- Theme is now legacy HOT 14
- bug in obsidian v1.0.3 HOT 3
- Plugin for okular
- Checklist Weird Shadow
- seems like the theme is no longer available in Obsidian theme market, manually install also failed HOT 2
- Window title not displayed
- Changing the Bold and Italics Colors changed for PDF export causes editing mode issues.
- On macOS command+delete should not delete paragraph
- Some questions about theme modification~
- Headings not properly sized HOT 8
- Request to fix Obsidian Memos display error
- Can no longer resize text with mouse scroll HOT 1
- How do I change the width in Live Preview Mode? I already tried with Styles Settings and it didn't have changes HOT 4
- No Style Settings option for Base Font Color
- Yin and Yang broken in 0.15 popup windows
- White rectangles appears in the embedding boxes HOT 1
- Small indent in preview for highlighted code block HOT 1
- Inconsistencies between Preview Mode and Exporting a PDF HOT 2
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 yin-and-yang-theme.