Allan Odgaard
625fc714e5
Do not enable blending of file browser header until 10.14
v2.0-rc.19
2018-11-14 11:37:47 +07:00
Allan Odgaard
a402f2ce2f
Checkin release notes for 2.0-rc.18
v2.0-rc.18
2018-11-14 11:05:49 +07:00
Allan Odgaard
b1ae800fdc
Show an alert if version control information is unavailable
2018-11-12 19:58:48 +07:00
Allan Odgaard
d27c779c60
Use window color behind file browser (instead of blur)
...
At least on 10.14 the window color is neither black (in dark mode) nor white (in light mode) and thus works well to give some contrast to the main text view.
2018-11-12 19:30:05 +07:00
Allan Odgaard
c725d60b6c
Delay centering selected file browser row till next event loop cycle
...
Without this, it would sometimes fail when the outline view had to reload and expand items, presumably because updating the frame of the outline view (after reloading/expanding items) is not “instant”.
2018-11-12 19:19:01 +07:00
Allan Odgaard
58aaf36225
Provide a default include glob for file browser
...
This is not relevant for TextMate, but when the file browser is used in other contexts, it would previously show hidden files, as there was no default include pattern to limit files to only those matching `*`.
2018-11-12 19:16:14 +07:00
Allan Odgaard
f92d36571a
Use DISPATCH_APPLY_AUTO instead of explicit global queue
...
This is “strongly recommended” (according to `man dispatch_apply`) and should work on 10.9 and later (according to a WWDC session).
2018-11-12 19:15:12 +07:00
Allan Odgaard
162c499e91
No need to set view’s next responder to its view controller (10.10)
2018-11-10 15:31:54 +07:00
Allan Odgaard
1f97f479e7
Update CoreText constants to use “modern” names
2018-11-09 13:57:06 +07:00
Allan Odgaard
ee0448a876
Update dialog plug-in (Use NSVisualEffectView for Dialog’s pop-up menu)
2018-11-09 00:32:17 +07:00
Allan Odgaard
9d9d7707c9
Use NSVisualEffectMaterialToolTip for tool tips on 10.14
...
For Dark Mode we enable the text field’s bezel to match how native tool tips looks.
2018-11-08 23:13:33 +07:00
Allan Odgaard
f4f5177613
Use a CALayer for our zooming icon animation
...
This should ensure smooth animation even when the CPU load is high (which it often is when opening files).
2018-11-08 23:13:33 +07:00
Allan Odgaard
38f892b496
Use values from NSWindow to calculate the cascade offset for new windows
2018-11-07 15:28:43 +07:00
Allan Odgaard
e830f6600c
Hide tab bar view using the view controller’s hidden property (10.12)
...
For users on an OS earlier than 10.12, the tab bar will always be visible, even when configured to not show for windows with only a single document (tab).
2018-11-07 15:28:43 +07:00
Allan Odgaard
6aaa1df99b
Do not let the tab bar itself handle expanded/collapsed state
2018-11-07 15:28:42 +07:00
Allan Odgaard
35f1312f9a
Remove UI setting for having tabs “Extend to the width of the window”
...
This is now the only way to have the tabs shown.
2018-11-06 20:46:59 +07:00
Allan Odgaard
5b686f66e8
Set default light/dark themes when enabling changeThemeBasedOnAppearance
v2.0-rc.17
2018-11-06 20:01:34 +07:00
Allan Odgaard
c288adf982
Add a constant for the Twilight theme UUID
2018-11-06 20:00:08 +07:00
Ronald Wampler
cb5997717d
Allow switching themes based on the effective appearance
...
The feature is currently not exposed via the UI.
To enable set the changeThemeBasedOnAppearance defaults key to YES and assign the darkModeThemeUUID and universalThemeUUID default keys with the desired theme uuids to use in dark or light mode, respectively.
2018-11-06 19:29:19 +07:00
Ronald Wampler
d5c929dfaf
Move theme relate methods out of the status bar delegate section
2018-11-06 19:29:19 +07:00
Allan Odgaard
663a9a638a
Do not blend file browser content with header on 10.11 and earlier
...
Also disable the blurred background as it is mainly for dark mode, which was introduced in 10.14.
2018-11-06 19:26:08 +07:00
Allan Odgaard
1e71ce0855
Use hypot function to calculate mouse drag distance
...
Also update the threshold from 1.0 to 2.5 pixels, as that was already used a few other places, and a single pixel’s threshold seems low.
2018-11-06 17:27:07 +07:00
Allan Odgaard
abcf28b517
Replace macro recording image with red (flat) circle
2018-11-05 19:16:24 +07:00
Allan Odgaard
1d41f708e0
Move tabs to title bar
2018-11-05 19:16:24 +07:00
Allan Odgaard
5f63ee096b
Remove ability to have file browser header in the tab bar
...
This style is not easily compatible with moving the tab bar view to the window title.
2018-11-05 19:16:24 +07:00
Allan Odgaard
f242bd67e5
Use NSIsEmptyRect instead of comparing size to NSZeroSize
2018-11-05 19:16:24 +07:00
Allan Odgaard
477d906399
Change accessibility label of folder pop-up button to “Current folder”
...
The system file dialog has this labelled as “where” but I think “current folder” is more appropriate.
2018-11-05 19:16:24 +07:00
Allan Odgaard
d8b0801a63
Update selected tab index when tab bar has no selected tab
...
Currently OakTabBarView defaults to selecting first tab, but we shouldn’t assume that.
2018-11-05 19:16:24 +07:00
Allan Odgaard
1350c4c904
Send performClose: to window delegate instead of to OakTabBarView
...
This is in preparation of moving the tab bar view out of the window content view and into the titlebar.
2018-11-05 19:16:24 +07:00
Allan Odgaard
a03c2afd66
Add missing include
2018-11-05 19:16:24 +07:00
Allan Odgaard
10ef832b37
Rename setSelectedTab: → setSelectedTabIndex:
2018-11-05 19:16:24 +07:00
Allan Odgaard
5ac3a41d58
Update OakScopeBarView to new accessibility API (10.10)
2018-11-05 19:16:24 +07:00
Allan Odgaard
a12db33d86
Update OakDocumentView to new accessibility API (10.10)
2018-11-05 19:16:24 +07:00
Allan Odgaard
b05ef9d3f9
Limit public API of OakTabBarView
2018-11-05 19:16:24 +07:00
Allan Odgaard
892a6072ae
Move OakTabBarStyle to own header
...
This allows us to make OakTabItemView.h a private header.
2018-11-03 11:17:08 +07:00
Allan Odgaard
c5f1a6c098
NSVisualEffectBlendingModeWithinWindow requires a layer backed view
v2.0-rc.16
2018-11-02 20:52:02 +07:00
Allan Odgaard
8ba05fcf26
Checkin release notes for 2.0-rc.15
v2.0-rc.15
2018-11-02 16:35:26 +07:00
Allan Odgaard
1aa569cdf2
Draw a custom dash for removing find results and favorites
...
The NSImageNameRemoveTemplate looks bad in 10.14, and while there is some duplication in this commit, it’s so few lines that sharing this functionality would result in an increase of total number of lines.
2018-11-02 16:31:49 +07:00
Allan Odgaard
d0f9f652f9
Let text/background color depend on effective appearance in about window
...
I was unable to update the CSS from Objective-C (using evaluateJavaScript:) which is why the content has to request the styles from the exposed TextMate object.
It would be best if this was implicit (which I know is easy with WKWebView, so better just migrate to WKWebView than fight more with WebView).
Though it is probably better to have separate style sheets for light and dark, eventually we may even be able to rely on media queries for the appearance.
2018-11-02 16:14:09 +07:00
Allan Odgaard
74d77b9e59
Use NSBoxSeparator instead of configuring the border manually
2018-11-02 12:10:37 +07:00
Allan Odgaard
51a3f899c4
Use file browser’s icon support for the bundle item chooser
...
This is just for the custom dict file type icon (when showing keyboard layout entries).
2018-11-02 11:00:02 +07:00
Allan Odgaard
4c339ada62
Let file browser scroll view extend behind its header
2018-11-02 10:49:56 +07:00
Allan Odgaard
12d339cdb8
fixup! Don’t use textured windows for Open Quickly (⌘T) and friends
2018-11-02 08:40:39 +07:00
Allan Odgaard
f3d8af5ca6
Use full size content view for pasteboard choosers
2018-11-02 08:40:39 +07:00
Allan Odgaard
56acb17990
Use full size content view for Open Quickly (⌘T) and friends
...
This make the content of the table view affect the background of the title/footer views.
2018-11-02 08:40:39 +07:00
Allan Odgaard
14ae6019bf
Update all instances of accessibilitySetOverrideValue:forAttribute:
2018-11-02 08:40:39 +07:00
Allan Odgaard
de48a1f250
Patch (rather than replace) the key view loop when replacing views
...
Also set the new key view loop as initial first responder, as we activate that view in showWindow.
2018-11-02 08:40:39 +07:00
Allan Odgaard
3a16ca1bf0
Refactor OakChooser superclass
2018-11-02 08:40:39 +07:00
Allan Odgaard
efd504e536
Make OakChooser windows inherit from NSWindowController
2018-11-02 08:30:55 +07:00
Allan Odgaard
239b46ce66
Change symbol chooser’s document property to TMDocument
...
This is to avoid issues with AppKit when changing OakChooser to be a subclass of NSWindowController, as NSWindowController already has a document property and makes some assumptions about this.
I picked TMDocument over oakDocument only because I wasn’t sure how to capitalize the latter for getter/setter.
2018-11-02 08:30:55 +07:00