Tk Source Code

Check-in [f1d3c394]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Small corrections.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | bug-0d63621b6c
Files: files | file ages | folders
SHA3-256:f1d3c394169d11fd4e55a0856e699a0b992e4ca9f9b51198355bc1ba51e6b040
User & Date: culler 2019-03-15 23:22:34
Context
2019-03-16
03:55
Fixed a logic error with selected disabled CheckBoxes and RadioButtons. check-in: 5aa31716 user: culler tags: bug-0d63621b6c
2019-03-15
23:22
Small corrections. check-in: f1d3c394 user: culler tags: bug-0d63621b6c
21:31
Dealt with dark BevelButtons and progress bars. check-in: cf564e76 user: culler tags: bug-0d63621b6c
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to macosx/ttkMacOSXTheme.c.

  1291   1291   		kThemeThumbPressed : 0;
  1292   1292   	if (state & TTK_STATE_ALTERNATE) {
  1293   1293   	    info.trackInfo.slider.thumbDir = kThemeThumbDownward;
  1294   1294   	} else {
  1295   1295   	    info.trackInfo.slider.thumbDir = kThemeThumbPlain;
  1296   1296   	}
  1297   1297       }
  1298         -
  1299         -
  1300   1298       BEGIN_DRAWING(d)
  1301   1299   #if MAC_OS_X_VERSION_MIN_REQUIRED > 101300
  1302   1300       if (TkMacOSXInDarkMode(tkwin)) {
  1303   1301   	CGRect bounds = BoxToRect(d, b);
  1304   1302   	NSColorSpace *deviceRGB = [NSColorSpace deviceRGBColorSpace];
  1305   1303   	NSColor *trackColor = [NSColor colorWithColorSpace: deviceRGB
  1306   1304   	 					components: darkTrack
  1307   1305   	 					     count: 4];
  1308   1306   	if (orientation == TTK_ORIENT_HORIZONTAL) {
  1309         -	    bounds = CGRectInset(bounds, 1, bounds.size.height/2 - 3); 
         1307  +	    bounds = CGRectInset(bounds, 1, bounds.size.height/2 - 2); 
  1310   1308   	} else {
  1311         -	    bounds = CGRectInset(bounds, bounds.size.width/2 - 3, 1); 
         1309  +	    bounds = CGRectInset(bounds, bounds.size.width/2 - 3, 2); 
  1312   1310   	}
  1313         -	SolidFillButtonFace(dc.context, bounds, 3, trackColor);
         1311  +	SolidFillButtonFace(dc.context, bounds, 2, trackColor);
  1314   1312       }
  1315   1313   #endif
  1316   1314       ChkErr(HIThemeDrawTrack, &info, NULL, dc.context, HIOrientation);
  1317   1315       END_DRAWING
  1318   1316   }
  1319   1317   
  1320   1318   static Ttk_ElementSpec TrackElementSpec = {
................................................................................
  1383   1381   static void PbarElementSize(
  1384   1382       void *clientData, void *elementRecord, Tk_Window tkwin,
  1385   1383       int *widthPtr, int *heightPtr, Ttk_Padding *paddingPtr)
  1386   1384   {
  1387   1385       SInt32 size = 24;	/* @@@ Check HIG for correct default */
  1388   1386   
  1389   1387       ChkErr(GetThemeMetric, kThemeMetricLargeProgressBarThickness, &size);
  1390         -    //    *widthPtr = *heightPtr = size;
  1391         -    *heightPtr = size;
         1388  +    *widthPtr = *heightPtr = size;
  1392   1389   }
  1393   1390   
  1394   1391   static void PbarElementDraw(
  1395   1392       void *clientData, void *elementRecord, Tk_Window tkwin,
  1396   1393       Drawable d, Ttk_Box b, Ttk_State state)
  1397   1394   {
  1398   1395       PbarElement *pbar = elementRecord;