From 3898f7f3f7e0ba2f984a800a3d898ce5302351be Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 17 Mar 2012 16:01:12 +0100 Subject: [PATCH] Improved dialogs in Speed Dial + fixed issue with saving page screen. - closes #319 - closes #318 --- src/lib/data/html/speeddial.html | 71 +++++++++++++---------- src/lib/network/qupzillaschemehandler.cpp | 1 + src/lib/other/pagescreen.cpp | 10 +++- src/lib/other/pagescreen.ui | 4 +- src/lib/other/statusbarmessage.cpp | 1 - src/lib/other/statusbarmessage.h | 3 - src/lib/tools/animatedwidget.cpp | 8 +++ 7 files changed, 57 insertions(+), 41 deletions(-) diff --git a/src/lib/data/html/speeddial.html b/src/lib/data/html/speeddial.html index 38fa03792..e32b5b8d6 100644 --- a/src/lib/data/html/speeddial.html +++ b/src/lib/data/html/speeddial.html @@ -24,19 +24,18 @@ span.edit:hover {border-color: grey; border-radius: 3px;} span.reload {width: 16px;height: 16px;position: absolute;left: 92%;top: 0px;background: url(%IMG_RELOAD%) no-repeat;background-position: center;border: 1px solid transparent;display: none;} span.reload:hover {border-color: grey; border-radius: 4px;} -#overlay-edit {width: 380px;max-height: 265px;border-width: 20px;margin-left: auto;margin-right: auto;margin-top: 100px; --webkit-border-image: url(%BOX-BORDER%) 25;} +#overlay-edit {width: 380px;max-height: 265px;border-width: 20px;margin-left:auto;margin-right: auto;margin-top: 100px;-webkit-border-image: url(%BOX-BORDER%) 25;-webkit-box-shadow: 0px 5px 80px #505050;border-radius:10px;} #overlay-edit img {display: block;margin-left: auto;margin-right: auto;} -#overlay-edit input[type="submit"] {margin-left: auto;margin-right: auto;margin-top: 10px;display: block;width: 200px;} +#overlay-edit .buttonbox input {margin-right:0px;margin-left:3px;} .formTable {width: 350px;margin-left: auto;margin-right: auto;margin-top: 15px;} .formTable input[type="text"] {width: 100%;-webkit-user-select: auto;} .sett {position: absolute;right:36px;top:10px;width: 24px;height: 24px;background: url(%IMG_SETTINGS%); cursor: pointer;} -#settingsBox {position: absolute;right: 58px;top: 25px;width: auto;height: auto;background: #eeeeee;margin: 5px;border-radius: 15px;padding: 8px 15px;border: 1px solid transparent;opacity: 1;z-index: 200;} -#settingsBox .content {float: right;margin-left: 115px;} -#settingsBox .thumbhold {margin: 2px;padding: 1px;border-radius: 10px;text-align: center;width: 100px; height: 100px;background: #AAA;} -#settingsBox .thumbhold p {margin: 0;padding: 0;background: #eeeeee url(%IMG_BACKGROUND%) no-repeat center center;background-size: %B_SIZE%;width: 98px;height:98px;border-radius: 10px;position: relative;left: 1px;top: 1px;} +#settingsBox {margin-left:auto;margin-right: auto;margin-top: 100px;width: 350px;height: auto;padding:0 8px;-webkit-border-image: url(%BOX-BORDER%) 25;-webkit-box-shadow: 0px 5px 80px #505050;border-radius:10px;border-width: 20px;} +#settingsBox .content {margin-left:auto;margin-right:auto;padding-bottom:2px;border-bottom: 1px solid #888;} +#settingsBox .thumbhold {margin-left:auto;margin-right:auto;margin-bottom: 5px;padding: 1px;border-radius: 10px;text-align:center;width:180px;height:100px;background: #AAA;} +#settingsBox .thumbhold p {padding: 0;background: #eeeeee url(%IMG_BACKGROUND%) no-repeat center center;background-size: %B_SIZE%;width: 178px;height:98px;border-radius: 10px;position: relative;left: 1px;top: 1px;line-height:98px;cursor:default;} #settingsBox p label {margin: 2px;padding: 1px;text-align: center;} #settingsBox p select {margin: 2px;padding: 1px;text-align: center;width: auto;} #settingsBox p select option {text-align: center;} @@ -45,6 +44,10 @@ span.reload:hover {border-color: grey; border-radius: 4px;} #settingsBox .rowsel {margin: 2px;padding: 3px 0;border-bottom: 1px solid #888;} #settingsBox .rowsel input {text-align: center;width: 80%;height: 12px;margin: 0px;padding-bottom: 0;} #settingsBox .rowsel span {font-weight: bold;text-align: center;margin: 2px;margin-right: 7px;display: inline-block;width: 25px;} + +.buttonbox {margin-top: 5px;margin-bottom:-5px;text-align:right;} +/*.buttonbox input {margin-left:3px; margin-right:0;padding:0;}*/ +.overlay { background:-webkit-radial-gradient(rgba(127, 127, 127, 0.5),rgba(127, 127, 127, 0.5) 35%,rgba(0, 0, 0, 0.7));bottom:0;left: 0;padding: 20px;padding-bottom: 130px;position: fixed;right:0;top:0;} @@ -85,6 +88,10 @@ function onFetchTitleClick(checkbox) { $('#titleLine').css({'visibility' : displayStyle }); } +function hideEditBox() { + $('#fadeOverlay').fadeOut("slow", function() {$("#fadeOverlay").remove();}); +} + function onEditClick(box) { editingId = $(box).index(); var boxUrl = $(box).children('a').first().attr('href'); @@ -92,21 +99,21 @@ function onEditClick(box) { if (boxUrl === '') boxUrl = 'http://'; - $('body').append(''); + $('body').append(''); - $('#fadeOverlay').css({'filter' : 'alpha(opacity=95)'}).fadeIn(); - $('#fadeOverlay').click(function() { $(this).fadeOut("slow", function() {$("#fadeOverlay").remove();}); }); + $('#fadeOverlay').css({'filter' : 'alpha(opacity=100)'}).fadeIn(); + $('#fadeOverlay').click(function() {hideEditBox()}); $('#overlay-edit').click(function(event) { event.stopPropagation(); }); $('#formUrl').focus(); } @@ -144,7 +151,7 @@ function boxEdited() { speeddial.removeImageForUrl(a.getAttribute('href')); }); } else { - $('#fadeOverlay').fadeOut("slow", function() {$("#fadeOverlay").remove();}); + hideEditBox(); } speeddial.changed(allPages()); } @@ -364,7 +371,7 @@ $(document).ready(function () {
- + -