Skip to content

Commit 7fbc40c

Browse files
committed
Refactor of Tab creation and new file action/button.
Signed-off-by: ubi de feo <[email protected]>
1 parent 1a13a43 commit 7fbc40c

File tree

9 files changed

+228
-134
lines changed

9 files changed

+228
-134
lines changed

backend/shortcuts.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@ module.exports = {
22
global: {
33
CONNECT: 'CommandOrControl+Shift+C',
44
DISCONNECT: 'CommandOrControl+Shift+D',
5-
SAVE: 'CommandOrControl+S',
65
RUN: 'CommandOrControl+R',
76
RUN_SELECTION: 'CommandOrControl+Alt+R',
87
RUN_SELECTION_WL: 'CommandOrControl+Alt+S',
98
STOP: 'CommandOrControl+H',
109
RESET: 'CommandOrControl+Shift+R',
10+
NEW: 'CommandOrControl+N',
11+
SAVE: 'CommandOrControl+S',
1112
CLEAR_TERMINAL: 'CommandOrControl+L',
1213
EDITOR_VIEW: 'CommandOrControl+Alt+1',
1314
FILES_VIEW: 'CommandOrControl+Alt+2',
1415
},
1516
menu: {
1617
CONNECT: 'CmdOrCtrl+Shift+C',
1718
DISCONNECT: 'CmdOrCtrl+Shift+D',
18-
SAVE: 'CmdOrCtrl+S',
1919
RUN: 'CmdOrCtrl+R',
2020
RUN_SELECTION: 'CmdOrCtrl+Alt+R',
2121
RUN_SELECTION_WL: 'CmdOrCtrl+Alt+S',
2222
STOP: 'CmdOrCtrl+H',
2323
RESET: 'CmdOrCtrl+Shift+R',
24+
NEW: 'CmdOrCtrl+N',
25+
SAVE: 'CmdOrCtrl+S',
2426
CLEAR_TERMINAL: 'CmdOrCtrl+L',
2527
EDITOR_VIEW: 'CmdOrCtrl+Alt+1',
2628
FILES_VIEW: 'CmdOrCtrl+Alt+2'

ui/arduino/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<!-- Components -->
2626
<script type="text/javascript" src="views/components/code-editor.js" charset="utf-8"></script>
2727
<script type="text/javascript" src="views/components/connection-dialog.js" charset="utf-8"></script>
28-
<script type="text/javascript" src="views/components/new-file-destination-dialog.js" charset="utf-8"></script>
28+
<script type="text/javascript" src="views/components/new-file-dialog.js" charset="utf-8"></script>
2929
<script type="text/javascript" src="views/components/file-actions.js" charset="utf-8"></script>
3030
<script type="text/javascript" src="views/components/file-list.js" charset="utf-8"></script>
3131
<script type="text/javascript" src="views/components/repl-panel.js" charset="utf-8"></script>

ui/arduino/main.css

+19
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ button.small .icon {
392392
font-size: 1.4em;
393393
width:100%;
394394
}
395+
396+
.dialog .dialog-content input:focus {
397+
outline-color: #008184;
398+
}
395399
.dialog .dialog-content .item {
396400
border-radius: 4.5px;
397401
display: flex;
@@ -419,6 +423,21 @@ button.small .icon {
419423
align-items: center;
420424
background-color: #eee;;
421425
}
426+
427+
.dialog-title{
428+
width: 100%;
429+
font-size: 0.8em;
430+
padding: 0.7em;
431+
margin: 0;
432+
flex-basis: max-content;
433+
}
434+
.dialog-feedback {
435+
font-size: 0.6em;
436+
align-self: stretch;
437+
padding: 0.5em;
438+
background: #eee;
439+
}
440+
422441
#file-manager {
423442
display: flex;
424443
padding: 12px 32px 24px 32px;

0 commit comments

Comments
 (0)