-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
second take on a centered-fluid layout #5800
Conversation
@Jermolene What do you think? |
Thanks @pmario. I'm not sure about extending the centralised theme. I made the centralised theme and the starlight themes very early on, more to demonstrate how to make themes than anything else. I think now that the functionality of the centralised theme should be built into the vanilla theme as a setting, at which point the centralised theme plugin would just consist of a configuration tiddler enabling that setting. With this PR, the duplication of the Vanilla ThemeTweaks page seems unfortunate. There are other situations where we have obscure near-duplicates of core tiddlers, and it's very hard to keep them up to date with one another. I understand the motivation for disabling settings that don't apply, but it seems a lot of complexity for only a small benefit – disabling input controls actually often confuses users because they can't always understand why they are not working. I also note that you use |
I initially did have the centralized setting be part of the vanilla theme. ... The problem is that "centralized", "Tight" and "Tight and Heavier" contain hardcoded changes that completely clash with the "Theme tweak" settings. |
I think the contrary is the case, if we add tooltips. ATM users can change the settings even if it isn't useful and doesn't work. They mess up the settings and completely leave the project and tell everyone that they will loose data if they use TiddlyWiki. See:
The setting he mentioned is easy (for me) to replicate but extremely hard to diagnose for others. To replicate it.
As you can see it's super easy to mess up the settings and nobody helps new users with those settings that are completely confusing on their own. ... These settings "just don't work" for newbie users! My desire is to fix it and disable settings that are not valid. ... I personally don't like "hidden settings" because if a setting is hidden and a new user visits the page, they don't see the setting. So they will never know that a setting, they may need in the future, even exist. ... On the other hand, if they see a disabled but visible setting they start to ask: What does it mean? Why is it disabled? ... IMO that's a 100 times more useful as a setting, they have never seen. To make "disabled params" more self-explaining, it will be possible to add a "disabled ... because layout is : xxxxxx" tooltip. |
As I wrote, I would be willing to fix the problems I see,
|
This possibility has been there since 9 years https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L376 I use it all the times. IMO good inline comments save 100 lines of extra docs for config tiddlers. |
From my point of view, how damaging for TiddlyWiki "hidden content" is, is best shown by the success of Dave Giffords projects. He did put "Backlinks" out of the tiddler info-area into the ViewTemplate. ... The reaction of the community should tell us everything. Nobody seemed to know, that this info has always been there, because we did hide it. |
We can't rely on tooltips because they are not supported on touch devices.
That's definitely a problem that we should fix, I'm just arguing that disabling these settings isn't the best way to do so.
I've no problem with improvements to Snow White/Vanilla, but I think the best way to approach this is via #4473, which you can see me experimenting with at https://twpub-tools.org/
As I say, we can't rely on tooltips, but even where they do work, there is little evidence that users actually read tooltips. |
May be "sidebar resizer" will fix the problem as a side-effect. Users should not need to mess with the hardcoded values. "Hope dies last" |
This PR will modify the core "Centralised Theme" and add a new options in the ControlPanel : Appearance : Theme Tweaks
You can play with it at: https://pmario.github.io/kitchensink/5800-centered-fluid-layout.html
(There is a little problem. If you change the theme, the Theme-Tweaks tab isn't updated. Needs some investigation)
If the option is selected, it will also "gray out" the metrics inputs, that are not active for this option.
It will also "gray out" unused options for "Fluid story, fixed sidebar"
These new options makes the Centralized theme much more flexible.
What's new
I needed to convert the settings into a theme, because the "Tight" and "Tight and Heavier" theme cause problems, since they hardcoded margins and paddings, which clashed with the centred setting.