diff --git a/pd/nw/css/default.css b/pd/nw/css/default.css index ea5ea5da9a31f6bdc2d6545e40fcb06a8a72dfd0..4c04893a53dc793edfef52420c9495ad62dd5acb 100644 --- a/pd/nw/css/default.css +++ b/pd/nw/css/default.css @@ -513,10 +513,18 @@ text { /* Dialog to ask to save the patch before quitting */ #save_before_quit { background-color: #f3f3f3; - border:1px solid #bbb; + border:1px solid #f3f3f3; padding: 12px; margin: 12px; - box-shadow: 7px 7px 5px grey; + /*box-shadow: 7px 7px 5px grey;*/ + left: 50%; + top: 50%; + width: 40%; + transform: translate(-50%, -50%); +} + +dialog::backdrop { + background: rgba(0, 0, 0, 0.5); } /* Search dialog */ diff --git a/pd/nw/dialog_text.html b/pd/nw/dialog_text.html index 3ed14d27f3bc6fa986ad4e0da78b8cdbfda8872d..a1e9002949517e3fff74657f941efe57d983f714 100644 --- a/pd/nw/dialog_text.html +++ b/pd/nw/dialog_text.html @@ -17,8 +17,9 @@ </button> </div> <dialog id="save_before_quit"> - <h4>Do you want to save the changes you made before closing the window? - </h4> + <h5 style="text-align: center;"> + Do you want to save the changes you made before closing the window? + </h5> <div class="submit_buttons"> <button type="button" onClick="ok()" diff --git a/pd/nw/pd_canvas.html b/pd/nw/pd_canvas.html index 5b6da1ff2d362252e9e38dbd5d5a75b087490679..33f1453881b0a78d1214af4c5448249b322b223d 100644 --- a/pd/nw/pd_canvas.html +++ b/pd/nw/pd_canvas.html @@ -55,9 +55,9 @@ <ol></ol> </div> <dialog id="save_before_quit"> - <h4><span data-i18n="canvas.save_dialog.prompt"></span> + <h5 style="text-align: center;"><span data-i18n="canvas.save_dialog.prompt"></span> <span id="save_before_quit_filename"></span>? - </h4> + </h5> <div class="submit_buttons"> <button type="button" id="yes_button" @@ -76,6 +76,8 @@ </button> </div> </dialog> + <div id="hscroll" style="background-color: #00000044; position: fixed; left: 2px; bottom: 2px; border-radius: 0px; width: 10px; height: 5px; visibility: hidden;"></div> + <div id="vscroll" style="background-color: #00000044; position: fixed; right: 2px; top: 2px; border-radius: 0px; width: 5px; height: 10px; visibility: hidden;"></div> <script type="text/javascript" src="./pd_canvas.js"></script> </body> </html>