OneMore
OneMore copied to clipboard
Code syntax colorizer can allow choosing separate colours when using onenote in dark mode.
When using onenote in dark mode and adding colorizer to certain code , I noticed that a lot of code content is coloured black . So it is not visible among the dark coloured background. So when applying the colorizer ,it will be useful if color scheme of colorizer is different for dark mode. Current workaround for this would probably be to shift to light mode temporarily ,then apply colorizer then shift to dark mode. But it will be less convenient as compared to copying text in vscode or online IDE and then copying the syntax highlighted text back from that IDE. I don't think it is a bug or a new feature, just an improvement to the pre existing feature.
OneMore has different colors for light and dark so this may be a bug. Which language are you using?
@Rishabhsahu325 Can you show me an example of what you mean please?
@Rishabhsahu325 Sorry but which version of OneMore are you running. This should have been fixed in release 5.9 for #1083
Then I'm having trouble reproducing the issue with 5.9.0. I've set the background to "dark" using the View/Switch Background button and also tried setting it using the OneMore Set Page Color command. Both work as expected for C# and C++. It looks like you're using C++.
I presume you're selecting the block of code and choosing Colorize/C++. Is there anything else you're doing differently?
Note also that if you colorize and then switch the background, you then need to recolorize the code. It will not automatically switch the default text color.
Change the background or Switch Background and then colorize.
This is a known limitation. The only way to make this appear automatic is to define a color palette that, in my opinion, just doesn't look good in either mode.
That's effectively the same.
Nope the switch background is persisted when you close OneNote. It's the same; I normally run in Dark mode but switched the background to White. Either way, it affects the same Registry setting.
So if you start from scratch with a dark page, paste some code, and then colorize it, you're still seeing black text?
Your background looks purple-ish. What Windows theme are you using? If it's not the default dark mode theme, then maybe that's it?
No. I'll take another look at this ticket. need to refresh my memory....
Here's what I tried.
- Windows theme is set to Dark mode by default, highlight color is brown
- OneNote theme is set to system default (which means dark/black mode)
- With OneNote page background switched to white/light, given this page
- Colorize as C++
- Ctrl+Z to undo colorize, switch background to dark
- Colorize as C++
- Ctrl+Z to undo colorize, switch backgroudn to light.
- Use OneMore's Set Page Color to change background to a dark color (here dark cyan)
- Colorize as C++
- Ctrl+Z to undo colorize, reset page color to white
- Switch background to dark, Set Page Color to dark cyan
- Colorize as C++
Here you can see that if we have Switched Background to dark mode AND chosen to set the background of the page to a dark color (which is actually an inverted light color, hard to explain but true) then the default text color is dark on a dark background and hard to read. But all other test cases are OK.
So unless you've both switched to dark background mode AND chosen a dark page color, it should work as designed in OneMore 6.1.0
Fixed for next release.
| OneNote Switched Background | OneMore Set Page Color | Tested |
|---|---|---|
| light | auto | OK |
| light | light | OK |
| light | dark | OK |
| dark | auto | OK |
| dark | light | OK |
| dark | dark | OK |