Revision: 16259
http://sourceforge.net/p/skim-app/code/16259
Author: hofman
Date: 2026-05-09 16:13:07 +0000 (Sat, 09 May 2026)
Log Message:
-----------
reduce resize edge height
Modified Paths:
--------------
trunk/SKNoteOutlineView.m
trunk/SKNoteTableRowView.m
Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m 2026-05-09 15:59:46 UTC (rev 16258)
+++ trunk/SKNoteOutlineView.m 2026-05-09 16:13:07 UTC (rev 16259)
@@ -52,7 +52,7 @@
#define SMALL_COLUMN_WIDTH 32.0
-#define RESIZE_EDGE_HEIGHT 5.0
+#define RESIZE_EDGE_HEIGHT 4.0
@interface SKNoteOutlineView ()
@end
@@ -158,7 +158,7 @@
}
- (BOOL)validateProposedFirstResponder:(NSResponder *)responder
forEvent:(NSEvent *)event {
- if ([responder isKindOfClass:[NSTextField class]]) {
+ if ([responder isKindOfClass:[NSTextField class]] && [(NSTextField
*)responder isEditable]) {
NSPoint mouseLoc = [self convertPoint:[event locationInWindow]
fromView:nil];
NSInteger row = [self rowAtPoint:mouseLoc];
if (row != -1 && NSMouseInRect(mouseLoc, SKSliceRect([self
rectOfRow:row], RESIZE_EDGE_HEIGHT, [self isFlipped] ? NSRectEdgeMaxY :
NSRectEdgeMinY), [self isFlipped]))
Modified: trunk/SKNoteTableRowView.m
===================================================================
--- trunk/SKNoteTableRowView.m 2026-05-09 15:59:46 UTC (rev 16258)
+++ trunk/SKNoteTableRowView.m 2026-05-09 16:13:07 UTC (rev 16259)
@@ -42,7 +42,7 @@
#import "SKNoteOutlineView.h"
#import "NSImage_SKExtensions.h"
-#define RESIZE_EDGE_HEIGHT 5.0
+#define RESIZE_EDGE_HEIGHT 4.0
@implementation SKNoteTableRowView
@@ -50,7 +50,7 @@
[super drawRect:dirtyRect];
if (resizeIndicatorCell == nil) {
- NSImage *image = [NSImage imageWithSize:NSMakeSize(7.0, 5.0)
drawingHandler:^(NSRect r){
+ NSImage *image = [NSImage imageWithSize:NSMakeSize(7.0, 4.0)
drawingHandler:^(NSRect r){
[[NSColor colorWithGenericGamma22White:0.0 alpha:0.7] setStroke];
[NSBezierPath strokeLineFromPoint:NSMakePoint(1.0, 3.5)
toPoint:NSMakePoint(7.0, 3.5)];
[NSBezierPath strokeLineFromPoint:NSMakePoint(3.0, 1.5)
toPoint:NSMakePoint(5.0, 1.5)];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit