Commit graph

26 commits

Author SHA1 Message Date
Andy O'Neill
ffcd546474 feat: add quaternary color for selected dropdowns 2023-03-02 13:46:07 -05:00
Andy O'Neill
46e92fbbfc feat: rename color properties for input text and text 2023-02-15 09:32:37 -05:00
Andy O'Neill
5258e785c1 feat: block text color with stylesheet reloading 2023-02-10 16:32:24 -05:00
Paul Kaplan
756895f80b
Fix broken image for numpad delete button
It turns out we are creating a data-uri SVG for the delete button, but are using string interpolation for the color. If you use hex, this breaks the image on Chrome (but not Safari). Using a standard css color keyword (alternatively using RGB) fix the issue.
2019-06-25 14:19:20 -04:00
Rachel Fenichel
ecad2b9fa3 Move code for pasing colour options into colours.js 2018-08-17 11:09:39 -07:00
Paul Kaplan
944d81255c Update the default stack glow size to be larger.
The reason this was made configurable AND changed is that dark
backgrounds may be able to use a smaller stack glow, but we want the
default to be more obvious than it currently is.
2018-03-20 11:07:06 -04:00
Paul Kaplan
1815177a39 Move stack glow size into a settable parameter like the colors. 2018-03-20 11:07:01 -04:00
Karishma Chadha
b2b7f7d2ff Changing color of list blocks to differentiate from varaible blocks (according to color chart in issue ). 2017-11-29 11:57:55 -05:00
TheBrokenRail
6e53610130 Update Default Colors To "Light Colors" ()
* Update Default Colors To "Light Colors"

* Update colours.js

* Update vertical_playground_compressed.html

* Update vertical_playground.html

* Update horizontal_playground.html
2017-02-22 11:59:32 -05:00
Tim Mickel
1a3ec368e6 Tweaks to Scratch-style toolbox styling ()
* Minor style tweaks to toolbox

* Category ordering to match Blockly XML
2016-10-07 15:36:21 -04:00
Tim Mickel
6006f24801 Add special case for colour picker stroke () 2016-07-26 14:30:09 -04:00
Tim Mickel
069cc81871 Feature/colors july 15 ()
* Colours July 15, based on updated spec

* Recompile July 15
2016-07-15 11:42:52 -04:00
Tim Mickel
51f38c0c95 Add basic value reporting that uses drop-down ()
* Add basic value reporting that uses drop-down

* Encode HTML entities for value reporting
2016-07-07 18:35:41 -04:00
Tim Mickel
367aaa1cf1 Add some more blocks ()
* Lint & menu color for keys

* Update colours to provided spec

* Finish current set of motion blocks

* Add say/think blocks; remove WeDo blocks
2016-07-05 09:58:16 -04:00
Tim Mickel
d106b41b50 Replacement marker glow similar to Scratch 2.0 ()
* Replacement marker glow similar to Scratch 2.0

* Update REPLACEMENT_GLOW_RADIUS=2
2016-06-21 16:20:37 -04:00
Tim Mickel
e7a9ad2f93 Add some vertical blocks and remove some old ones ()
* Add `add` block example

* Add if, if-else, equals; remove old if-elses

* Naming fixes and removal of a dummy input for if-else

* Recompile for vertical blocks examples
2016-05-25 14:13:21 -04:00
Tim Mickel
50ff6e4654 Implement field_number stub and num-pad on mobile ()
* Implement basic field_number type

* Add whole number and positive number

* Remove bad arguments for showEditor_

* Basic implementation and styling of num-pad

* Remove virtual keyboards; add selection and read-only

* Add editing for the number pad

* Add backspace button to number pad

* Fix text padding for font-weight and extra magic

* Don't show decimal point for integers

* Re-update default WeDo numbers

* Refactor and improve documentation of field_number
2016-04-26 21:32:29 -04:00
Tim Mickel
279db40f07 Implement stack glowing ()
* Update stack glow filter to spec

* Update rendering for glowBlock; add stubs for stack glow

* Add application of stack glow filter

* Add glow buttons to playground

* Partial final version of stack glow

* Set the drag shadow on the drag group instead of blocks

