Commit Graph

23 Commits

Author SHA1 Message Date
Lukhnos Liu 25ea443891 Correctly locate a candidate panel's screen
Previously only the x value was used to determine the screen to which a
candidate panel should below. That was incorrect. The entire point needs
to be considered.

This fixes the same issue that affected OpenVanilla:
https://github.com/openvanilla/openvanilla/issues/49
2021-11-24 23:22:29 -08:00
zonble 0f05e245a5 Coverts to Objective-C ARC. 2021-02-28 21:30:10 +08:00
Lukhnos Liu a71b354908 Fix broken CI builds by guarding new API usage 2020-10-10 07:47:29 -07:00
Lukhnos Liu 7d13ea0b41 Use NSTableViewStyleFullWidth on supported macOS
This prevents the vertical candidate table view to use the inset style [1].

The full-width style serves the purpose. The inset style makes the first
candidate too further away from the cursor in the composing buffer.

[1] https://developer.apple.com/design/human-interface-guidelines/macos/overview/whats-new-in-macos/
2020-10-10 06:37:32 -07:00
Lukhnos Liu 01baf0bb29 Fine-tune horizontal candidate UI for dark mode 2018-11-24 21:47:15 -08:00
Lukhnos Liu 14c2e70f7b Use control background color for dark mode 2018-11-24 21:47:15 -08:00
Lukhnos Liu 8058f37fff Modernize project and bump min version to 10.10
32-bit architecture support is removed as a result.
2018-11-24 21:47:15 -08:00
ovadmin d6e1ba435c 更新選字窗元件,與 OpenVanilla 同步 2017-04-30 01:33:40 -07:00
Mengjuei Hsieh d9348efb1e minor revision to reflect xcode changes (#112)
__weak
if (0)
2016-10-24 23:08:43 -07:00
Lukhnos Liu 8747e7d7c7 Fix vertical candidate highlight color on Yosemite 2014-10-28 23:36:01 -07:00
Lukhnos Liu e406645893 Fix candidate window visual artifacts
* Use a built-in window level instead of the non-standard one
* Don't force the window to re-draw
* Defer orderFront: and orderBack:
2014-05-16 21:18:47 -07:00
Lukhnos Liu 07f663eb00 Correctly fix the vertical scroller redraw issue. 2013-01-29 22:16:42 -08:00
Lukhnos Liu 337b295950 Attempt to fix the redraw issue. 2013-01-25 08:54:34 -08:00
Lukhnos Liu 55d2cb2868 Defer updating scroller. 2013-01-24 23:28:42 -08:00
Lukhnos Liu 54f0113c0c Avoid layout when providing cell values (fixes #73)
-tableView:objectValueForTableColumn:row: may call -layoutCandidateView,
which in turn may force the table view to reload; the layout code
should only run after all cell values are provided for to break this
potential cycle.
2013-01-16 21:42:41 -08:00
Lukhnos D. Liu e4c54e6bb9 Edit comment. 2012-03-29 21:07:45 -07:00
Lukhnos D. Liu 005437db28 Handle the case when the vertical candidate data source is gone. 2012-03-29 21:04:30 -07:00
Lukhnos D. Liu b0b5dd0233 Remove CJK font requirement as OS X 10.7 already handles fallback better. 2012-03-29 20:57:16 -07:00
Lukhnos D. Liu b0e7e7032f Adjust layout parameters. 2012-03-29 20:06:42 -07:00
Lukhnos D. Liu dd43b08d82 Handle out-of-screen conditions. Improve drawing code. 2012-03-29 12:17:56 -07:00
Lukhnos D. Liu b492cb1f10 Fix a text wrapping issue in the vertical candidate panel. 2012-03-29 01:09:52 -07:00
Lukhnos D. Liu 810782bc77 Fix a mismatched synthesized property. 2012-03-29 00:32:20 -07:00
Lukhnos D. Liu 7d5cd8173c Import the Voltaire (commit 152775fc) project to replace IMK candidate UI. 2012-03-28 23:25:12 -07:00