![]() As some person has thankfully unearthed (too lazy to find the issue r/n), searching depth-first and breadth-first through the full file tree based on arbitrary numbers is completely inefficient. Move all find-functions in the file tree from hash-based system (sounded great when I began this four years ago, but is actually stupid) towards finding nodes (files/folders) based on their path.This will enable to (a) show the main window immediately, filling the file tree iteratively, (b) make the app more snappy, (c) let me sleep at night because I know the algorithm works and doesn't suddenly break down Devise a patching mechanism that can apply changes to the file tree without ever sending this whole thing down an IPC.However, this can be overridden partially with themes (see for a full explanation the section on the CSS rewrite). By default, all styles will match the current platform in look and feel.An alternative would be to create a modal window on top of the main renderer and lock the window positions and sizes of both windows. Instead, we'll fall back to an earlier version of the guidelines for this, where we can actually use a separate Window. I'm not going to abandon the in-renderer modals just to reintroduce them for one platform. ![]() Windows UWP guidelines recommend in-window settings.Instead, use the GNOME interface guidelines and apply system colours where appropriate (retrieve them using the systemPreferences API) Do not support every single Linux flavour there is.See for the links to the corresponding guidelines the resources section below. So we have to have a few compromises to make. This, however, is pretty hard to do right, especially given the incredible amount of Linux window managers (Ubuntu, GNOME, XFCE, to only name the first three I remember), and the lack of unified design principles for Windows UIs (which Microsoft doesn't adhere to themselves many times). In order to silence those critics, but more importantly in order to give Zettlr's users a consistent look and feel, we need to adapt the application to the operating system interfaces that we find. After all, designing with already existing guidelines in mind is difficult, so many, including me, opt for a complete custom design which can then completely ignore any guidelines whatsoever. Many critics have lamented the lack of consistency across Electron applications, and I'm beginning to see why. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |