Skip to content

Commit

Permalink
Make #gtViewKumpelFor: canvassable [feenkcom/gtoolkit#4140]
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Nov 4, 2024
1 parent e749d8d commit 503c2eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/GToolkit4Git/PureGitTrackedFile.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ PureGitTrackedFile >> gtViewKumpelFor: composite [
^ composite explicit
title: 'Kumpel';
priority: 60;
tooltip: 'Show line history over time';
stencil: [ | container colors strongColors lightColors |
lightColors := BrGlamorousColors distinctTenLightColors
, {Color veryLightGray}.
strongColors := BrGlamorousColors distinctTenStrongColors , {Color gray}.
lightColors := BrGlamorousColors distinctTenLightColors , { Color veryLightGray }.
strongColors := BrGlamorousColors distinctTenStrongColors , { Color gray }.
colors := BrExplicitIdentityNormalizer new
candidates: (1 to: 10);
defaultCandidate: 11.
colors: (1 to: 10);
defaultColor: 11.
container := BlElement new.
self uniqueTrackedLines
do: [ :trackedLine |
Expand All @@ -123,9 +123,9 @@ PureGitTrackedFile >> gtViewKumpelFor: composite [
do: [ :e | e target phlow spawnObject: trackedLine ].
container addChild: element ].
container
size: ((self versions size * (PureGitTrackedLine versionWidth + PureGitTrackedLine versionMargin)) - PureGitTrackedLine versionMargin)
size: ((self versions size * (PureGitTrackedLine versionWidth + PureGitTrackedLine versionMargin))
- PureGitTrackedLine versionMargin)
@ (PureGitTrackedLine lineHeight * self maxLinesCount).
container beInSeparateCompositionLayer asScrollableElement
margin: (BlInsets all: 10) ];
tooltip: 'Show line history over time'
container beInSeparateCompositionLayer asCanvassableElement
margin: (BlInsets all: 10) ]
]
2 changes: 1 addition & 1 deletion src/GToolkit4Git/PureGitTrackedFileVersion.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ PureGitTrackedFileVersion >> gtViewKumpelFor: composite [
relocate: ((versionNumber - 1)
* (PureGitTrackedLine versionWidth + PureGitTrackedLine versionMargin))
@ 0).
container beInSeparateCompositionLayer asScrollableElement
container beInSeparateCompositionLayer asCanvassableElement
margin: (BlInsets all: 10) ]
]

0 comments on commit 503c2eb

Please sign in to comment.