Skip to content

Commit

Permalink
Apply tooltips to places that need them.
Browse files Browse the repository at this point in the history
  • Loading branch information
datkat21 committed Jan 11, 2024
1 parent f3ccc82 commit e7cf824
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
10 changes: 9 additions & 1 deletion pkgs/apps/DevEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default {
newDocument("", "");
},
html: Root.Lib.icons.newFile,
title: "New Document",
},
{
onclick: async (_) => {
Expand All @@ -122,12 +123,14 @@ export default {
openFile();
},
html: Root.Lib.icons.openFolder,
title: "Open...",
},
{
onclick: async (_) => {
await saveFile();
},
html: Root.Lib.icons.save,
title: "Save",
},
{
onclick: async (_) => {
Expand All @@ -137,6 +140,7 @@ export default {
});
},
html: Root.Lib.icons.zoomIn,
title: "Zoom In",
},
{
onclick: async (_) => {
Expand All @@ -146,19 +150,23 @@ export default {
});
},
html: Root.Lib.icons.zoomOut,
title: "Zoom Out",
},
{
style: {
"margin-top": "auto",
},
onclick: (_) => {
Root.Core.startPkg(
URL.createObjectURL(new Blob([editor.getValue()], {type: 'application/javascript'})),
URL.createObjectURL(
new Blob([editor.getValue()], { type: "application/javascript" })
),
// URL.createObjectURL(["data:text/javascript," + encodeURIComponent(`/*${currentDocument.path}*/` +editor.getValue())], {type:'text/plain'}),
false
);
},
html: Root.Lib.icons.run,
title: "Run App",
},
]);

Expand Down
2 changes: 2 additions & 0 deletions pkgs/apps/ImageViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default {
openFile();
},
html: Root.Lib.icons.fileImage,
title: "Select Image...",
},
{
style: {
Expand All @@ -64,6 +65,7 @@ export default {
alert("Not implemented");
},
html: Root.Lib.icons.help,
title: "Help",
},
]);

Expand Down
5 changes: 5 additions & 0 deletions pkgs/apps/Notepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export default {
newDocument("", "");
},
html: Root.Lib.icons.newFile,
title: "New Document",
},
{
onclick: async (_) => {
Expand All @@ -124,18 +125,21 @@ export default {
openFile();
},
html: Root.Lib.icons.openFolder,
title: "Open...",
},
{
onclick: async (_) => {
await saveFile();
},
html: Root.Lib.icons.save,
title: "Save",
},
{
onclick: async (_) => {
await saveAs();
},
html: Root.Lib.icons.saveAll,
title: "Save As...",
},
{
style: {
Expand All @@ -145,6 +149,7 @@ export default {
alert("Not implemented");
},
html: Root.Lib.icons.help,
title: "Help",
},
]);

Expand Down
2 changes: 1 addition & 1 deletion pkgs/components/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
new(
posX = 0,
posY = 0,
text = "Actions",
text = "Action",
parent = document.body,
isAbsolute = true
) {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/lib/FileDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default {
renderFileList(p);
},
html: L.icons.arrowUp,
title: 'Parent Directory'
},
]);

Expand Down Expand Up @@ -297,6 +298,7 @@ export default {
renderFileList(p);
},
html: L.icons.arrowUp,
title: 'Parent Directory'
},
]);

Expand Down

0 comments on commit e7cf824

Please sign in to comment.