Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
[image: Screen Shot 2018-10-04 at 8.04.30 PM.png]
yes, i also use it in dark mode but face the same issues; in my case the upper folder in the file browser also has some kind of display issue.
nonetheless it’s great to finally have a dark filebrowser :-)
Am 05.10.2018 um 02:05 schrieb jason jgavris@gmail.com:
Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
<Screen Shot 2018-10-04 at 8.04.30 PM.png>
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On Oct 4, 2018, at 7:05 PM, jason jgavris@gmail.com wrote:
Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
TextMate does not yet support dark mode, this will get added at some point in the future. With the official builds you will not get a dark mode with the system setting enabled, it is only in custom builds where you will get the halfway version as in the screenshots.
On 5 Oct 2018, at 02:05, jason jgavris@gmail.com wrote:
Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
I’ve tried, but it doesn't look so good yet. For example my tabs are not dark as on your screen shot. Have you changed the source code?
On 5 Oct 2018, at 7:45, Jacob Carlborg wrote:
I’ve tried, but it doesn't look so good yet. For example my tabs are not dark as on your screen shot. Have you changed the source code?
Dark mode is supported for the tabs when building from `master`: https://github.com/textmate/textmate/commit/cf06fb3d947e7aee56a5ef76c93ac6c2...
On 5 Oct 2018, at 09:38, Allan Odgaard mailinglist@textmate.org wrote: Dark mode is supported for the tabs when building from master: https://github.com/textmate/textmate/commit/cf06fb3d947e7aee56a5ef76c93ac6c2... https://github.com/textmate/textmate/commit/cf06fb3d947e7aee56a5ef76c93ac6c2fa96b89
Ok, cool. I haven’t looked at the git repository in a while.
On Oct 5, 2018, at 3:38 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 5 Oct 2018, at 7:45, Jacob Carlborg wrote:
I’ve tried, but it doesn't look so good yet. For example my tabs are not dark as on your screen shot. Have you changed the source code?
Dark mode is supported for the tabs when building from master: https://github.com/textmate/textmate/commit/cf06fb3d947e7aee56a5ef76c93ac6c2...
I should mention that the current way we handle the styling for the tabs (as NSImages) is not optimal since it doesn’t support desktop tint. The only way I know how to properly support it is to add the tab bar as an accessory view in the title bar (API 10.10) and change the `OakTabBarStyle` to use NSColor instead of NSImage images.
Ron
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 5 Oct 2018, at 14:59, Ronald Wampler wrote:
I should mention that the current way we handle the styling for the tabs (as NSImages) is not optimal since it doesn’t support desktop tint. The only way I know how to properly support it is to add the tab bar as an accessory view in the title bar (API 10.10) and change the `OakTabBarStyle` to use NSColor instead of NSImage images.
I will drop 10.9 compatibility for the reworked file browser (next build), so I see no problem switching from images to colors for the tab bar (as you probably know, the images were to support the 10.9 tab look).
On 17 Oct 2018, at 06:52, Allan Odgaard mailinglist@textmate.org wrote: I will drop 10.9 compatibility for the reworked file browser (next build)
Please do, 10.9 is quite old now. I’m on 10.13 and 10.14.
On Oct 17, 2018, at 17:43, Jacob Carlborg doob@me.com wrote:
On 17 Oct 2018, at 06:52, Allan Odgaard <mailinglist@textmate.org mailto:mailinglist@textmate.org> wrote: I will drop 10.9 compatibility for the reworked file browser (next build)
Please do, 10.9 is quite old now. I’m on 10.13 and 10.14.
Even from a perspective of what machines can even run 10.9 that Apple doesn't even support. Not even sure you could find a modern web browser that would work there anymore.
Does this mean that TM2 will now have the tab disaster that Finder and Safari have post-Mavericks? Please say it's not so. Apple's idea of how tabs should look was designed by an idiot.
Finder's tabs are unusable and Safari's are as well, but you really have no choice with Safari. At least in Finder you can turn them off/disable them.
Mavericks wasn't great but at least they actually look like tabs rather than an UI element disconnected from the layer they're supposedly on.
That tabbing mechanism is available system wide, provided by AppKit. It might not be ideal to everybody but it is at least consistent. Sometimes it's easier to just roll with it and adopt.
On Oct 18, 2018, at 7:52, Marc Wilson posguy99@gmail.com wrote:
Does this mean that TM2 will now have the tab disaster that Finder and Safari have post-Mavericks? Please say it's not so. Apple's idea of how tabs should look was designed by an idiot.
Finder's tabs are unusable and Safari's are as well, but you really have no choice with Safari. At least in Finder you can turn them off/disable them.
Mavericks wasn't great but at least they actually look like tabs rather than an UI element disconnected from the layer they're supposedly on.
-- Marc Wilson posguy99@gmail.com mailto:posguy99@gmail.com
On Tue, Oct 16, 2018, at 9:53 PM, Allan Odgaard wrote:
On 5 Oct 2018, at 14:59, Ronald Wampler wrote:
I should mention that the current way we handle the styling for the tabs (as NSImages) is not optimal since it doesn’t support desktop tint. The only way I know how to properly support it is to add the tab bar as an accessory view in the title bar (API 10.10) and change the `OakTabBarStyle` to use NSColor instead of NSImage images.
I will drop 10.9 compatibility for the reworked file browser (next build), so I see no problem switching from images to colors for the tab bar (as you probably know, the images were to support the 10.9 tab look).
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate https://lists.macromates.com/listinfo/textmate
On 18 Oct 2018, at 7:06, じょいすじょん wrote:
That tabbing mechanism is available system wide, provided by AppKit. It might not be ideal to everybody but it is at least consistent. Sometimes it's easier to just roll with it and adopt.
It’s actually not a UI component that can be freely used, but rather tabs is something the system can add to document-based applications.
I think there are still too many issues with Cocoa’s document-based application structure for us to adopt it, so the custom tabs will stay for the foreseeable future, which means we can keep the current look where it bleeds into the title bar, although there is something to be said for system-wide consistency.
I agree though that active tab shouldn’t be a button; ideally it would melt together with the document view (as TextMate 1.x did and Chrome currently does).
Example attached, showing "good" (TM), and "bad" (Apple).
I usually run from HEAD of master, I have one minor (non source) tweak to the application icon because I miss the TextMate 1 icon.
On Fri, Oct 5, 2018 at 1:46 AM Jacob Carlborg doob@me.com wrote:
On 5 Oct 2018, at 02:05, jason jgavris@gmail.com wrote:
Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
I’ve tried, but it doesn't look so good yet. For example my tabs are not dark as on your screen shot. Have you changed the source code?
-- /Jacob Carlborg
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 5 Oct 2018, at 2:05, jason wrote:
Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
I pushed a quick fix for the find dialog strings: https://github.com/textmate/textmate/commit/cae5eff55cd31788ab53bf2e84e65d75...
Colors will still be wrong if you enable regular expression, you can set the theme used (for syntax highlight of find/replace strings) via the `UIThemeUUID` defaults key (requires relaunch after changing it) but it will currently render the theme’s background color, so this is not ideal and will require a bit more work.
The file icons are done with an `NSImage` subclass (this is required so we get proper behavior for retina screens etc.) and will likely have to be rewritten using new API to work with Mojave (I have no idea why our subclass breaks when building with the 10.14 SDK but `NSImage` is a bit iffy and if they have completely rewritten the internals for Mojave then I believe it wouldn’t be a first).
For the rest of the colors (gradients, find result highlights, etc.) we will need to move to asset catalogs, but I am in a bit of a pickle because I can’t do deployment builds with newer versions of Xcode, as they are prone to crash (numerous hours have been spent trying to track it down, but it relates to internal garbage collection of the `NSOutlineView`, so quite difficult to get any meaningful information from the crash logs), and colors in asset catalogs is not possible with the version of Xcode I am using.
On 5 Oct 2018, at 09:35, Allan Odgaard mailinglist@textmate.org wrote: For the rest of the colors (gradients, find result highlights, etc.) we will need to move to asset catalogs, but I am in a bit of a pickle because I can’t do deployment builds with newer versions of Xcode, as they are prone to crash (numerous hours have been spent trying to track it down, but it relates to internal garbage collection of the NSOutlineView, so quite difficult to get any meaningful information from the crash logs), and colors in asset catalogs is not possible with the version of Xcode I am using.
Using asset catalogs would be nice but it’s still possible to do with just code. If you can use the semantic colors, with a fallback for when they’re not available, it would help as well I think.
On 5 Oct 2018, at 9:49, Jacob Carlborg wrote:
Using asset catalogs would be nice but it’s still possible to do with just code. If you can use the semantic colors, with a fallback for when they’re not available, it would help as well I think.
There are no semantic colors for gradients or even highlighted search results as in Jason’s screenshot.
And I am not aware of how we can introduce our own semantic colors without asset catalogs, as the RGB value of a semantic color is not resolved until it is being used (i.e. have a graphics context), but there does not appear to be an `NSColor` API for this (beyond `set`, but probably can’t rely on that working 100% of the time, e.g. when other colors are derived from the base color).
On 5 Oct 2018, at 10:25, Allan Odgaard mailinglist@textmate.org wrote: There are no semantic colors for gradients or even highlighted search results as in Jason’s screenshot.
And I am not aware of how we can introduce our own semantic colors without asset catalogs, as the RGB value of a semantic color is not resolved until it is being used (i.e. have a graphics context), but there does not appear to be an NSColor API for this (beyond set, but probably can’t rely on that working 100% of the time, e.g. when other colors are derived from the base color).
I’m not expert on this subject but I did have a look at the “Advance Dark Mode” WWDC video [1]. If the asset catalog or the built-in dynamic colors are not flexible enough a view can do appearance sensitive work in the following methods: “updateConstraints", "layout", "draw:dirtyRect" and "updateLayer”. The current appearance can be queried using “effectiveAppearance” and “bestMatch” can be used on the returned appearance.
But if you can upgrade Xcode to a later version it would be much simpler.
[1] https://developer.apple.com/videos/play/wwdc2018/218/
On 6 Oct 2018, at 10:48, Jacob Carlborg wrote:
I’m not expert on this subject but I did have a look at the “Advance Dark Mode” WWDC video [1]. If the asset catalog or the built-in dynamic colors are not flexible enough a view can do appearance sensitive work in the following methods: “updateConstraints", "layout", "draw:dirtyRect" and "updateLayer”. The current appearance can be queried using “effectiveAppearance” and “bestMatch” can be used on the returned appearance.
It’s not that I do not know how to check for these things, but the thought of adding such checks each place we use a color (as the color itself cannot encapsulate this before 10.14) is just not very appealing, as far more colors are used than one would think from just looking at the UI.
Great. I have also been trying to track down the crash in NSOutlineView that I see via -[FSItem isEqual:]!
On Fri, Oct 5, 2018 at 3:36 AM Allan Odgaard mailinglist@textmate.org wrote:
On 5 Oct 2018, at 2:05, jason wrote:
Are people using TextMate with Dark Mode? I see some issues with reading text (find input text is black until unfocused, then changes to white), but also curiously the icons in the outline view are also missing.
I pushed a quick fix for the find dialog strings: https://github.com/textmate/textmate/commit/cae5eff55cd31788ab53bf2e84e65d75...
Colors will still be wrong if you enable regular expression, you can set the theme used (for syntax highlight of find/replace strings) via the UIThemeUUID defaults key (requires relaunch after changing it) but it will currently render the theme’s background color, so this is not ideal and will require a bit more work.
The file icons are done with an NSImage subclass (this is required so we get proper behavior for retina screens etc.) and will likely have to be rewritten using new API to work with Mojave (I have no idea why our subclass breaks when building with the 10.14 SDK but NSImage is a bit iffy and if they have completely rewritten the internals for Mojave then I believe it wouldn’t be a first).
For the rest of the colors (gradients, find result highlights, etc.) we will need to move to asset catalogs, but I am in a bit of a pickle because I can’t do deployment builds with newer versions of Xcode, as they are prone to crash (numerous hours have been spent trying to track it down, but it relates to internal garbage collection of the NSOutlineView, so quite difficult to get any meaningful information from the crash logs), and colors in asset catalogs is not possible with the version of Xcode I am using.
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 5 Oct 2018, at 13:37, jason wrote:
Great. I have also been trying to track down the crash in NSOutlineView that I see via -[FSItem isEqual:]!
You saw this with Xcode 10? I have not yet tested for the issue with Xcode 10 myself, but if you saw it on Mojave, then that saves me the trouble.
I did go through basically removing all features of the file browser and yet still had the crash.
I’ve reached a point where rewriting the involved code is probably the most feasible way to try and fix this :(
Where in the source code should we find the completion list and completion window ? I would like to look at enhancing it and need to figure out where it is.
On 6 Oct 2018, at 09:09, じょいすじょん dangerwillrobinsondanger@gmail.com wrote:
Where in the source code should we find the completion list and completion window ? I would like to look at enhancing it and need to figure out where it is.
If you’re referring to the completion list that bundle commands can show it’s available here [1].
[1] https://github.com/textmate/dialog/tree/master/Commands/popup
Yes, I built this with Xcode 10 toolchain on 10.14. If the crash reporter feature works you've probably gotten a lot of them from me :)
On Sat, Oct 6, 2018 at 2:24 AM Allan Odgaard mailinglist@textmate.org wrote:
On 5 Oct 2018, at 13:37, jason wrote:
Great. I have also been trying to track down the crash in NSOutlineView that I see via -[FSItem isEqual:]!
You saw this with Xcode 10? I have not yet tested for the issue with Xcode 10 myself, but if you saw it on Mojave, then that saves me the trouble.
I did go through basically removing all features of the file browser and yet still had the crash.
I’ve reached a point where rewriting the involved code is probably the most feasible way to try and fix this :(
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 6 Oct 2018, at 18:26, jason wrote:
Yes, I built this with Xcode 10 toolchain on 10.14. If the crash reporter feature works you've probably gotten a lot of them from me :)
It links the crashes to official builds (so I can easier link new crashes to a certain commits), hence I do not see crashes from custom builds.
As for the crash when building with new versions of Xcode, I started on the file browser rewrite, trying to do things a bit differently, hopefully that won’t trigger the issue, and I will finally be able to move beyond Xcode 7.
I've been running the newest build for a while (new outline view?) and I haven't had that naughty crash. Nice work Allan!
On Sun, Oct 7, 2018 at 6:22 AM Allan Odgaard mailinglist@textmate.org wrote:
On 6 Oct 2018, at 18:26, jason wrote:
Yes, I built this with Xcode 10 toolchain on 10.14. If the crash reporter feature works you've probably gotten a lot of them from me :)
It links the crashes to official builds (so I can easier link new crashes to a certain commits), hence I do not see crashes from custom builds.
As for the crash when building with new versions of Xcode, I started on the file browser rewrite, trying to do things a bit differently, hopefully that won’t trigger the issue, and I will finally be able to move beyond Xcode 7.
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
Hi,
Finally testing Mojave for updating my production machine :)
I found a dark mode color issue (TM 2.0-rc.22).
Going to the bundle editor (CTRL-OPT-CMND-B), the border of the sidebar still have colors of the normal mode.
== Feek
-- Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
Hereby a screenshot: https://feek.d.pr/KcYCI
== Feek
-- Sent from: http://textmate.1073791.n5.nabble.com/textmate-users-f3.html
On 17 Jan 2019, at 11:54, feek wrote:
Going to the bundle editor (CTRL-OPT-CMND-B), the border of the sidebar still have colors of the normal mode.
I think this is Apple who just hasn’t updated drawers to support dark mode, as they consider them deprecated.
So the only fix is a redesigned bundle editor, something I know is desired, but there’s a few other things I need to get to first.