- - -
-
-
-
-
- -
-diff --git a/bin/locale/cs_CZ.qm b/bin/locale/cs_CZ.qm index 725025025..ee04a0fce 100644 Binary files a/bin/locale/cs_CZ.qm and b/bin/locale/cs_CZ.qm differ diff --git a/bin/locale/de_DE.qm b/bin/locale/de_DE.qm index 10ac30f36..f1b53187d 100644 Binary files a/bin/locale/de_DE.qm and b/bin/locale/de_DE.qm differ diff --git a/bin/locale/el_GR.qm b/bin/locale/el_GR.qm index e82ba7eae..58e808863 100644 Binary files a/bin/locale/el_GR.qm and b/bin/locale/el_GR.qm differ diff --git a/bin/locale/es_ES.qm b/bin/locale/es_ES.qm index 7562b3a61..c82c5d3e5 100644 Binary files a/bin/locale/es_ES.qm and b/bin/locale/es_ES.qm differ diff --git a/bin/locale/fr_FR.qm b/bin/locale/fr_FR.qm index 88505e57e..edd2352a1 100644 Binary files a/bin/locale/fr_FR.qm and b/bin/locale/fr_FR.qm differ diff --git a/bin/locale/it_IT.qm b/bin/locale/it_IT.qm index 93d4ca945..2962eae51 100644 Binary files a/bin/locale/it_IT.qm and b/bin/locale/it_IT.qm differ diff --git a/bin/locale/nl_NL.qm b/bin/locale/nl_NL.qm index 91580c46a..ff77005c1 100644 Binary files a/bin/locale/nl_NL.qm and b/bin/locale/nl_NL.qm differ diff --git a/bin/locale/pl_PL.qm b/bin/locale/pl_PL.qm index 8464e0284..b80530744 100644 Binary files a/bin/locale/pl_PL.qm and b/bin/locale/pl_PL.qm differ diff --git a/bin/locale/pt_PT.qm b/bin/locale/pt_PT.qm index 02b4dcdf3..802899976 100644 Binary files a/bin/locale/pt_PT.qm and b/bin/locale/pt_PT.qm differ diff --git a/bin/locale/ru_RU.qm b/bin/locale/ru_RU.qm index 8198038e3..7edf4ce06 100644 Binary files a/bin/locale/ru_RU.qm and b/bin/locale/ru_RU.qm differ diff --git a/bin/locale/sk_SK.qm b/bin/locale/sk_SK.qm index 0d8c1fcf3..9a801c8ae 100644 Binary files a/bin/locale/sk_SK.qm and b/bin/locale/sk_SK.qm differ diff --git a/bin/locale/sr_BA.qm b/bin/locale/sr_BA.qm index 35856bf89..ab6fb080b 100644 Binary files a/bin/locale/sr_BA.qm and b/bin/locale/sr_BA.qm differ diff --git a/bin/locale/sr_RS.qm b/bin/locale/sr_RS.qm index ca927d209..064224874 100644 Binary files a/bin/locale/sr_RS.qm and b/bin/locale/sr_RS.qm differ diff --git a/bin/locale/zh_CN.qm b/bin/locale/zh_CN.qm index d4dbe52ff..d073d26ae 100644 Binary files a/bin/locale/zh_CN.qm and b/bin/locale/zh_CN.qm differ diff --git a/src/app/qupzilla.cpp b/src/app/qupzilla.cpp index e471c69f9..851ab2fb0 100644 --- a/src/app/qupzilla.cpp +++ b/src/app/qupzilla.cpp @@ -793,7 +793,7 @@ void QupZilla::aboutToShowHelpMenu() m_menuHelp->addAction(m_actionAbout); m_menuHelp->addSeparator(); #endif - QAction* infoAction = new QAction(QIcon(":/icons/menu/informations.png"), tr("Informations about application"), m_menuHelp); + QAction* infoAction = new QAction(QIcon(":/icons/menu/informations.png"), tr("Information about application"), m_menuHelp); infoAction->setData(QUrl("qupzilla:about")); infoAction->setShortcut(QKeySequence(QKeySequence::HelpContents)); connect(infoAction, SIGNAL(triggered()), this, SLOT(loadActionUrlInNewTab())); diff --git a/src/data/html/speeddial.html b/src/data/html/speeddial.html index 120973365..8dd15e837 100644 --- a/src/data/html/speeddial.html +++ b/src/data/html/speeddial.html @@ -8,10 +8,10 @@ body * {-webkit-user-select: none;font-size: 100%;line-height: 1.6;margin: 0px;} .add {position: absolute;right:10px;top:10px;width: 24px;height: 24px;background: url(%IMG_PLUS%); cursor: pointer;} #quickdial {margin: auto;text-align: center;} -#quickdial div.entry {position: relative;width: %SD-SIZE%px;float: left;border-width: 10px; +#quickdial div.entry {position: relative; float: left;border-width: 10px; -webkit-border-image: url(%BOX-BORDER%) 10;margin: 5px;} #quickdial img {display: block;margin: auto;} -#quickdial img[src*=".png"] {width: %SD-SIZE%px;height: auto;} +#quickdial img[src*=".png"] {height: auto;} #quickdial a {position: absolute;left: 0px;top: 0px;width: 100%;height: 87%;} div.entry:hover .edit, div.entry:hover .close, div.entry:hover .reload{display: inline;} @@ -34,7 +34,7 @@ span.reload:hover {border-color: grey; border-radius: 4px;} .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: 250px;height: auto;background: #eeeeee;margin: 5px;-webkit-box-shadow: 0 0 6px 6px#888;box-shadow: 0 0 6px 6px #888;border-radius: 15px;padding: 8px 15px;border: 1px solid transparent;opacity: 1;z-index:200} +#settingsBox {position: absolute;right:58px;top:25px;width: 250px;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;} #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;} @@ -60,10 +60,7 @@ var TITLE_REMOVE = '%TITLE-REMOVE%'; var TITLE_RELOAD = '%TITLE-RELOAD%'; var TITLE_FETCHTITLE = '%TITLE-FETCHTITLE%'; var MAX_PAGES_ROW = %ROW-PAGES%; - -$(document).ready(function () { - $('head').append(''); -}); +var DIAL_WIDTH = %SD-SIZE%; var editingId = -1; @@ -276,10 +273,14 @@ function removeBox(id) { } function alignPage() { + $('#quickdial img[src*=".png"]').css('width', DIAL_WIDTH); + $('#quickdial div.entry').css({'width' : DIAL_WIDTH + 'px', + 'height' : Math.round(DIAL_WIDTH / 1.54) + 'px'}); + var width = $(window).width(); var height = $(window).height(); - var boxWidth = Math.floor(%SD-SIZE% + 30); - var boxHeight = Math.floor(Math.round(%SD-SIZE% / 1.54) + 40); + var boxWidth = Math.floor(DIAL_WIDTH + 30); + var boxHeight = Math.floor(Math.round(DIAL_WIDTH / 1.54) + 40); var maxBoxes = Math.floor(width / boxWidth); if (maxBoxes > MAX_PAGES_ROW) maxBoxes = MAX_PAGES_ROW; @@ -291,7 +292,9 @@ function alignPage() { var boxesCount = $("#quickdial").children("div").size(); var rows = Math.ceil(boxesCount / maxBoxes); var margintop = (height - rows * boxHeight) / 2; + if (margintop < 0) margintop = 0; + $("#quickdial").css('margin-top', margintop + 'px'); } @@ -303,22 +306,15 @@ function bgImageSel() { } function saveSettings() { -<<<<<<< HEAD - var BgImg = document.getElementById('BgImgHold').value; - var BgImgSz = document.getElementById('BgImgSelSiz').value; - MAX_PAGES_ROW = document.getElementById('PgInRow').value; - speeddial.setBackgroundImage(BgImg); - speeddial.setBackgroundImageSize(BgImgSz); - speeddial.setPagesInRow(MAX_PAGES_ROW); + MAX_PAGES_ROW = $('#PgInRow').val(); + DIAL_WIDTH = parseInt($('#SdSize').val()); - document.getElementById('settingsBox').style.display = 'none'; - alignPage(); -======= speeddial.setBackgroundImage($('#BgImgHold').val()); speeddial.setBackgroundImageSize($('#BgImgSelSiz').val()); - speeddial.setPagesInRow($('#PgInRow').val()); - speeddial.setSdSize($('#SdSize').val()); ->>>>>>> 5a9e3ba389b76c5e8b0477483f6298ff5dd53ddc + speeddial.setPagesInRow(MAX_PAGES_ROW); + speeddial.setSdSize(DIAL_WIDTH); + + alignPage(); } function bgImgToggle() { @@ -339,7 +335,7 @@ function sdSizeToggle() { var SdSizeSl = document.getElementById('sliderValueSd'); SdSize.disabled = (check.checked ? false : true); SdSize.value = (check.checked ? SdSize.value : 231); - SdSizeSl.innerHTML = (check.checked ? %SD-SIZE% : 231); + SdSizeSl.innerHTML = (check.checked ? DIAL_WIDTH : 231); } function bgImgUpdate() { @@ -356,7 +352,7 @@ function bgImgUpdate() { $(document).ready(function () { $('#BgImgSelSiz').val('%B_SIZE%').attr('selected','selected'); var bgImg = '%IMG_BACKGROUND%'; - var sdSize = '%SD-SIZE%'; + var sdSize = 'DIAL_WIDTH'; bgImg == '' ? $('#BgImgToggle').prop('checked', false) : $('#BgImgToggle').prop('checked', true) sdSize == '231' ? $('#SdSizeToggle').prop('checked', false) : $('#SdSizeToggle').prop('checked', true) $('#BgImgToggle').is(':checked') ? $('#BgImgSel').removeAttr('disabled') : $('#BgImgSel').attr('disabled', 'disabled'); @@ -424,35 +420,11 @@ $("#quickdial").sortable({
- +
- - -
-
-
-
-
- -
-