-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Basic block highlight #1533
Basic block highlight #1533
Conversation
I will try to review when I'll be back home late tonight. |
added some optimization to ColorPicker. Now it works way faster than it did before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't finish but that's a start heh.
src/Main.cpp
Outdated
@@ -69,7 +70,7 @@ int main(int argc, char *argv[]) | |||
} | |||
ThemeWorker().save(QJsonDocument(updatedTheme), theme); | |||
} | |||
settings.setValue("updated_custom_themes", true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to rename it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I added new color options like wordHighlight
and lineHighlight
(which were replaced with r2 options wordhl
and linehl
in this commit for some reason) we need to update custom theme files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a version for the color themes to https://github.com/radareorg/cutter/pull/1557
So after this is merged, you just have to raise this version by one instead of adding more settings keys every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, can be merged after adding change for https://github.com/radareorg/cutter/pull/1557
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have issues. reported privately and will update here after getting answer
You should not. Alpha channel is only for line highlight and word highlight options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from these small things, lgtm!
Co-Authored-By: Florian Märkl <info@florianmaerkl.de>
Co-Authored-By: Florian Märkl <info@florianmaerkl.de>
Co-Authored-By: Florian Märkl <info@florianmaerkl.de>
Detailed description
Adds basic block highlight and adds alpha channel for color of word and line highlight.
Graph overview honors the color of basic block as well.
Alpha channel bar appears only when word or line highlight option is selected.
"Unhighlight block" action appears only when user right clicks on highlighted block.