From 672c7ac0a1da00855267e9db5193066028814121 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 20 Nov 2016 19:34:39 +0000 Subject: [PATCH] WebView 1.53: fixed wrong position of link selection while click, bigger toolbar elements, show alert that HTTPS protocol is not supported yet git-svn-id: svn://kolibrios.org@6731 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/TWB/links.h | 2 +- programs/cmm/browser/WebView.c | 37 ++++++++++++++++--------------- programs/cmm/browser/wv_skin.png | Bin 2058 -> 2168 bytes 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/programs/cmm/TWB/links.h b/programs/cmm/TWB/links.h index 8871adc72a..dbbf6ccff3 100644 --- a/programs/cmm/TWB/links.h +++ b/programs/cmm/TWB/links.h @@ -71,7 +71,7 @@ void LinksArray::Hover(dword mx, my, link_col_in, link_col_a, bg_col) { if (mx>links[i].x) && (my>links[i].y) && (mx 0) EAX = 131; else EAX = 52; + if (http_transfer > 0) EAX = 131; else EAX = 54; img_draw stdcall(skin.image, address_box.left+address_box.width+1, address_box.top-3, 17, skin.h, EAX, 0); } @@ -500,7 +501,7 @@ void DrawProgress() unsigned long btn; if (http_transfer == 0) return; if (wv_progress_bar.max) btn = address_box.width*wv_progress_bar.value/wv_progress_bar.max; else btn = 30; - DrawBar(address_box.left-2, address_box.top+15, btn, 2, wv_progress_bar.progress_color); + DrawBar(address_box.left-2, address_box.top+20, btn, 2, wv_progress_bar.progress_color); } void ClickLink() @@ -541,9 +542,9 @@ void ClickLink() return; } - if (!strcmp(#URL,"https://")) + if (!strncmp(#URL,"https://",8)) { - notify("HTTPS protocol is not supported yet"); + notify("'HTTPS protocol is not supported yet' -E"); } GetAbsoluteURL(#URL); diff --git a/programs/cmm/browser/wv_skin.png b/programs/cmm/browser/wv_skin.png index f1936cc945fe20ad753eca7f8bd896645c1ccf5e..ec43b12869af865034444df29f063ca260e72671 100644 GIT binary patch literal 2168 zcmV-;2#5EHP)r<229mhXO9x=p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