Skip to content

Commit

Permalink
Changed dropdown cursor to pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
tracygardner committed Aug 16, 2024
1 parent b5bc751 commit 24ba2da
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 33 deletions.
40 changes: 29 additions & 11 deletions blocks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Blockly from "blockly";
import '@blockly/block-plus-minus';
import "@blockly/block-plus-minus";
import { categoryColours, toolbox } from "./toolbox.js";
import {
audioNames,
Expand All @@ -17,12 +17,30 @@ import {
ScrollMetricsManager,
} from '@blockly/plugin-scroll-options';*/
/*import {Multiselect, MultiselectBlockDragger} from '@mit-app-inventor/blockly-plugin-workspace-multiselect';*/

let nextVariableIndexes = {};

export default Blockly.Theme.defineTheme("flock", {
base: Blockly.Themes.Modern,
componentStyles: {
workspaceBackgroundColour: "white",
//'toolboxBackgroundColour': 'blackBackground',
//'toolboxForegroundColour': '#fff',
//'flyoutBackgroundColour': '#252526',
//'flyoutForegroundColour': '#ccc',
//'flyoutOpacity': 1,
//'scrollbarColour': '#797979',
insertionMarkerColour: "#defd6c",
insertionMarkerOpacity: 0.3,
scrollbarOpacity: 0.4,
cursorColour: "#defd6c",
//'blackBackground': '#333',
},
});

const options = {
theme: Blockly.Themes.Modern,
renderer: "zelos",
renderer: "zelos", //"flock",
zoom: {
controls: true,
wheel: false,
Expand All @@ -31,19 +49,19 @@ const options = {
minScale: 0.3,
scaleSpeed: 1.2,
},
move:{
move: {
scrollbars: {
horizontal: true,
vertical: true
horizontal: true,
vertical: true,
},
drag: true,
wheel: true},
wheel: true,
},
toolbox: toolbox,
plugins: {

// blockDragger: ScrollBlockDragger,
//metricsManager: ScrollMetricsManager,
},
// blockDragger: ScrollBlockDragger,
//metricsManager: ScrollMetricsManager,
},
/*plugins: {
, // Required to work
},
Expand Down
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ define(['./workbox-07658ed7'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.ik8klbcnvsg"
"revision": "0.8gkgsbbs71"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
63 changes: 42 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,50 @@
fill: black !important;
font-weight: normal !important;
font-family: 'Asap', Helvetica, Arial, Lucida, sans-serif;
}*/
}
.zelos-renderer.classic-theme .blocklyDropDownText {
fill: black !important;
cursor: pointer;
}
.zelos-renderer.classic-theme .blocklyDropdownText {
fill: black !important;
cursor: pointer;
}
*/

.zelos-renderer.classic-theme .blocklyEditableText {

cursor: pointer !important;

}


.blocklyDropDownArrow {
cursor: pointer;
}

.blockly-ws-search {
background: white;
border: solid lightgrey 0.5px;
box-shadow: 0px 10px 20px grey;
justify-content: center;
padding: 0.25em;
position: absolute;
z-index: 70;
}

.blockly-ws-search-current {
fill: white;
}

.blockly-ws-search-highlight {
fill: #defd6c;
}
background: white;
border: solid lightgrey 0.5px;
box-shadow: 0px 10px 20px grey;
justify-content: center;
padding: 0.25em;
position: absolute;
z-index: 70;
}

.blockly-ws-search-current {
fill: white;
}

.blockly-ws-search-highlight {
fill: #defd6c;
}

body {
display: flex;
Expand Down Expand Up @@ -207,10 +232,6 @@
box-sizing: border-box;
margin-top: auto;
}




</style>
</head>

Expand Down

0 comments on commit 24ba2da

Please sign in to comment.