kmwallio / ThiefMD

The markdown editor worth stealing. Inspired by Ulysses, based on code from Quilter
https://thiefmd.com/
GNU General Public License v3.0
150 stars 8 forks source link

Suggestion: Customize info displayed in the sheets side panel? #96

Closed davidbosman closed 3 years ago

davidbosman commented 3 years ago

When you have multiple sheets in a directory/project and if those sheets don't all use a Markdown title tag as their first line (titles appears in bold in the preview), it can be hard to quickly see where the preview of one sheet ends and where the preview of the next one begins.

Have you considered adding some visual clue to mark the separation between sheets? What I can think of:

Also, the preview is cool to have, but it can also be useful to be able to hide it, ie in a project with many sheets where one may prefer to see more sheets title than their previews, without having to scroll down. Is that an option you would consider adding? Something like a "Show/hide preview", or even an option to set the number of lines in the preview?

Thx, & thx again (from an ex-Ulysses longtime user) for ThiefMD. I just started using it a few days ago but it feels great (drafting my next book in it) ;)

kmwallio commented 3 years ago

Sorry for not replying yet. Still trying to think this through. I do agree the default visual has some accessibility issues:

Default Sheets View

Line separation is available if you toggle "Apply Theme to Interface" in the preferences, but depending on the GTK theme used, it can cause some accessibility issues.

Theme applied to Sheets View

I'm still experimenting with options, but for now I can add a button for "Always show border"

Always show Sheets Border

and use the default OS theme for showing the border.

I'm thinking of adding Always Show File Name / Disable Preview (only show titles), and figuring out font settings based on the font size for the editor.

Some long term goals are for managed projects where filename is hidden/not a concern, so I'm not sure if "Always show file name" will cause future confusion.

kmwallio commented 3 years ago

@davidbosman, is this visible enough?

Light Theme with Gtk.Separator

This is the default Gtk.Separator, on a Dark Theme, it's almost invisible.

Dark Theme with Gtk.Separator

davidbosman commented 3 years ago

@kmwallio I can only talk about the dark one 'cause I just can't see stuff over a light background: the line is not visible to me. I guess adding some bottom/top padding between each sheet could help then? Or if it is at all possible, have an alternate background shade from one to the other?

Edit: Or like you said earlier, an option to always show boder — maybe with an option for selecting a color if that is not too much work?

kmwallio commented 3 years ago

@davidbosman, I figured out how to grab the font color for the border :smile: . I'm hoping to have the border always enabled. Please let me know if the border opacity is dark enough to see it. I have it set to blend with the background color, so I can make it pop more if needed.

Dark Theme

Light Theme

davidbosman commented 3 years ago

Looks really fine to me. I don't think most users would fancy a more contrasted color for that border (making it too visible)?

kmwallio commented 3 years ago

Looks really fine to me.

Thanks for letting me know!

I don't think most users would fancy a more contrasted color for that border (making it too visible)?

I think most users want the borders to match their GTK Theme's colors. I don't want to provide too many customization options, but if it improves accessibility, I can look into allowing the user to choose a border color (or change the intensity).

kmwallio commented 3 years ago

Borders have been published in the latest release.

Something like a "Show/hide preview", or even an option to set the number of lines in the preview?

I think I can add a drop-down somewhere for "No Preview / 1 Line / ... / 10 Lines"

davidbosman commented 3 years ago

Waiting for the AUR to be updated to get my hands on it (yep, I am that lazzy :p)\

Edit: It was updated just now, AUR is trully amazing. And so are the new borders: thx a lot, I know I do not represent that many users but this is really great ;)