Skip to content

Commit

Permalink
Merge pull request #9 from juliendelplanque/dev
Browse files Browse the repository at this point in the history
Updates for Pharo 7.
  • Loading branch information
juliendelplanque committed Oct 9, 2018
2 parents c4ffba0 + 6417a02 commit aa425cb
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
'srcDirectory' : 'src'
}
15 changes: 15 additions & 0 deletions .smalltalk.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Mirage',
#directory : 'src',
#platforms : [ #pharo ]
}
],
#testing : {
#categories : [ 'Mirage-Tests' ],
#coverage : {
#categories : [ 'Mirage-Tests' ]
}
}
}
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: smalltalk
sudo: false

notifications:
email:
on_success: never
on_failure: always

os:
- linux
- osx

smalltalk_edge:
source: peteruhnak/smalltalkCI
branch: master

smalltalk:
- Pharo-6.1
- Pharo-7.0
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Mirage
# Mirage [![Build Status](https://travis-ci.org/juliendelplanque/Mirage.svg?branch=master)](https://travis-ci.org/juliendelplanque/Mirage)
![Demo](https://raw.githubusercontent.com/juliendelplanque/Mirage/dev/misc/gif/demo.gif)

# Install
## Stable version
To install the stable version, you can simply use the **Catalog browser** and search for 'WindowsPreviewer'
or evaluate the following code snippet:

### Pharo 6.1
~~~
Metacello new
repository: 'github://JulienDelplanque/Mirage/src';
repository: 'github://JulienDelplanque/Mirage:1.0.0/src';
baseline: 'Mirage';
load
~~~
Expand Down
2 changes: 1 addition & 1 deletion src/Mirage-Carousel/MICarousel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ MICarousel >> initializeTitleMorph [
titleColor: self thumbnailsSelectedBorderColor;
extent: self extent x @ titleMorph extent y;
minimalHeight;
position: titleMorph position x @ (titleMorph position y + self extent y).
position: titleMorph position x @ (titleMorph position y + self extent y + Smalltalk ui theme mirageThumbnailsBorderWidth).
self addMorph: titleMorph.
]

Expand Down
17 changes: 14 additions & 3 deletions src/Mirage-Carousel/MICarouselSettings.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ Class {

{ #category : #accessing }
MICarouselSettings class >> defaultThumbnailUpdateTime [
^ 5
^ 5 seconds
]

{ #category : #accessing }
MICarouselSettings class >> thumbnailUpdateThreadsPriority [
^ 10
]

{ #category : #accessing }
Expand All @@ -21,8 +26,14 @@ MICarouselSettings class >> thumbnailUpdateTime [
]

{ #category : #accessing }
MICarouselSettings class >> thumbnailUpdateTime: anInteger [
thumbnailUpdateTime := anInteger
MICarouselSettings class >> thumbnailUpdateTime: anObject [
anObject isInteger
ifTrue: [ thumbnailUpdateTime := anObject seconds ].

anObject class = Duration
ifFalse: [ self error: 'Thumbnail update time should be a duration or an integer.' ].

thumbnailUpdateTime := anObject
]

{ #category : #'settings-definition' }
Expand Down
6 changes: 0 additions & 6 deletions src/Mirage-Carousel/Pharo3DarkTheme.extension.st

This file was deleted.

6 changes: 6 additions & 0 deletions src/Mirage-Carousel/PharoDarkTheme.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Extension { #name : #PharoDarkTheme }

{ #category : #'*Mirage-Carousel' }
PharoDarkTheme >> mirageThumbnailsSelectedBorderColor [
^ Color orange
]
6 changes: 3 additions & 3 deletions src/Mirage-Carousel/SystemWindow.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ SystemWindow >> mirageThumbnailPropertySymbol [

{ #category : #'*Mirage-Carousel' }
SystemWindow >> scheduleThumbnailUpdate [
[
MICarouselSettings thumbnailUpdateTime seconds wait.
([
MICarouselSettings thumbnailUpdateTime wait.
self mirageMutex
critical: [
self isCollapsed ifFalse: [ self updateMirageThumbnail ] ].
self continueToScheduleUpdate
ifTrue: [ self scheduleThumbnailUpdate ]
] forkNamed: 'MirageThumbnailUpdater'
] forkNamed: 'MirageThumbnailUpdater') priority: MICarouselSettings thumbnailUpdateThreadsPriority
]

{ #category : #'*Mirage-Carousel' }
Expand Down
11 changes: 0 additions & 11 deletions src/Mirage-Highlighter/Pharo3DarkTheme.extension.st

This file was deleted.

11 changes: 11 additions & 0 deletions src/Mirage-Highlighter/PharoDarkTheme.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Extension { #name : #PharoDarkTheme }

{ #category : #'*Mirage-Highlighter' }
PharoDarkTheme >> mirageHighlighterBorderColor [
^ Color orange
]

{ #category : #'*Mirage-Highlighter' }
PharoDarkTheme >> mirageTaskbarTasksHighlighterColor [
^ Color orange
]

0 comments on commit aa425cb

Please sign in to comment.