nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Unreadable buttons in alert() and prompt() dialogs [$100]

Open xverges opened this issue 13 years ago • 31 comments

On Windows XP, the alert() and prompt() windows have hardly readable buttons. On Windows 7, it works properly. https://groups.google.com/d/topic/node-webkit/mByrzqMeMYU/discussion

nw small_alert nw alert_transparent_regions

There is a $100 open bounty on this issue. Add to the bounty at Bountysource.

xverges avatar Feb 09 '13 21:02 xverges

I can confirm similar problem on Vista as well.

ButzYung avatar Feb 10 '13 08:02 ButzYung

Probably depends on the theme set in the system.

For example, that's the result for the classic theme on Windows XP:

screenshot

Also, what's your node-webkit version? (The most recent version does not seem to display “Alert” or “Prompt” in the title of those dialog windows, as far as I see.)

Mithgol avatar Feb 10 '13 09:02 Mithgol

I use node-webkit 0.4.2 and Windows 7 64bit, the screen of code like:

    window.onbeforeunload=function(event){
        return "alert";
    }

looks like this: QQ 20130322131024

ghost avatar Mar 22 '13 05:03 ghost

This issue still exists with latest node webkit build and windows xp. (not tested on other windows versions)...

ghost avatar Apr 25 '14 18:04 ghost

This issue also exists with the latest node webkit build and Window 7. I am using it for a confirm dialog .

mattroyer avatar May 21 '14 19:05 mattroyer

Same issue (nw 0.8 + xp + confirm and alert). Any update?

TooBug avatar Jul 12 '14 10:07 TooBug

Same issue on windows 7 32bit and node-webkit v0.10.1-win-ia32

CarmelK avatar Aug 05 '14 09:08 CarmelK

Same problem with windows xp + nw 0.10.5 works well with windows 7 Home Premium instead.

AndryBray avatar Sep 17 '14 15:09 AndryBray

It worked much better on pc when I used 'window.alert' instead of just 'alert'.

CarmelK avatar Sep 18 '14 08:09 CarmelK

Bug is still present (NW v0.10.5, Windows 7 Pro). Please note that with alert() and confirm() (same problem with window.alert() and window.confirm()):

  • pressing "enter" key does not trigger anything
  • clicking the closing arrow does not trigger anything

@CarmelK : Not on Win 7 Pro here.

pVesian avatar Nov 12 '14 10:11 pVesian

Now that I think of that, alert and window.alert is the same thing:

(screenshot)

Therefore there's no reason for window.alert to behave any better.

Mithgol avatar Nov 12 '14 10:11 Mithgol

Just to add - this is a problem on Win7 if you disable Aero - it seems OK (at least for me) if you have Aero enabled - checked in latest version (W764 here)

ghost avatar Dec 01 '14 14:12 ghost

I have the same problem here on Windows 7 Basic 32-bit. Since it's Basic, there's no Aero mode.

pic

khoin avatar Jan 03 '15 08:01 khoin

@rogerwang Any idea what could be causing this? It's realy disturbing and dates back 2 years...

pVesian avatar Jan 03 '15 11:01 pVesian

will look to fix it soon.

rogerwang avatar Jan 04 '15 01:01 rogerwang

@rogerwang When would you like to look into it ?

yangg avatar Feb 25 '15 06:02 yangg

Hi guys, any news on this? :)

goshatch avatar Mar 09 '15 07:03 goshatch

Quite a weird issue, and really disturbing. Any ideas?

sanderboom avatar Mar 09 '15 15:03 sanderboom

Just as @Mithgol said, the real problem is about the compatibility of chromium of old windows system. As you know, such basic javascript code is handled by chromium module itself.

Anyway, both alert() and prompt() dialog work well on my win7-64bit. Suggestion: try to build nw.js locally. Maybe on different .NET version it works differently.

xueeinstein avatar Mar 10 '15 05:03 xueeinstein

Note: it has NOTHING to do with "older systems", there are plenty of 'newer systems' which run Windows7 without Aero (some software doesn't work well with it - some hardware isn't good enough and as someone said, there are versions of W7 which don't have it!!)

I've been doing a bit of work with a similar project to nw.js - atom-shell - and I came across a comment by the developer who was explaining that all the "dialog" windows (generated by alert, confirm, prompt) have to be coded manually per-platform and that was something he wouldn't be doing because there were easy alternatives such as http://tristanedwards.me/sweetalert and http://fabien-d.github.io/alertify.js/ - more here too http://webuilddesign.com/6-javascript-tools-to-create-cool-user-alert/ ...

So I'm in the process of gutting-out all my usage of alert/prompt/confirm as I type - I like the more 'styleable' CSS approach anyway - thought I'd leave this here for anyone who runs into this in future tho

ghost avatar Mar 13 '15 02:03 ghost