Code Monkey home page Code Monkey logo

Comments (8)

philogit avatar philogit commented on July 2, 2024 3

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

from cherrytree.

giuspen avatar giuspen commented on July 2, 2024

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" [email protected] 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
#47.

from cherrytree.

philogit avatar philogit commented on July 2, 2024

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.

from cherrytree.

giuspen avatar giuspen commented on July 2, 2024

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" [email protected] 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
#47 (comment).

from cherrytree.

zgstyle avatar zgstyle commented on July 2, 2024

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

from cherrytree.

philogit avatar philogit commented on July 2, 2024

@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.

from cherrytree.

golimarrrr avatar golimarrrr commented on July 2, 2024

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, ...)

from cherrytree.

txe avatar txe commented on July 2, 2024

It was actually resolved (monospace font, monospace background)

from cherrytree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.