Users complain boring user interface of my apps

Everything else that doesn't fall into one of the other PB categories.
Fred
Administrator
Administrator
Posts: 14215
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Users complain boring user interface of my apps

Post by Fred »

I will give it a try if enough people are interested in funding it (please make an offer in PM so I can keep track of it)
forumuser
User
User
Posts: 98
Joined: Wed Apr 18, 2018 8:24 am

Re: Users complain boring user interface of my apps

Post by forumuser »

@Fred

Would you do this as a module or integrate it into the core PB?

I'm asking because some people want to stay (or need to stay) on LTS releases and it could
take a rather long time until they could use sciter (natively through PB) if they would need
to wait for the next LTS release...
Fred
Administrator
Administrator
Posts: 14215
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Users complain boring user interface of my apps

Post by Fred »

Probably a lib as I will need to toy with C++
User avatar
the.weavster
Addict
Addict
Posts: 1350
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Users complain boring user interface of my apps

Post by the.weavster »

At the risk of making Fred a little testy... Why not just make WebKitGTK+ available for the Windows platform too? Surely the work for WebKitGTK+ must already be done for the Linux version of WebGadet?

This tutorial shows how to extend WebKitGTK+ JavaScriptCore with custom functions.

It looks to me that Sciter doesn't support some modern CSS features like CSS Grid and I imagine it will always be behind the curve vs WebKit in that regard.
c-smile
New User
New User
Posts: 6
Joined: Sat Aug 04, 2018 11:50 pm

Re: Users complain boring user interface of my apps

Post by c-smile »

the.weavster wrote:It looks to me that Sciter doesn't support some modern CSS features like CSS Grid and I imagine it will always be behind the curve vs WebKit in that regard.
I am the author of initial proposal of what is known now as flexbox and grid at W3C : https://sciter.com/docs/flex-flow/flex-layout.htm

Flexibility in sciter is still a superset of what browsers can offer now.

If you have markup like this:

Code: Select all

<body>
   <toolbar>..</toolbar>
   <nav>…</nav>
   <aside>...</aside>
   <footer>…</footer>
   <main>…</main>
</body>
then you can define grid layout in CSS by this:

Code: Select all

body {
  flow: grid( 1 1 1, 
                  2 5 3,
                  4 4 4); // a.k.a. "holy grail layout"
}
body > main { 
    size:*;  // takes all available space. 
}
Here is how it looks:

Image

As you see that's a lot easier than what you have in browsers.

Yet, don't forget that desktop UI is bit more than just HTML/CSS.

At some point you will discover that you will need something like this:

elem.popup(popupElem, at)

to show arbitrary DOM elements as popup elements (DOM-element-in-its-own-window) like here
Image

Yet HTML desktop windows: https://sciter.com/html-window/ with support of Acrylic/Vibrancy: https://sciter.com/sciter-4-2-support-o ... c-theming/
User avatar
the.weavster
Addict
Addict
Posts: 1350
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Users complain boring user interface of my apps

Post by the.weavster »

Hi c-smile,

Purely from a UI point of view Sciter would be a big enhancement for PB but we also have the issue of PB's outdated WebGadget on Windows. CSS Grid landed in most mainstream browsers in the first half of 2017. It's all very well having an alternative way of laying out our own UI but what if we want to display received HTML that uses CSS Grid for its layout? That's really my point, WebKit is always likely to be the better bet in that scenario because it's in Chrome, Opera, Safari...
User avatar
Kiffi
Addict
Addict
Posts: 1180
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Users complain boring user interface of my apps

Post by Kiffi »

after thinking about it again, I believe it would be better if PureBasic got an improved WebGadget based on the newest version of WebKit or CEF on all platforms (so that the terrible Internet Explorer can finally retire).
There should also be commands that allow JavaScript functions to be called from PB and vice versa PB procedures to be called from JavaScript.

Just my two cents ... Peter
Hygge
User avatar
Josh
Addict
Addict
Posts: 1184
Joined: Sat Feb 13, 2010 3:45 pm

Re: Users complain boring user interface of my apps

Post by Josh »

Even if an extended webgadget certainly makes sense, the current webgadget should perhaps be retained. With it you can make small hints in an app, for which no Html5 is needed and the code does not inflate unnecessarily.
sorry for my bad english
User avatar
Kiffi
Addict
Addict
Posts: 1180
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Users complain boring user interface of my apps

Post by Kiffi »

Josh wrote:Even if an extended webgadget certainly makes sense, the current webgadget should perhaps be retained. With it you can make small hints in an app, for which no Html5 is needed and the code does not inflate unnecessarily.
good point! +1
Hygge
User avatar
the.weavster
Addict
Addict
Posts: 1350
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Users complain boring user interface of my apps

Post by the.weavster »

If we get a high quality webview for PureBasic then Fred and Freak only have one set of Gadgets to keep improving and updating... those in SpiderBasic. At the moment it seems SpiderBasic's gadgets have to be artificially limited in order to maintain compatibility with PureBasic.

Peter's excellent enhancements have already made a number of SpiderBasic's gadgets considerably better than their PureBasic counterpart.
wayne-c
Enthusiast
Enthusiast
Posts: 298
Joined: Tue Jun 08, 2004 10:29 am
Location: Zurich, Switzerland

Re: Users complain boring user interface of my apps

Post by wayne-c »

Kiffi wrote:after thinking about it again, I believe it would be better if PureBasic got an improved WebGadget based on the newest version of WebKit or CEF on all platforms (so that the terrible Internet Explorer can finally retire).
There should also be commands that allow JavaScript functions to be called from PB and vice versa PB procedures to be called from JavaScript.

Just my two cents ... Peter
+1

I would also help funding this :-)
As you walk on by, Will you call my name? Or will you walk away?
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 767
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: Users complain boring user interface of my apps

Post by Zebuddi123 »

Hi to all. I`ve just come across this https://github.com/AvaloniaUI/Avalonia maybe something else we should keep an eye on MIT Licence too. :)

Zebuddi.
malleo, caput, bang. Ego, comprehendunt in tempore
User avatar
blueb
Addict
Addict
Posts: 909
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Users complain boring user interface of my apps

Post by blueb »

Zebuddi123 wrote:Hi to all. I`ve just come across this https://github.com/AvaloniaUI/Avalonia maybe something else we should keep an eye on MIT Licence too. :)

Zebuddi.
Nuklear is very similar. What I found attractive is that it's a single-header ANSI C gui library. (less than 18k)

https://github.com/vurtun/nuklear
- It was too lonely at the top.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram
User avatar
Kukulkan
Addict
Addict
Posts: 1259
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Users complain boring user interface of my apps

Post by Kukulkan »

Hi, all these are great and nice GUI libraries, but I think the real benefit of a Sciter solution is the ability to scale to whatever DPI you need (Nuklear and Avalonia do not even mention supporting other DPI), HTML and CSS is something you find unlimited tips and tricks in the Internet, many people are already familiar with HTML and CSS, it supports JavaScript and many other well known technologies.

Also, it renders using a Chrome engine. This means using the Graphics card capabilities and using proven render technology. I really prefer such Sciter solution.
User avatar
Kiffi
Addict
Addict
Posts: 1180
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Users complain boring user interface of my apps

Post by Kiffi »

Kukulkan wrote:[...] Sciter [...] supports JavaScript
Sciter doesn't support JavaScript. It has its own scripting language called TIScript.

see also: https://sciter.com/forums/topic/using-js-libraries/

For this reason you cannot use many UI libraries like UIKit, Semantic UI, MaterializeCSS, Framework7, etc..

Therefore I plead for an improved WebGadget (see my posting above).

Greetings ... Peter
Hygge
Post Reply