Skip to content

Fixed: windows edition find results background color, recently updated menu width, memory leaks, and font size inconsistence #193

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

Merged
merged 12 commits into from
Sep 10, 2022

Conversation

boo-yee
Copy link

@boo-yee boo-yee commented Aug 29, 2022

Highlight all results of find for the Windows edition, just as Qt Creator does. Under Windows, the results of find have a light grey background, which is very uncognizable.

Limit the max length of the recently updated menu of the tray. Otherwise, when the titles are too long, the menu will occupy the whole screen.

Fix memory leaks caused by Qt Webview. Nixnote ram usage was always increasing, seldom decreasing.

Convert the font size value to pixels when calling QWebSettings::setFontSize() in appearancepreferences.cpp and global.cpp. As in the function of setFontSize, the unit of measurement of font size parameter is pixel, which differs with the one of the editor font size combobox whose unit is points, so we have to make a conversion.

And moved the code of setting checkbox style from NBrowserWindow constructer function to setEditorStyle(), in order that subsequent setting will not overwrite the former one.

Make the editor not render the note content when Key_Up or Key_Down is kept being pressed, in order to reduce the needless rendering, which increases the cpu usage and freeze the UI when passing by large notes.

@boo-yee boo-yee changed the title Fixed some issues Fixed: memory leaks, font size unconsistence, recently updated menu width and windows edition find results background color Aug 29, 2022
@boo-yee boo-yee changed the title Fixed: memory leaks, font size unconsistence, recently updated menu width and windows edition find results background color Fixed: windows edition find results background color, recently updated menu width, memory leaks, and font size unconsistence Aug 29, 2022
…er function to setEditorStyle(), in order that subsequent setting will not overwrite the former one.
is kept being pressed, in order to reduce the needless rendering,
which increases the cpu usage and freeze the UI when passing by
large notes.
@robert7
Copy link
Owner

robert7 commented Sep 10, 2022

thanks!

@robert7 robert7 merged commit 060cedd into robert7:develop Sep 10, 2022
@boo-yee boo-yee changed the title Fixed: windows edition find results background color, recently updated menu width, memory leaks, and font size unconsistence Fixed: windows edition find results background color, recently updated menu width, memory leaks, and font size inconsistence Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants