-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for multiple image scales (#21)
* chore: reference .png files for mock images in PoodleSurf iOS * feat: add support for defining multiple scale assets for an image * fix: add 1x and 2x assets * fix: mock image sizes for non-3x devices * fix: HelloMyStateBag iOS example * fix: ios test goldens and fixture bindings * fix: android Image bindings * fix: add @2x and @3x image assets fixtures for tests * fix: fix background drawing on android * fix: failing test * chore: use File instead of Image for mock model images * fix: web goldens
- Loading branch information
Showing
66 changed files
with
313 additions
and
238 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...rf/ios/PoodleSurf/Resources/Assets.xcassets/Direction - North East.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-9.04 KB
...Surf/Resources/Assets.xcassets/Direction - North East.imageset/Direction - North East.pdf
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
...rf/ios/PoodleSurf/Resources/Assets.xcassets/Direction - South West.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-9.74 KB
...Surf/Resources/Assets.xcassets/Direction - South West.imageset/Direction - South West.pdf
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
...le-surf/ios/PoodleSurf/Resources/Assets.xcassets/Direction - South.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-9.18 KB
...ios/PoodleSurf/Resources/Assets.xcassets/Direction - South.imageset/Direction - South.pdf
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
...le-surf/ios/PoodleSurf/Resources/Assets.xcassets/Santa Cruz Banner.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-560 KB
...ios/PoodleSurf/Resources/Assets.xcassets/Santa Cruz Banner.imageset/Santa Cruz Banner.pdf
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
...oodle-surf/ios/PoodleSurf/Resources/Assets.xcassets/Santa Cruz Map.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-1020 KB
...-surf/ios/PoodleSurf/Resources/Assets.xcassets/Santa Cruz Map.imageset/Santa Cruz Map.pdf
Binary file not shown.
Binary file added
BIN
+5.94 KB
...les/poodle-surf/ios/PoodleSurf/Resources/mock/images/Direction - North East.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.59 KB
...les/poodle-surf/ios/PoodleSurf/Resources/mock/images/Direction - South West.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.78 KB
examples/poodle-surf/ios/PoodleSurf/Resources/mock/images/Direction - South.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+692 KB
examples/poodle-surf/ios/PoodleSurf/Resources/mock/images/Santa Cruz Banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.6 KB
examples/poodle-surf/ios/PoodleSurf/Resources/mock/images/Santa Cruz Map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import {Image} from '@diez/designsystem'; | ||
import {Component, property} from '@diez/engine'; | ||
import {ImageNames} from './assets'; | ||
import {Images} from './assets'; | ||
import {palette, textStyles} from './constants'; | ||
|
||
/** | ||
* The navigation title design. | ||
*/ | ||
export class NavigationTitleDesign extends Component { | ||
@property barTintColor = palette.white; | ||
@property icon = Image.scaled(ImageNames.Icon, 3); | ||
@property icon = Images.Icon; | ||
@property title = 'PITTED'; | ||
@property textStyle = textStyles.headerTitle; | ||
} |
Oops, something went wrong.