Commit Graph
113 Commits
Author SHA1 Message Date
chrisgarrity ea6980e39c Flip the direction of a bunch of icons
I think this switches all the icons we saw. I also switched the icons on the tabs (the blocks going the wrong way looked bad).
2018-08-02 17:06:55 -04:00
chrisgarrity 2c30f66c11 RTL tabs
Correct margins for tabs, tab icons.
2018-08-01 15:55:11 -04:00
chrisgarrity 7872583517 Extension button RTL 2018-08-01 15:55:10 -04:00
chrisgarrity 375e9c3f07 Basic RTL 2018-08-01 15:55:10 -04:00
chrisgarrity aba4b4b101 Widen add-extension button to match category.
Goes along with https://github.com/LLK/scratch-blocks/pull/1646
2018-07-16 08:57:04 -04:00
chrisgarrity a8cc5ab1d9 Prevent tab and label wrapping
Fixes #2448 (tab wrapping in Japanese). Also ensures that none of the Sprite info area wraps. Does not address the issue where the sprite info area is too big and pushes the stage info off the screen.
2018-07-02 11:17:17 -04:00
Ray Schamp cb96e03f18 Manage see inside/community from wrapper
And implement toggle on player playground
2018-06-26 09:47:28 -04:00
Paul Kaplan e31ddeb10e Fix target area max-width problem
I don't love this solution, but I remember not being able to figure out a way to not specify the max width because it is needed in order for the flowing to work. Without the max-width, the sprite tiles try to be in a row, pushing over everything else.
2018-06-14 15:53:20 -04:00
Christopher Willis-Ford 7294028274 Use Object.keys for stage size prop type checks 2018-06-12 10:40:50 -07:00
Christopher Willis-Ford 85acaf60f3 Use lodash.omit to exclude props from unpack 2018-06-12 01:15:04 -07:00
Christopher Willis-Ford f57295d08c Split STAGE_SIZE enum into two & clarify purposes
Also remove some obsolete code
2018-06-12 01:15:03 -07:00
Christopher Willis-Ford 40fd462b96 Force workspace to resize on stage size change 2018-06-12 01:15:02 -07:00
Christopher Willis-Ford ea7b2f6553 Make sprite info area adapt for small stage size 2018-06-12 01:15:02 -07:00
Christopher Willis-Ford b03064cccc Fix lint and React complaints 2018-06-12 01:15:02 -07:00
Christopher Willis-Ford cfb55514b5 Implement all staging logic in terms of stageSize
Pass a `stageSize` property down from a centralized `MediaQuery` in the
GUI component, and control the size of the stage and all surrounding
elements based on that value. Note that this is a pure property and is
not stored in the Redux state, since we gain access to the results of
the media query during `render()` and we shouldn't change Redux state
during `render()`.