Prevents overriding of the stack glow filter

* Simplify generation of feFuncA table in stack glow
2016-04-26 13:04:37 -04:00
Rodrigo Queiro
0ea1a4152d Add Apache 2.0 license header to new files
Files that were forked off Blockly (eg block_render_svg_horizontal.js)
remain marked as Copyright Google, whereas new files are Copyright MIT.
2016-04-25 15:34:22 +02:00
Tim Mickel
cf6725ba4c Implement drop-down menus and icon picker field ()
* Icon menu and drop-down stubs

* Recompile 4/15

* Fix stubs to draw shadow block for drop-down

* Fix rendering of shadow for icon menu

* Add arrow to dropdown button

* Add drop-down buttons to rest of examples

* Implementation of drop-down div including positioning

* Drop-downs take colours from the blocks

* Fix scaled secondary position of drop-downs

* Fix arrow positioning for RTL

* Use SVG parentNode for sizing dropdown

* Use transform for drop-down positioning

* Add basic DropDownDiv hide

* Add animation-in to dropdown

* More subtle drop-down animation and shadow

* Add icon menu example

* Use options style of Blockly FieldImage for drop-down

* Add default value for iconmenu

* Add example hover, active states for iconmenu buttons

* Update dropdown_icon example

* Implement icon-menu value handling and default value

* Add updating the parent block image field to dropdown

* Drop-down animates out; add hooks to hide for various Blockly happenings

* Add pointer cursor for drop-down icons

* Improve documentation for drop-downs and minor refactor

* Factor out getSrcForValue in iconmenu

* Blocks take on the icon of their icon-menu

* Add basic accessibility properties, similar to closure

* Remove extra drop-down example; update playgrounds

* Remove unnecessary colour overrides

* Add onHide, colour changing, fix references in dropdowndiv

* Flip arrow when the drop-down is rendered above

* Hide the icon menu drop-down on second tap of button

* Add preventDefault to button ontouchstart

* Updates to drop-down from Carl

* Add icon-menu placeholders and a crazy demo

* Fix naming to normalize (drop-down, DropDown)

* Add license header
2016-04-21 15:33:28 -04:00
Tim Mickel
f1977ded18 Implement drop shadow during drag ()
* Basic implementation of drop shadow during drag

* Adjust shadow position

* Factor out constants for drag shadows

* Remove unused feOffset
2016-04-20 13:18:04 -04:00
Tim Mickel
33a71b112f Implement number and string field specs ()
* Animate the font-size of text fields

* Allow WidgetDiv to hide immediately, no animation

And add calls to this where the div animation may become out of sync with the field itself.

* Fix CSS colour substitution to replace all

* Add box-shadow to text field

* Fix padding on blocklyHtmlInput

* Add utility for measuring text using canvas

* Grow the input textbox based on the text size

* Fix the text field width to a maximum depending on render mode

* Fix text input field height for scaling

* Position text input field based width

* Animate out width, height, margin of text input

* Fix scale of marginLeft and extra 1px

* Fix height, padding, font-weight on text input field

* Make input field text smaller on truncation per spec

* Re-apply change to Blockly.WidgetDiv.disposeAnimationTimer_

* Add comment to Blockly.Field.maxDisplayLength
2016-04-15 16:44:30 -04:00
Tim Mickel
62509d41ad Slight refactor of colour handling; add additional properties ()
* Add and render opacity of blocks

* Add insertion marker colour and opacity

* Add goog.require for Colours in block.js

* Add color of text field during editing

* Add colour overriding upon injection

* Add colours to CSS at run-time injection

* Expand colour variables to include toolbox, flyout, scrollbars

* Example of dark mode in horizontal_playground

* Fix loop style for colours
2016-04-14 18:04:17 -04:00
Tim Mickel
2b3ec51847 Blockly.Colours.textField camelCase 2016-03-01 16:28:29 -05:00
Tim Mickel
9571aa257e Get text field colour from Blockly.Colours 2016-03-01 15:45:55 -05:00
Tim Mickel
b0a6f29ccf Add colour library and primary colours for each block 2016-03-01 15:30:59 -05:00