-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to colorize completed tasks when using StrikeoutTasksCommand #1528
Comments
I have something working here, if you are interested (translations are missing) : PodyNoo@2a8bc49 EDIT: updated commit link, corrected bad EOL / files indentation |
Oh, thanks a lot for this ! |
If it can be useful, i did push my code that i modified yesterday to use Stylizer / StyleAnalyzer / Theme-based colors as you advised : main...PodyNoo:OneMore:1528-colorize-strikeout-tasks-command The only thing not working is, in dark mode, when i'm using Apart from that bug in dark mode, to make it work with Stylizer/StyleAnalyzer, i needed to modify Merge() method from Style that was missing a property. (PodyNoo@a37500f) I also needed to modify CollectStyleProperties() from XElementExtensions to reverse the order of css properties parsing, because my OE/T nodes always had 2 colors properties ( Maybe I didn't quite fully understand how it works, so i might be wrong, but if not this might cause trouble elsewhere in the future. |
In my excitement, I led you astray on using the ThemManager, which is intended only for UI controls, not on-page content. Content is handled entirely with the Style family of classes. Compare your code to mine. I'm only use the The OET relationship with the CDATA style is a transient projection when the text insert cursor/caret is position in the OE paragraph, so a small adjustment is needed there only when adding stirkethrough. |
Regarding your last two commits. I'm afraid you may have broken a few other commands across OneMore . The Yes, there can be two color values in a In these cases, we don't really care. If adding strikeout, we want to apply the chosen color to the entire line, overwriting any manual changes along the way. If removing strikeout, we can only revert back to the default page color. Attempting to preserve any manual color changes within the run is impractical and can result in no visual changes to color for the whole paragraph if the whole paragraph was customized. |
Thanks for the explanations, have a nice day 🙂 ! |
Problem to Solve
When i'm using StrikeoutTasksCommand on long list of tasks, at first glance, completed tasks can be difficult to differentiate from tasks still to be done.
New Feature/Solution
If we could also colorize text of completed tasks while using StrikeoutTasksCommand, remaining tasks would be more visibles.
Additional Context
The text was updated successfully, but these errors were encountered: