giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.38k stars 461 forks source link

Style monospace text #47

Closed philogit closed 3 years ago

philogit commented 9 years ago

Currently, plain-text and monospace-styled text are difficult to distinguish from one another within Cherrytree. Would you consider adding a style to monospace-styled text so that either it either (1) has a grey background or (2) has a border around the text--as is typically found when styling monospace markup output?

Here is an example of what I'm suggesting: ctrl-c, ctrl-v, if...then

giuspen commented 9 years ago

Hi, I understand your need, the difficulty here is that the text background and foreground is configurable so I have to implement a way to handle this automatically... I'll think about this On 9 Jun 2015 21:40, "philogit" notifications@github.com wrote:

Currently, plain-text and monospace-styled text are difficult to distinguish from one another within Cherrytree. Would you consider adding a style to monospace-styled text that either (1) uses a grey background or (2) places a border around the text--as is typically found when styling markup output?

Here is an example of what I'm suggesting: ctrl-c, ctrl-v, if...then

— Reply to this email directly or view it on GitHub https://github.com/giuspen/cherrytree/issues/47.

philogit commented 9 years ago

I see your point, and perhaps a first iteration should just avoid color issues by drawing a border around the text that is set to the same color as the current text color. Here is an example, taken from Wikipedia > Help:Wiki markup. (I set the border color to black vs #ddd that they use.)

screenshot from 2015-06-13 13 08 57

As you pointed out, automating good color selection for the background or border would require more work. Here are some possibly useful topics that I found in case you explore that option.

giuspen commented 9 years ago

Actually a border around the monospaced text is not trivial with the current library (gtk2), so a different color background would be probably more feasible. I will add this to the backlog and I'll think about what is the best solution. On 13 Jun 2015 21:20, "philogit" notifications@github.com wrote:

I see your point, and perhaps a first iteration should just avoid color issues by drawing a border around the text that is set to the same color as the current text color. Here is an example, taken from Wikipedia > Help:Wiki markup https://en.wikipedia.org/wiki/Help:Wiki_markup#Text_formatting. (I set the border color to black vs #ddd that they use.)

[image: screenshot from 2015-06-13 13 08 57] https://cloud.githubusercontent.com/assets/12819820/8145822/6d85f236-11cd-11e5-9d97-6fabc3343130.png

As you pointed out, automating good color selection for the background or border would require more work. Here are some possibly useful topics that I found in case you explore that option.

— Reply to this email directly or view it on GitHub https://github.com/giuspen/cherrytree/issues/47#issuecomment-111747212.

philogit commented 9 years ago

As an incremental improvement, what if you were to add a preference that allowed the user to configure their preferred font for the monospace property? This would allow the user to selected a monospace font that satisfactorally contrasts with the font used for the plain-text property.

Suggested menu location: Preferences > Fonts > Monospace Font

zgstyle commented 7 years ago

+1 I also miss this. Screen shot of my current CherryTree fonts

philogit commented 7 years ago

@zgstyle : If you're looking for inline code styling, have a look at TiddlyWiki. It requires dealing with wiki-style plain text code editing vs WYSIWYG editing in CherryTree, but the trade off may be worth it to get the inline code feature.

golimarrrr commented 6 years ago

If the application is taking the default GTK style for monospace font, then it can probably be changed in one of the gtkrc files (system-wide, per user, per application, ...)

txe commented 3 years ago

It was actually resolved (monospace font, monospace background)