Skip to content

Commit

Permalink
Merge pull request #1063 from jecisc/1061-Introduce-iconNamed-in-IceD…
Browse files Browse the repository at this point in the history
…efinition-and-IceTipModel-and-remove-all-the-terrible-Smalltalk-ui-icons

1061-Introduce-iconNamed-in-IceDefinition-and-IceTipModel-and-remove-all-the-terrible-Smalltalk-ui-icons
  • Loading branch information
guillep authored Nov 6, 2018
2 parents faf780c + b3dc111 commit df27cfe
Show file tree
Hide file tree
Showing 22 changed files with 43 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
private
iconForStatus: status
status = 'success' ifTrue: [ ^ self iconNamed: #testGreen ].
status = 'failure' ifTrue: [ ^ self iconNamed: #testRed ].
status = 'pending' ifTrue: [ ^ self iconNamed: #testYellow ].

^ self iconNamed: #testNotRun
^ self iconNamed: (self iconNameForStatus: status)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
private
iconNameForStatus: status
status = 'success' ifTrue: [ ^ #testGreen ].
status = 'failure' ifTrue: [ ^ #testRed ].
status = 'pending' ifTrue: [ ^ #testYellow ].

^ #testNotRun
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
testing
defaultMenuIconName
^ #branch
^ #github

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
accessing
icon

^ (Smalltalk ui iconNamed: #pharo) scaledToSize: 16@16
^ (self iconNamed: #pharo) scaledToSize: 16 @ 16
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
testing
defaultMenuIconName
^ #branch
^ #pharo

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*Iceberg-TipUI
icon

^ Smalltalk ui icons iconNamed: #class
^ self iconNamed: #class
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*Iceberg-TipUI
operationIcon

^ Smalltalk ui icons iconNamed: #changeUpdate
^ self iconNamed: #changeUpdate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Iceberg-TipUI
iconNamed: aSymbol
^ Smalltalk ui icons iconNamed: aSymbol
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*Iceberg-TipUI
icon

^ Smalltalk ui icons iconNamed: #group
^ self iconNamed: #group
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
*Iceberg-TipUI
icon

self isRightChosen ifTrue: [
^ Smalltalk ui icons iconNamed: #changeBlock ].
self isLeftChosen ifTrue: [
^ Smalltalk ui icons iconNamed: #forward ].
self isRightChosen ifTrue: [ ^ self iconNamed: #changeBlock ].
self isLeftChosen ifTrue: [ ^ self iconNamed: #forward ].

^ self operationIcon
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*Iceberg-TipUI
icon

^ Smalltalk ui icons iconNamed: #dirtyMonticelloPackage
^ self iconNamed: #dirtyMonticelloPackage
3 changes: 3 additions & 0 deletions Iceberg-TipUI.package/IceTipAction.class/class/iconNamed..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
iconNamed: aSymbol
^ Smalltalk ui icons iconNamed: aSymbol
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
iconNamed: aSymbol
^ Smalltalk ui icons iconNamed: aSymbol
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
iconNamed: aSymbol
^ Smalltalk ui icons iconNamed: aSymbol
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
iconNamed: aSymbol
^ self class iconNamed: aSymbol
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*Iceberg-TipUI
icon

^ Smalltalk ui icons iconNamed: #trait
^ self iconNamed: #trait
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-TipUI
icon
^ Smalltalk ui icons iconNamed: #changeAdd
^ self iconNamed: #changeAdd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-TipUI
icon
^ Smalltalk ui icons iconNamed: #changeUpdate
^ self iconNamed: #changeUpdate
2 changes: 1 addition & 1 deletion Iceberg-TipUI.package/MCRemoval.extension/instance/icon.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*Iceberg-TipUI
icon
^ Smalltalk ui icons iconNamed: #changeRemove
^ self iconNamed: #changeRemove
23 changes: 6 additions & 17 deletions Iceberg.package/Iceberg.class/class/settingsOn..st
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
settings
settingsOn: aBuilder
settingsOn: aBuilder
<systemsettings>
(aBuilder group: #Iceberg)
parent: #SCM;
with: [
(aBuilder setting: #enableMetacelloIntegration)
with: [ (aBuilder setting: #enableMetacelloIntegration)
target: self;
order: 0.1;
label: 'Enable Metacello integration';
description: 'If selected, Metacello github:// repositories will be loaded using iceberg';
" icon: (Smalltalk ui icons iconNamed: #smallConfigurationIcon);"
with: [
(aBuilder pickOne: #remoteTypeSelector)
with: [ (aBuilder pickOne: #remoteTypeSelector)
label: 'Remote type';
description: 'When creating an Iceberg repository out of a github:// URL choose whether you want to user an SCP URL (i.e. with the form ''[email protected]:<username>/<project>.git'') or an HTTPS URL (i.e. with the form ''https://github.com/<username>/<project>.git''';
domainValues: {
'SCP ([email protected]:<username>/<project>.git)' -> #scpUrl.
'HTTPS (https://github.com/<username>/<project>.git)' -> #httpsUrl
}.
].
"(aBuilder setting: #showSystemRepositories)
order: 0.2;
label: 'Include system repositories by default';
description: 'If checked then system repositories (like ''pharo'') will be shown in repositories list by default';
target: self."
]
domainValues:
{('SCP ([email protected]:<username>/<project>.git)' -> #scpUrl).
('HTTPS (https://github.com/<username>/<project>.git)' -> #httpsUrl)} ] ]

0 comments on commit df27cfe

Please sign in to comment.