Comments (8)
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.
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.
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.)
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.
- Determine font color based on background color
- Color schemes generation - theory and algorithms
- How to automatically generate N “distinct” colors?
- How to Choose Colours Procedurally (Algorithms)
from cherrytree.
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.pngAs 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.
- Determine font color based on background color
https://stackoverflow.com/questions/1855884/determine-font-color-based-on-background-color- Color schemes generation - theory and algorithms
https://programmers.stackexchange.com/questions/44929/color-schemes-generation-theory-and-algorithms- How to automatically generate N “distinct” colors?
https://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors- How to Choose Colours Procedurally (Algorithms)
http://devmag.org.za/2012/07/29/how-to-choose-colours-procedurally-algorithms/—
Reply to this email directly or view it on GitHub
#47 (comment).
from cherrytree.
+1
I also miss this.
Screen shot of my current CherryTree fonts
from cherrytree.
@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.
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.
It was actually resolved (monospace font, monospace background)
from cherrytree.
Related Issues (20)
- [CTB] It's too slow/laggy or it takes a while when Undo (Ctrl Z) HOT 4
- Error Parsing the CherryTree Path: "!! sqlite3__prepare_v2: no such table: bookmark" HOT 1
- Regular expression help - dead url HOT 3
- Sync ~/.config/cherrytree/config.cfg with Recent Documents list in CT session. HOT 3
- Can't generate latex HOT 26
- A simple feature automatically collapse the node the next time you open the interface HOT 2
- "" changes into “” in Formatted text node HOT 2
- Duplicate text in File menu (Portuguese translation)
- [PowerPC] Segfault on launch: `KERN_PROTECTION_FAILURE at address: 0x00000014` HOT 2
- Where do the IMGs in .ctb or .ctd file? HOT 1
- Preview embed image from Internet link HOT 1
- [FR] Internet proxy configuration in menu Preferences missing HOT 9
- Add up and down keys to table cell navigation HOT 6
- All pictures/tables erased in a node HOT 1
- Add show / hide option to show in status bar full path of selected node HOT 6
- Cherrytree wont load last used file on next startup. HOT 4
- Node path to be accessed by means other than manual copying HOT 1
- Streamlining formatting of static code blocks (not CodeBoxes).
- No localization after last update HOT 12
- Setting for navigating the tree (nodes and subnodes) using up and down arrow keys? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cherrytree.