File tree Expand file tree Collapse file tree 1 file changed +24
-15
lines changed
CodeEdit/Features/WindowCommands Expand file tree Collapse file tree 1 file changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -45,26 +45,35 @@ struct ViewCommands: Commands {
45
45
}
46
46
. keyboardShortcut ( " p " , modifiers: [ . shift, . command] )
47
47
48
- Button ( " Increase font size " ) {
49
- if !( editorFontSize >= 288 ) {
50
- editorFontSize += 1
51
- }
52
- if !( terminalFontSize >= 288 ) {
53
- terminalFontSize += 1
48
+ Menu ( " Font Size " ) {
49
+ Button ( " Increase " ) {
50
+ if !( editorFontSize >= 288 ) {
51
+ editorFontSize += 1
52
+ }
53
+ if !( terminalFontSize >= 288 ) {
54
+ terminalFontSize += 1
55
+ }
54
56
}
55
- }
56
- . keyboardShortcut ( " + " )
57
- . disabled ( windowController == nil )
57
+ . keyboardShortcut ( " + " )
58
58
59
- Button ( " Decrease font size " ) {
60
- if !( editorFontSize <= 1 ) {
61
- editorFontSize -= 1
59
+ Button ( " Decrease " ) {
60
+ if !( editorFontSize <= 1 ) {
61
+ editorFontSize -= 1
62
+ }
63
+ if !( terminalFontSize <= 1 ) {
64
+ terminalFontSize -= 1
65
+ }
62
66
}
63
- if !( terminalFontSize <= 1 ) {
64
- terminalFontSize -= 1
67
+ . keyboardShortcut ( " - " )
68
+
69
+ Divider ( )
70
+
71
+ Button ( " Reset " ) {
72
+ editorFontSize = 12
73
+ terminalFontSize = 12
65
74
}
75
+ . keyboardShortcut ( " 0 " , modifiers: [ . command, . control] )
66
76
}
67
- . keyboardShortcut ( " - " )
68
77
. disabled ( windowController == nil )
69
78
70
79
Button ( " Customize Toolbar... " ) {
You can’t perform that action at this time.
0 commit comments