From 84c8c1209257abf09de68ad8018d5d5d09c2a048 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Fri, 23 Nov 2018 13:29:11 -0500 Subject: [PATCH] added Split for main window --- css/ui.css | 29 ++++++++++++++++++++--------- doc/notes.txt | 2 +- index.html | 21 ++++++++++----------- scripts/sync-dev.sh | 2 +- scripts/sync-version-prod.sh | 2 +- src/platform/verilog.ts | 10 ++++++++-- src/ui.ts | 22 +++++++++++++++++++++- testwave.html | 2 +- 8 files changed, 63 insertions(+), 27 deletions(-) diff --git a/css/ui.css b/css/ui.css index a3c28ae1..0bf4cb64 100644 --- a/css/ui.css +++ b/css/ui.css @@ -66,7 +66,8 @@ } #workspace { background-color:#333; - width:50%; + float:left; + height:100%; } div.editor { line-height:1.25; @@ -217,16 +218,13 @@ a.dropdown-toggle { border-radius:6px 0 6px 6px; } div.emulator { - position:absolute; - right:0; - top:0; - width:50%; + float:left; height:100%; background-color: #666; margin-top: 20px auto 0; } div.emuoverlay { - position:absolute; + position:relative; left:0; top:0; width:100%; @@ -238,7 +236,7 @@ div.emuscope { pointer-events:auto; } div.emuspacer { - width:0; + width:100%; } /* has to be here b/c renders differently after first load if in inline style */ .emuvideo { @@ -312,10 +310,10 @@ canvas.pixelated { } div.replaydiv { position:absolute; - padding:20px; + padding:15px; left:50%; bottom:0; - width:50%; + right:0; background-color: #666; } .slider { @@ -328,6 +326,14 @@ div.replaydiv { background-position: 50%; pointer-events:auto; } +.gutter.gutter-horizontal { + background-image: url('grips/vertical.png'); + cursor: col-resize; +} +.gutter.gutter-vertical { + background-image: url('grips/horizontal.png'); + cursor: row-resize; +} .gutter.gutter-vertical { background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII='); } @@ -335,6 +341,11 @@ div.replaydiv { background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); height:100%; } +.split, +.gutter.gutter-horizontal { + float: left; + height: 100%; +} div.markdown { background-color: #fff; width:94%; diff --git a/doc/notes.txt b/doc/notes.txt index 3afe4758..ade71761 100644 --- a/doc/notes.txt +++ b/doc/notes.txt @@ -78,7 +78,7 @@ TODO: - batariBasic: proper line numbers, listing, syntax highlighting - show player controls for each platform, allow touch support - granular control over time scrubbing, show CPU state -- __MAIN__ for main C file +- error showing replay div before rom starts WEB WORKER FORMAT diff --git a/index.html b/index.html index fbd70b1f..951ca44c 100644 --- a/index.html +++ b/index.html @@ -203,19 +203,19 @@ if (window.location.host.endsWith('8bitworkshop.com')) { + -