cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

Search box small #154

Open a59 opened 6 years ago

a59 commented 6 years ago

I have just installed nvpy on Window 7. I have noticed that the search box is small; the text that I type is taller than the space in which to type it. Is there a configuration parameter to make the height of the search box taller?

yuuki0xff commented 6 years ago

I succeeded to reproduce this problem under those conditions.

The cause of this problem is that the height of background image are fixed. The search box has an background image consists borders and magnifying glass icon. The width of image can be easily adjusted to width of the search box. But height of image can not easily adjusted because a magnifying glass icon will be distorted :-(

WORKAROUND: If you don't care about design of the search box, remove style="Search.entry" argument from nvpy/view.py:1299.

# Before
self.search_entry = TriggeredcompleteEntry(search_frame, self.config.case_sensitive, textvariable=self.search_entry_var, style="Search.entry")
# After
self.search_entry = TriggeredcompleteEntry(search_frame, self.config.case_sensitive, textvariable=self.search_entry_var)

I will fix this problem at a later date.