Skip to content

Commit 79d8ca2

Browse files
committed
Fix status bar height, add word wrap toggle
1 parent c8e4fae commit 79d8ca2

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

imgui.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Window][Editor]
22
Pos=0,0
3-
Size=1920,1009
3+
Size=1005,623
44
Collapsed=0
55

66
[Window][DockSpace]

pcode-settings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"window_w": 1920,
3-
"window_h": 1009,
2+
"window_w": 1005,
3+
"window_h": 623,
44
"dark_theme": true,
55
"show_status_bar": true,
66
"word_wrap": true,
@@ -12,6 +12,6 @@
1212
"tab_size": 4,
1313
"font_size": 18,
1414
"font_name": "JetBrainsMonoNLNerdFont-Regular",
15-
"last_open_dir": "C:\\Users\\casse\\github\\pcode-editor\\src",
16-
"recent_files": ["C:\\Users\\casse\\github\\pcode-editor\\src\\main.cpp", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.cpp", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.h", "C:\\Users\\casse\\github\\pcode-editor\\CMakeLists.txt", "C:\\Users\\casse\\github\\pcode-editor\\TESTS.md", "C:\\Users\\casse\\github\\pcode-editor\\IMPLEMENTATION_SUMMARY.md", "C:\\Users\\casse\\github\\pcode-editor\\BUILD_SYSTEM.md", ".\\BUILD_SYSTEM.md"]
15+
"last_open_dir": "C:\\Users\\casse\\github\\pcode-editor",
16+
"recent_files": ["C:\\Users\\casse\\github\\pcode-editor\\IMPLEMENTATION_SUMMARY.md", "C:\\Users\\casse\\github\\pcode-editor\\src\\main.cpp", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.cpp", "C:\\Users\\casse\\github\\pcode-editor\\src\\editor_app.h", "C:\\Users\\casse\\github\\pcode-editor\\CMakeLists.txt", "C:\\Users\\casse\\github\\pcode-editor\\TESTS.md", "C:\\Users\\casse\\github\\pcode-editor\\BUILD_SYSTEM.md", ".\\BUILD_SYSTEM.md"]
1717
}

src/editor_app.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,15 @@ void EditorApp::update_native_status_bar() {
365365
int clientWidth = clientRect.right - clientRect.left;
366366
int clientHeight = clientRect.bottom - clientRect.top;
367367

368-
// Calculate needed size for status bar - taller to not overlap scrollbar
369-
int statusHeight = 30;
368+
// Calculate needed size for status bar
369+
int statusHeight = 24;
370370
int statusY = clientHeight - statusHeight;
371371

372372
// Resize the status bar control to match window width
373373
MoveWindow(status_hwnd, 0, statusY, clientWidth, statusHeight, TRUE);
374374

375375
// Simple 2-part layout (left side + fill right)
376-
int part1 = 120; // Mode area - wider for full words
376+
int part1 = 100; // Mode area - wider for full words
377377
int parts[2] = {part1, -1};
378378
SendMessage(status_hwnd, SB_SETPARTS, 2, (LPARAM)parts);
379379

0 commit comments

Comments
 (0)