From: Peter de Ridder Date: Tue, 1 Jun 2010 21:56:04 +0000 (+0200) Subject: Combined speed dial resize and thumbnail sizes X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4422f640cb3a0bbc6cac1ea0e4332374009e1f6c;p=midori Combined speed dial resize and thumbnail sizes --- diff --git a/data/speeddial-head.html b/data/speeddial-head.html index 6d5814fd..0f5b51c5 100644 --- a/data/speeddial-head.html +++ b/data/speeddial-head.html @@ -30,7 +30,7 @@ } #content { - margin-top: 10px; + margin-top: 40px; } div.shortcut { @@ -90,6 +90,11 @@ text-decoration: none; } + div.shortcut a img { + width: 100%; + height: 100%; + } + .waiter img { margin-top: 38px; } @@ -142,23 +147,54 @@ } div.config { + position: absolute; + top: 0px; padding: 12px; text-align: left; } div.config span { color: #ccc; + margin-right: 10px; + margin-right: 10px; } - div.config span:hover { + div.config span.config_option:hover { color: #999; cursor: pointer; } + + div.config span.config_label { + color: #ccc; + cursor: default; + margin-right: 0px; + } + + div.config span.config_option { + margin-left: 0px; + margin-right: 0px; + } + + div.osd { + top: 9px; + position: fixed; + width: 100%; + text-align: right; + } + + div.osd span { + border: 1px solid #999; + background-color: #f5f5f5; + padding: 8px; + color: #999; + -webkit-border-bottom-left-radius: 10px; + visibility: hidden; + } +
+ +
- {set_dial_width} - {set_shortcut_count} + {set_dial_size} + {set_thumb_size} + {set_thumb_small} + {set_thumb_normal} + {set_thumb_big}
diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 066fd13f..6acba91e 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1226,7 +1226,7 @@ midori_browser_add_speed_dial (MidoriBrowser* browser) g_regex_unref (reg_unsafe); } - if ((img = midori_view_get_snapshot (MIDORI_VIEW (view), 160, 107))) + if ((img = midori_view_get_snapshot (MIDORI_VIEW (view), 240, 160))) { GRegex* regex; gchar* replace; diff --git a/midori/midori-view.c b/midori/midori-view.c index 4968b908..e7c36df2 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3515,10 +3515,13 @@ midori_view_set_uri (MidoriView* view, "{enter_shortcut_address}", _("Enter shortcut address"), "{enter_shortcut_name}", _("Enter shortcut title"), "{are_you_sure}", _("Are you sure you want to delete this shortcut?"), - "{set_dial_width}", _("Set number of columns"), - "{enter_dial_width}", _("Enter number of columns:"), - "{set_shortcut_count}", _("Set number of shortcuts"), - "{enter_shortcut_count}", _("Enter number of shortcuts:"), NULL); + "{set_dial_size}", _("Set number of columns and rows"), + "{enter_dial_width}", _("Enter number of columns and rows:"), + "{invalid_dial_size}", _("Invalid input for the size of the speed dial"), + "{set_thumb_size}", _("Thumb size:"), + "{set_thumb_small}", _("Small"), + "{set_thumb_normal}", _("Medium"), + "{set_thumb_big}", _("Big"), NULL); midori_view_load_alternate_string (view, @@ -5112,7 +5115,7 @@ thumb_view_load_status_cb (MidoriView* thumb_view, if (katze_object_get_enum (thumb_view, "load-status") != MIDORI_LOAD_FINISHED) return; - img = midori_view_get_snapshot (MIDORI_VIEW (thumb_view), 160, 107); + img = midori_view_get_snapshot (MIDORI_VIEW (thumb_view), 240, 160); gdk_pixbuf_save_to_buffer (img, &file_content, &sz, "png", NULL, "compression", "7", NULL); encoded = g_base64_encode ((guchar *)file_content, sz );