Commit Graph
23 Commits
Author SHA1 Message Date
chrisgarrity ad328c065e rename isEmbedded
Liked @paulkaplan’s suggestion that the property get renamed `showBranding` as we use ‘embedded’ in multiple ways that would get confusing.

The embedded project view is ‘playerOnly’, ‘fullscreen’ and ‘showBranding’.
2018-12-05 15:23:06 -05:00
chrisgarrity 84dd45fb4f wip 2018-12-04 10:37:30 -05:00
Ben Wheeler 5681bd99f7 receive canEditTitle and authorThumbnailUrl props 2018-11-10 08:25:32 -05:00
chrisgarrity a194de7fa2 Fix all the little RTL layout bugs (#2961)
* Fix all the little RTL layout bugs

- [ ] borders on toolbox and workspace mirror correctly
- [ ] spacing on stage selector is correct
- [ ] stage size icons are mirrored
- [ ] extension library coming soon text is positioned correctly
- [ ] only mirror blocks icon on the tab (others stay right-handed)
- [ ] drop down icon in create variable modal has correct spacing

* FIx RTL backpack header border-radius

* round the bottom corner of paint/sound editors

This makes the editor’s asset panels match the blocks.
2018-08-23 19:22:07 -04:00
Ben Wheeler 7de2280bd2 padding and margin changes to make www project page layout work without hacks; hack to position monitors correctly 2018-08-12 00:40:22 -04:00
chrisgarrity ca19e77106 Stage-header RTL
Rename buttons first and last instead of left/right. Add RTL styles.
2018-08-01 15:55:10 -04:00
Christopher Willis-Ford d0045d16c9 Fix stage size toggle button styling 2018-06-12 15:45:36 -07: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 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 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
sjhuang26 582d591231 Move z-index values to separate file 2018-06-02 15:54:37 -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
chrisgarrity 45032cc291 Add translation to missing strings
Question, should ‘x’ and ‘y’ be localizable?
2018-04-30 12:22:23 -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 c243e8eb01 Fix numerous draggable images in the GUI.
Images are draggable by default, but when used within buttons or as
clickable elements, they should not be draggable because starting a drag
accidentally prevents the click event.
2018-02-09 09:38:00 -05:00
Ray Schamp 5d07525b9d Merge pull request #1195 from josiahneuberger/exit-fullscreen-escape-button
Exit full-screen mode by hitting escape key
2018-01-11 10:11:26 -05:00
Josiah Neuberger 481db33d23 center/size stage-header controls in the same way as stage in fullscreen 2018-01-07 15:03:46 -05:00
Josiah Neuberger 3625c3a846 added hitting escape button exits fullscreen mode 2018-01-07 12:35:11 -05:00
Matthew Taylor 9c9e67e5a7 GH-829: Add feedback form to menu bar (#1120)
* add feedback form

This implements #829

* small style updates to the stage buttons

from @carljbowman

* remove `stageSize` for now

We eventually need this, but not yet, and it’s causing lint failure.
2017-12-27 16:09:56 -05:00
Matthew Taylor 8dc26d8d30 Partially Implement GH-830: Add coming soon tooltips (#1069)
* Implement GH-830: Add coming soon tooltips

This implements coming soon tooltips for:
* the small stage size
* save, load and language

It also creates the component that can be copied over into the paint editor for use there as well.

Lastly, this does a small refactor on the full screen implementation to include multiple small screen sizes too.
2017-12-20 14:49:27 -05:00
Josiah Neuberger e3221cecd9 Merge remote-tracking branch 'upstream/develop' into add-full-screen-render-view
** Merging in loupe color picker changes from upstream. Resolved conflicts, which
     required some minor changes. The color picker menu from scratch-blocks along
     with other workspace menus will show through stage when zoomed if opened.

     Resolved by moving stage/stage-header z-index from 999 to 5000.
2017-10-01 00:50:15 -04:00
Josiah Neuberger 1e2240faff fixed lint errors from stage zoom update 2017-08-27 04:05:51 -04:00
Josiah Neuberger 65ab58d9a6 fixed outstanding issues with stage zooming
1. Fixed issue with sprites not being dragable when stage zoomed.

  2. Fixed issue with coordinates of mouse position being wrong when
     stage is zoomed. This was caused by the renderer not being
     resized when zooming/unzooming.

  3. Refactored zoom control to separate react component/containter
     with global reducer for isZoomed, which is passed to the stage
     container. This allows for the zoom control to zoom the stage
     menu and stage as seperate containers.

  4. Added icons zoom/unzoom for stage zoom control. Moved icon
     position to be part of stage menu floating to right of start/stop
     buttons.
2017-08-27 03:11:15 -04:00