Some stage-adjacent elements don't yet react correctly to the smallest
stage size.
2018-06-12 01:15:01 -07:00
Paul Kaplan 9e96a560ca Merge pull request #2226 from sjhuang26/issue-2205-z-index
Move z-index values to separate file
2018-06-11 14:41:41 -04:00
Paul Kaplan aa2b949c72 Merge pull request #2303 from sjhuang26/issue-2188-backdrop
Fix "Opening the backdrop library causes the stage backdrop editor to become selected"
2018-06-11 14:38:24 -04:00
sjhuang26 1841710483 Change styles 2018-06-08 20:21:39 -04:00
sjhuang26 ab1645b311 Initial work 2018-06-08 15:11:40 -04:00
sjhuang26 582d591231 Move z-index values to separate file 2018-06-02 15:54:37 -04:00
Paul Kaplan 6efc26cac8 Use options object instead of individual props.
There will probably need to be more backpack config options in the future, so just make this a bit more future proof
2018-05-30 09:46:14 -04:00
Paul Kaplan 8525b6d848 Fix css to keep backpack bar in view 2018-05-29 16:23:53 -04:00
Paul Kaplan a7c5bf7b32 Toggle backpack when backpack host param is available 2018-05-29 10:30:36 -04:00
Paul Kaplan 46416c3585 Merge pull request #2133 from paulkaplan/backpack-component
Show a coming-soon backpack
2018-05-24 14:32:10 -04:00
Paul Kaplan d029836de7 Show a coming-soon backpack 2018-05-23 12:03:35 -04:00
Paul Kaplan 6ee0a343ac Make costume, sound and sprite tiles draggable. 2018-05-23 11:12:06 -04:00
chrisgarrity 2e0cc18738 enable See Community button 2018-05-21 16:54:20 -04:00
chrisgarrity be208ba10d Player mode (#1909)
* Player mode

Add isPlayerOnly property on GUI. Move isFullScreen into mode reducer with isPlayerOnly.

Full screen needs to be a separate prop so that GUI knows what to show when exiting full-screen (either player-only or full editor).

- set `gui-body * {box-sizing: border-box;}` instead of expecting it to be set by the enclosing component/playground, and removed uses of content-box (adjusting sizes as needed) 
- Added `!isPlayerOnly` to the conditions for draggable sprites
- rewrote player example to use player mode.
2018-05-01 10:30:42 -04:00
Paul Kaplan ebaec99b30 Merge pull request #1918 from paulkaplan/fix-costumes-backdrops-tab
Show "Backdrops" instead of "Costumes" in tab text if stage is selected.
2018-04-30 17:33:13 -04:00
Paul Kaplan 9e69478923 Show "Backdrops" instead of "Costumes" in tab text if stage is selected. 2018-04-30 14:55:52 -04:00
Andrew Sliwinski 571f40560e Revert "Bring back "Updates to preview modal for release"" 2018-04-30 14:09:12 -04:00
Paul Kaplan 97a16f1176 Revert "Revert "Updates to preview modal for release (#1864)"" 2018-04-27 11:44:52 -04:00
Paul Kaplan 7caddb90a9 Revert "Updates to preview modal for release (#1864)"
This reverts commit 29d5619d93.
2018-04-27 11:42:27 -04:00
Paul Kaplan 76bfe175aa Framework and demo content for how-tos inside the editor (#1867)
* WIP tips

* WIP first card stack

* WIP use tips reducer to show things to try

* single card deck similar to mask sequence

* collapse option

* Add zoom card

* WIP tips

* Reorganized to redux

* Add zooming to the gifs

* Blue cards + navigation

* Add tips to new nav bar

* Remove blue

* Update design with icons

* deck updates wip

* Updated card decks

* Add videos to libraries

* Update initial card and clicker preview

* Add backdrop to initial card step.

* WIP use vimeo player instead

* New simple spin deck

* Spin around and say hello decks

* Update button and sub-card styles

* Fix "tips" button in menu bar

* Use move cursor

* Fix cursor

* Use same image for deck preview and library

* Fix cursor again

* Update clicker game deck

* Add videos as single-step decks

* Change tips in menu bar to ? icon

* Change “tips” to “how-tos” in library

* Add help icon to cards

* Update deck library images

* Add drag cover for youtube video to prevent catching mouseup

* add a step to spin deck for clicking control

* Blue bar style updates

* Add step pips

* Update clicker game name to run away

* Fix image padding

* Add change color step to spin deck

* Add start sound step to run away deck

* Update say deck to start with adding a sprite

* Remove package lock

* Remove zooming functionality

* Remove unnecassary prototype changes

* Split up rendering of cards into smaller parts

* Use FormattedMessage for all strings

* Automatic lint fixes

* Almost finished with lint errors!

* Fix more lint errors

* Clean up CSS

* Fix webpack config
2018-04-27 11:11:42 -04:00
Andrew Sliwinski 29d5619d93 Updates to preview modal for release (#1864)
* Updates to preview modal for release

* Design tweaks and remove import modal

* Resolve issues with tests

* Copy edits HT Eric

* Resolve lint issue with integration test

* One more change to the disclaimer language

* Add line break
2018-04-25 17:47:22 -04:00
Andrew Sliwinski d1ace5f7d0 Remove feedback form 2018-04-13 13:33:33 -04:00
carljbowman 013c9a1872 Modified some UI details with new color system
Updates include modifications to interaction states for the following: tabs, add menus, forms, and stage selector.
2018-04-09 13:19:05 -04:00
carljbowman 4e30c0b0c7 Unifiy colors variables
- Auditing color CSS and componet CSS to make consistent.
- Made a first pass of changes to increase contrast to elements that previously were problematic
2018-04-09 13:16:26 -04:00
Paul Kaplan 4cd58dc2f2 Only add handlers for costumes/sounds, not needed for blocks. 2018-04-06 10:56:00 -04:00
Paul Kaplan d50766a827 Fix linting 2018-04-06 09:36:09 -04:00
Paul Kaplan 21c37410e6 Manually fire tab change events onclick to fix touching tabs not working
It seems like there is some kind of touch action interference coming
from the blocks panel, where if you touch the tabs on a touchscreen
chromebook/chrome responsive mode, it does not select the tab if the
touch radius is overlapping the blocks panel at all. See gifs in PR for
more explanation. Fixes issue #1283, making chromebooks useable!
2018-04-06 09:24:30 -04:00
Paul Kaplan 0753d0794d Update design for editor tabs with icons, changing blocks to code.
Resolves https://github.com/LLK/scratch-gui/issues/1713
2018-04-04 09:20:30 -04:00
Paul Kaplan 56ffff20a6 Cache Renderer.isSupported because it takes 30ms every time 2018-03-05 12:20:39 -05:00
Paul Kaplan 5542becc44 Add fetching and loading states to display loading screen. 2018-02-27 17:23:20 -05:00
Moran T d2d15f68d4 Revert "Adding constraint on min height for large stage"
This reverts commit 0a741b1083.
2018-02-27 15:13:23 +02:00
Moran T 0a741b1083 Adding constraint on min height for large stage
Should help with smaller screen sizes, where the ratio is different (like some chromebooks)
2018-02-27 15:11:52 +02:00
kchadha 4de8cf1961 Merge pull request #1481 from kchadha/sb2-import
SB2 Import Modal
2018-02-26 17:02:07 -05:00
Paul Kaplan 688ee5c73c Add thermometer menus with new surprise options 2018-02-26 09:51:20 -05:00
Karishma Chadha 954e74be05 Initial SB2 Import UI (button in preview modal + import modal that can load projects via url). Preliminary validation on url, still needs error handling. 2018-02-23 09:44:50 -05:00
Paul Kaplan 64d6c379eb Change navigation => editor tab reducer, fix alphabetization 2018-02-22 15:37:09 -05:00