]> granicus.if.org Git - graphviz/commitdiff
macOS: Fix colors in Attributes window to work correctly in dark mode (#1535)
authorBrendan Shanks <brendan@bslabs.net>
Tue, 14 May 2019 23:48:29 +0000 (16:48 -0700)
committerBrendan Shanks <brendan@bslabs.net>
Wed, 15 May 2019 00:13:44 +0000 (17:13 -0700)
Change colors of some interface elements in the Attributes window to display correctly in dark mode on macOS 10.14.
To keep compatibility with old versions, changes made using Interface Builder 3.2.6 running on 10.6.

* For the attribute NSTableView: set the background color from white to the current default 'Control Background Color'
* For the 'key' NSTextFieldCell in the attribute table: set the text color from 'Control Text Color' to 'Text Color', and the background color from 'Control Background Color' to the default 'Text Background Color'. For the text color it would be preferable to use the current default 'Label Color' but that's only available on 10.10 and up
* For the 'value' NSTextFieldCell in the attribute table: set the background color from 'Control Background Color' to the default 'Text Background Color'. The text color is already set to the current default 'Control Text Color'

macosx/English.lproj/Attributes.xib

index 278fc077229d675a8546bc28f8bd616bac5d7fff..6ce6f1d01ddf6088d59470a1e0e4bcf92aa4f583 100644 (file)
@@ -21,6 +21,7 @@
                </object>
                <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
                        <bool key="EncodedWithXMLCoder">YES</bool>
+                       <integer value="28"/>
                </object>
                <object class="NSArray" key="IBDocument.PluginDependencies">
                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                                                                        <int key="NSvFlags">256</int>
                                                                                                        <string key="NSFrameSize">{289, 279}</string>
                                                                                                        <reference key="NSSuperview" ref="731772484"/>
-                                                                                                       <reference key="NSWindow"/>
                                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                                        <object class="_NSCornerView" key="NSCornerView">
                                                                                                                <nil key="NSNextResponder"/>
                                                                                                                                        <int key="NSfFlags">16</int>
                                                                                                                                </object>
                                                                                                                                <reference key="NSControlView" ref="230844095"/>
-                                                                                                                               <object class="NSColor" key="NSBackgroundColor" id="24209500">
+                                                                                                                               <object class="NSColor" key="NSBackgroundColor" id="467580121">
                                                                                                                                        <int key="NSColorSpace">6</int>
                                                                                                                                        <string key="NSCatalogName">System</string>
-                                                                                                                                       <string key="NSColorName">controlBackgroundColor</string>
+                                                                                                                                       <string key="NSColorName">textBackgroundColor</string>
                                                                                                                                        <object class="NSColor" key="NSColor">
                                                                                                                                                <int key="NSColorSpace">3</int>
-                                                                                                                                               <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+                                                                                                                                               <bytes key="NSWhite">MQA</bytes>
                                                                                                                                        </object>
                                                                                                                                </object>
-                                                                                                                               <object class="NSColor" key="NSTextColor" id="822404941">
+                                                                                                                               <object class="NSColor" key="NSTextColor">
                                                                                                                                        <int key="NSColorSpace">6</int>
                                                                                                                                        <string key="NSCatalogName">System</string>
-                                                                                                                                       <string key="NSColorName">controlTextColor</string>
+                                                                                                                                       <string key="NSColorName">textColor</string>
                                                                                                                                        <reference key="NSColor" ref="501563574"/>
                                                                                                                                </object>
                                                                                                                        </object>
                                                                                                                                <string key="NSContents">Text Cell</string>
                                                                                                                                <reference key="NSSupport" ref="26"/>
                                                                                                                                <reference key="NSControlView" ref="230844095"/>
-                                                                                                                               <reference key="NSBackgroundColor" ref="24209500"/>
-                                                                                                                               <reference key="NSTextColor" ref="822404941"/>
+                                                                                                                               <reference key="NSBackgroundColor" ref="467580121"/>
+                                                                                                                               <object class="NSColor" key="NSTextColor">
+                                                                                                                                       <int key="NSColorSpace">6</int>
+                                                                                                                                       <string key="NSCatalogName">System</string>
+                                                                                                                                       <string key="NSColorName">controlTextColor</string>
+                                                                                                                                       <reference key="NSColor" ref="501563574"/>
+                                                                                                                               </object>
                                                                                                                        </object>
                                                                                                                        <int key="NSResizingMask">3</int>
                                                                                                                        <bool key="NSIsResizeable">YES</bool>
                                                                                                        </object>
                                                                                                        <double key="NSIntercellSpacingWidth">3</double>
                                                                                                        <double key="NSIntercellSpacingHeight">2</double>
-                                                                                                       <object class="NSColor" key="NSBackgroundColor">
-                                                                                                               <int key="NSColorSpace">3</int>
-                                                                                                               <bytes key="NSWhite">MQA</bytes>
+                                                                                                       <object class="NSColor" key="NSBackgroundColor" id="24209500">
+                                                                                                               <int key="NSColorSpace">6</int>
+                                                                                                               <string key="NSCatalogName">System</string>
+                                                                                                               <string key="NSColorName">controlBackgroundColor</string>
+                                                                                                               <object class="NSColor" key="NSColor">
+                                                                                                                       <int key="NSColorSpace">3</int>
+                                                                                                                       <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+                                                                                                               </object>
                                                                                                        </object>
                                                                                                        <object class="NSColor" key="NSGridColor">
                                                                                                                <int key="NSColorSpace">6</int>
                                                                                        </object>
                                                                                        <string key="NSFrameSize">{289, 279}</string>
                                                                                        <reference key="NSSuperview" ref="622001215"/>
-                                                                                       <reference key="NSWindow"/>
                                                                                        <reference key="NSNextKeyView" ref="230844095"/>
                                                                                        <reference key="NSDocView" ref="230844095"/>
                                                                                        <reference key="NSBGColor" ref="24209500"/>
                                                                                        <int key="NSvFlags">256</int>
                                                                                        <string key="NSFrame">{{289, 0}, {11, 279}}</string>
                                                                                        <reference key="NSSuperview" ref="622001215"/>
-                                                                                       <reference key="NSWindow"/>
                                                                                        <int key="NSsFlags">256</int>
                                                                                        <reference key="NSTarget" ref="622001215"/>
                                                                                        <string key="NSAction">_doScroller:</string>
                                                                                        <int key="NSvFlags">-2147483392</int>
                                                                                        <string key="NSFrame">{{-100, -100}, {463, 15}}</string>
                                                                                        <reference key="NSSuperview" ref="622001215"/>
-                                                                                       <reference key="NSWindow"/>
                                                                                        <int key="NSsFlags">1</int>
                                                                                        <reference key="NSTarget" ref="622001215"/>
                                                                                        <string key="NSAction">_doScroller:</string>
                                                                        </object>
                                                                        <string key="NSFrameSize">{300, 279}</string>
                                                                        <reference key="NSSuperview" ref="578061934"/>
-                                                                       <reference key="NSWindow"/>
                                                                        <reference key="NSNextKeyView" ref="731772484"/>
                                                                        <int key="NSsFlags">16</int>
                                                                        <reference key="NSVScroller" ref="103194017"/>
                                                                        </object>
                                                                        <string key="NSFrame">{{0, 280}, {300, 120}}</string>
                                                                        <reference key="NSSuperview" ref="578061934"/>
-                                                                       <reference key="NSWindow"/>
                                                                        <reference key="NSNextKeyView"/>
                                                                        <string key="FrameName"/>
                                                                        <string key="GroupName"/>
                                                        </object>
                                                        <string key="NSFrameSize">{300, 400}</string>
                                                        <reference key="NSSuperview" ref="1006"/>
-                                                       <reference key="NSWindow"/>
                                                        <int key="NSDividerStyle">2</int>
                                                </object>
                                        </object>
                                        <string key="NSFrameSize">{300, 400}</string>
                                        <reference key="NSSuperview"/>
-                                       <reference key="NSWindow"/>
                                </object>
                                <string key="NSScreenRect">{{0, 0}, {1920, 1178}}</string>
                                <string key="NSMaxSize">{1.79769e+308, 1.79769e+308}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{329, 254}, {300, 400}}</string>
+                                       <string>{{385, 134}, {300, 400}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{329, 254}, {300, 400}}</string>
+                                       <string>{{385, 134}, {300, 400}}</string>
                                        <integer value="1"/>
                                        <string>{196, 240}</string>
                                        <string>{{208, 327}, {300, 400}}</string>
                </object>
                <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
                        <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
-                       <integer value="1050" key="NS.object.0"/>
+                       <integer value="1060" key="NS.object.0"/>
                </object>
                <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
                        <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>