Commit Graph

4917 Commits

Author SHA1 Message Date
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
Allan Odgaard
709570049f Make OakPasteboardChooser be an NSWindowController subclass 2018-11-02 08:30:55 +07:00
Ronald Wampler
3c56208329 Use dynamic colors for the background and text in OakKeyEquivalentView 2018-11-02 08:22:24 +07:00
Allan Odgaard
6419bec6ce Make the table view in pasteboard history a “full size content view”
This makes the content of the table view scroll behind the title bar and footer.
2018-11-01 18:21:47 +07:00
Allan Odgaard
bcda0d2774 Use visual effect view for snippet pop-up menu (10.11)
On 10.14 we use the “behind window” blending mode as we’d prefer the background to differ from that of the text view itself, though I am not seeing much of a difference here.
2018-11-01 15:39:33 +07:00
Allan Odgaard
3d829d6656 Make OakChoiceMenu an NSWindowController subclass 2018-11-01 15:23:48 +07:00
Allan Odgaard
2d0837aad5 Prefix instance variables with underscore in OakChoiceMenu 2018-11-01 15:21:17 +07:00
Allan Odgaard
80681fc6a4 Add NSVisualEffectView behind file browser when running on 10.11 2018-11-01 14:43:41 +07:00
Allan Odgaard
6c7276235e Checkin release notes for 2.0-rc.14 v2.0-rc.14 2018-11-01 12:06:04 +07:00
Allan Odgaard
e2b0d44ce2 Do not open document in existing project if option key is down 2018-11-01 11:49:01 +07:00
Allan Odgaard
37176f601c Put additional Select Next/Previous Tab shortcuts in main menu (10.13)
These are added as hidden items and do make the menu flash, when the keys are used.
2018-11-01 11:28:08 +07:00
Allan Odgaard
75624f7df9 Automatically set “allows key equivalents when hidden” for hidden items
This is limited to hidden items that have a key equivalent assigned to them, although if they don’t, there is probably no harm in enabling this option.
2018-11-01 00:16:04 +07:00
Allan Odgaard
1cbaf05615 Set titlebarAppearsTransparent for main window
This makes the title bar render in the same color as it did prior to building on 10.14, so that the current tab colors match.

It does however make sheets appear from “above” the title bar and makes the Dark Mode style darker, so this is just an intermediate fix until the tab bar gets revamped for 10.14.
2018-11-01 00:10:20 +07:00
Allan Odgaard
c9618f8eb1 Exception was thrown when requesting icon for document with no path
This could happen when doing “Find All” for an untitled document, as the find dialog uses the document’s icon in the search results.
2018-10-31 23:21:33 +07:00
Allan Odgaard
4e5f5f71a2 Use beginSheetModalForWindow:completionHandler: over deprecated API 2018-10-31 23:10:31 +07:00
Allan Odgaard
00d4c4f23a Update constant names for 10.10 2018-10-31 23:08:33 +07:00
Allan Odgaard
96d1220e63 Use self.window instead of accessing instance variable of superclass 2018-10-31 23:07:52 +07:00
Allan Odgaard
dd41b992f7 Assume @available directive is available (Xcode 9) 2018-10-31 22:56:24 +07:00
Allan Odgaard
4d82e4b109 Remove XcodeEditor submodule 2018-10-31 16:57:01 +07:00
Allan Odgaard
04b369f703 Update MGScopeBar submodule: Have MGScopeBar opt out of Dark Mode 2018-10-31 16:45:40 +07:00
Allan Odgaard
48605ef4e9 The bundle selection menu now uses same appearance as the calling view
Only when there are no open windows, and the user is triggering the bundle item selection menu, will it default to the light aqua appearance.
2018-10-31 10:32:46 +07:00
Allan Odgaard
e8a3cb8f57 Do not use OakFileIconImage for menu items and recent projects
On macOS 10.14 this image doesn’t always render, so this is a temporary workaround.

The main advantage of using OakFileIconImage is the added SCM badge and custom icon for known file types.
2018-10-31 00:54:01 +07:00
Allan Odgaard
e7d87af3f5 Remove unused include of OakFileIconImage.h
This should have been removed in commit 584cadfc17.
2018-10-31 00:50:08 +07:00
Allan Odgaard
5933be295b Move search fields to title bar in pasteboard history dialogs
Also change divider colors to use standard separator color.
2018-10-31 00:28:49 +07:00
Allan Odgaard
ef7211a093 Use semantic colors for find dialog history pop-up list 2018-10-31 00:07:14 +07:00
Allan Odgaard
fa5e3cf869 Remove custom NSCell subclass used for file browser’s folder pop-up
The purpose was to render text with a shadow and fade the text when the window is inactive, but the former has not been used since 10.10 and the latter doesn’t actually seem to work.
2018-10-30 21:22:13 +07:00
Allan Odgaard
392c1ae954 Use separatorColor dividers in Open Quickly (⌘T) and friends
Not too fond of how this looks in Dark Mode but I think it’s better than the previous colors, which stem from back when the window had more of a 3D look.
2018-10-30 20:53:10 +07:00
Allan Odgaard
8f32a740b3 Don’t use textured windows for Open Quickly (⌘T) and friends
When building on 10.14 the textured window look does not provide a borderless title bar look as the window content is lighter than the title bar.

The solution is to move the search controls to the title bar, which is possible starting with 10.10.
2018-10-30 20:46:55 +07:00
Allan Odgaard
c50d92ba56 Set tool tip text color to black 2018-10-30 20:13:33 +07:00
Allan Odgaard
c21387adfb Selecting file outside project (⌃⌘R) would fail 2018-10-30 18:52:30 +07:00
Allan Odgaard
584cadfc17 Use file browser’s image class for document icons
On 10.14 the OakFileIconImage has issues (most instances show up as blank).
2018-10-30 16:12:37 +07:00
Allan Odgaard
9b70e273d5 Make new file browser’s CreateIconImageForURL public API
Ideally I would like to have the FileItem class be the public API, as that will then take care of updating the icon’s SCM status etc., current commit is just a temporary fix for missing document icons on 10.14.
2018-10-30 16:10:51 +07:00
Allan Odgaard
6acbbca23c Use textColor and secondaryLabelColor for find in folder results 2018-10-30 15:31:48 +07:00
Allan Odgaard
9271a0cbb5 Use semantic color for image shown when holding command in find results
This required switching to using a block-based image as we cannot use adaptive colors when pre-rendering images.
2018-10-30 15:29:16 +07:00
Allan Odgaard
82de01589f Update deployment target of all xib files to 10.10 2018-10-30 13:46:34 +07:00
Allan Odgaard
fd0ef648e1 Show as many parents as required to disambiguate file browser items 2018-10-30 13:45:38 +07:00
Allan Odgaard
0c0e9288bc Remove code and graphics for rendering tabs prior to 10.10 2018-10-30 12:41:49 +07:00