Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.1 Roadmap #31

Open
8 of 36 tasks
thecodrr opened this issue Jan 17, 2020 · 74 comments
Open
8 of 36 tasks

Version 0.1 Roadmap #31

thecodrr opened this issue Jan 17, 2020 · 74 comments

Comments

@thecodrr
Copy link
Contributor

thecodrr commented Jan 17, 2020

Many features will need discussion so this thread acts as both a discussion & a task list for contributors/maintainers.

Notes:

  1. All these features won't necessarily make it into the v0.1 but they are planned nonetheless.
  2. Mentions after the each entry means that feature is being worked on by those persons.
  3. Please don't ask for ETAs. We are working on it as much as possible. Once it's done, you will know. You can follow the development on the Discord Channel.

API

  • Declarative style (@thecodrr)
  • Hot code reloading
  • Proper eventing system using eventbus (@thecodrr)
  • RTL support
  • Themes
  • Custom widgets on user level
  • DataBinding to arrays & orm columns
  • Widget customization using properties (color etc.)

Window API

  • Drag & Drop
  • Custom Scaling
  • Resizing

Responsiveness

  • Relative values for dimensions, margins etc. (percentage or px)
  • Hover, focus feedback
  • Animations & Transitions (@memeone)
  • Tab support (focus)

Layout

Widgets

TextBox

  • Multiline textbox
  • Text selection with a mouse (@thecodrr)
  • TextBox Validation
  • Format support

Accessibility

  • Screen reader support

More items will be added as required

@hex2f
Copy link
Member

hex2f commented Jan 17, 2020

I feel like animations/transitions are pretty important in modern software as well. Add it to the list?

@dumblob
Copy link

dumblob commented Jan 17, 2020

Proper eventing system using eventbus instead of the current struct Fn fields.

This might be solved automatically by implementing everything as generic streams.

@ryandavs
Copy link

For the lay out manager of components, please consider also looking at the imperative programming style of MigLayout API. It's small easy-to-read tutorial/manual is enough to give you an overview of its entire API.
http://www.miglayout.com/

@elimisteve
Copy link
Member

For the lay out manager of components, please consider also looking at the imperative programming style of MigLayout API.

Does this have advantages over just using flexbox?

@medvednikov medvednikov changed the title Features we don't have but need 0.1 roadmap Jan 20, 2020
@medvednikov medvednikov pinned this issue Jan 20, 2020
@lazalong
Copy link
Contributor

  • Render or Viewport Widget (aka direct access to the display memory to stream video or render frames from a game)
  • Right-Left text editing direction (Arabic, Hebrew, Urdu...)
  • Drag-and-drop (i.e. filename or whole path+filename)
  • Tabbed widget
  • Resizeable widget's borders
  • Dockable widget or windows
  • Inability to drag or put a widget/windows completely outside of screen view !!! Perhaps with a recenter event.
  • Fullscreen command for widget
  • Prefilling forms (perhaps this can be done with events)
  • Zoom
  • Color selector widget

@thecodrr
Copy link
Contributor Author

thecodrr commented Jan 21, 2020

@lazalong

Render or Viewport Widget

We already have Canvas which does basically the same thing.

@thecodrr thecodrr changed the title 0.1 roadmap Version 0.1 Roadmap Jan 21, 2020
@origel
Copy link
Contributor

origel commented Jan 22, 2020

Good job! Can you give an approximate completion time? I insterest in v lang and I want dev cnc controll software using vui.

@thecodrr
Copy link
Contributor Author

Good job! Can you give an approximate completion time? I insterest in v lang and I want dev cnc controll software using vui.

@origel No ETAs please.

@hex2f
Copy link
Member

hex2f commented Jan 22, 2020

@thecodrr you can put me on animations, transitions are already merged

@hex2f
Copy link
Member

hex2f commented Jan 22, 2020

I’m also looking at implementing a scrollview but no guarantee that I’ll be able to pull it off

@thecodrr
Copy link
Contributor Author

@memeone I will move on to ScrollView after the new API is merged. If you want to take it, I will look at something else.

@hex2f
Copy link
Member

hex2f commented Jan 22, 2020

@thecodrr you can take it, maybe I’ll look at styling or hover feedback instead 🤔

@thecodrr
Copy link
Contributor Author

@memeone okay awesome.

@origel
Copy link
Contributor

origel commented Jan 24, 2020

@thecodrr I want implment some layout just like FillLayout,FormLayout, RowLayout and GridLayout in SWT, if vui is added layout function, vui can be used to develope actual software. But I have no idea if it is needed. and the layout description in 0.1 roadmap I don't know what does it mean, can you give me some suggestion? What can I do to make this project move faster?

@thecodrr
Copy link
Contributor Author

@origel I have already implemented 2 layouts: ColumnLayout & RowLayout. You should try it out.

@naturalmechanics
Copy link

  1. Tabs (mentioned above)
  2. Framebuffer (is canvas the same? )
  3. Map / Cartography / Webdata visualizer
  4. Dials, guages, windrose, clock...
  5. Charting widget
  6. Rich text

is the codebase of V in C? how can i write my own custom widgets and contribute?

@hex2f
Copy link
Member

hex2f commented Mar 28, 2020

V is written in V, the main repo can be found at https://github.com/vlang/v

Creating new widgets is quite easy, you can look at rectangle.v and label.v in this repo for some simple reference implementations.

@fxqy
Copy link

fxqy commented Apr 5, 2020

Will the lambda expression be added? Hope to be like kotlin anko's ui dsl

@Keyn1
Copy link

Keyn1 commented May 11, 2020

Add MDI (Multiple Document Interface)

@smartiniOnGitHub
Copy link

Years ago I implemented in a Java UI framework the ability to disable animations and transitions, sometimes (on old/poor hardware and some kind on users) they are not needed ... maybe you could add here even a similar feature, but of course by default enabled :-) . Bye

@iampato
Copy link

iampato commented May 25, 2020

A navigator widget could be nice

@hex2f
Copy link
Member

hex2f commented May 25, 2020

@lampato don’t really know what you mean by “navigator widget”. Do you have any examples? I’m gonna start trying to implement a few more widgets soon :)

@medvednikov
Copy link
Member

file dialogue probably

@iampato
Copy link

iampato commented Jun 6, 2020

@leahlundqvist a widget to navigator to/for a page with twists!!

@xiusin
Copy link
Contributor

xiusin commented Jun 8, 2020

webview webview!!!

@benstigsen
Copy link
Contributor

It would also be nice to have a font_path option. And since multiline_textbox is on the roadmap, it would make good sense to have a text.v file dedicated to the text calculation, width, wrapping, etc... functions.

@elimisteve
Copy link
Member

Proved to be worse according to who?

@dumblob
Copy link

dumblob commented May 3, 2021

Proved to be worse according to who?

E.g. Apple.

But you don't need to seek only "proof by giants". I mean ask designers you have around and you'll find out yourself easily - they laugh at how low level constraints are and how much tedious work it is. It doesn't scale at all in the current state of being. That's why I said I'm not against inventing something new encompassing the whole thing and not just one tiny subset as current Cassowary solutions do.

@elimisteve
Copy link
Member

I mean ask designers you have around and you'll find out yourself easily - they laugh at how low level constraints are and how much tedious work it is.

The exact opposite is true. Design tools like Figma let you set constraints, and those are a joy to work with; designers love that "auto-layout" feature. By contrast, trying to get CSS to do what you want is a gigantic pain every single day, as CSS is dramatically lower level than simply saying #thing[center] = #other[center], or specifying other such constraints.

The performance penalty of the constraint solvers I've seen so far is real indeed; hopefully more efficient ones exist and can be implemented, because CSS is the single worst-designed technology I have ever touched.

@dumblob
Copy link

dumblob commented May 3, 2021

I mean ask designers you have around and you'll find out yourself easily - they laugh at how low level constraints are and how much tedious work it is.

The exact opposite is true. Design tools like Figma let you set constraints, and those are a joy to work with; designers love that "auto-layout" feature.

Are we talking about the same thing? Designers love Figma (as I wrote above) because it doesn't do Cassowary-like constraints, but a negligible subset of similar functionality. If designers needed to use Cassowary-like constraints for most of their work, they'd go crazy (I meant it literally when I said go ask them - or at least read some blog posts about advanced layouting using constraints and everybody will tell you they need something much more high level otherwise they'll rather stick with the braindead CSS because despite all its enormous downsides it still comes as the winner from this match 😢).

Let me paraphrase - if programmers were forced to use assembly nowadays for most of their work, they'd lough at me proposing this. They'll rather use PHP or Visual Basic or Delphi instead despite all the enormous downsides these languages have today.

Assembly has the maximum expresiveness our machines offer - same goes for the Cassowary technology (I'm deliberately not saying Cassowary implementations here because of them being rather "PHP"-like instead of "V"-like when it comes to usability and friendliness and overall usefulness). But there is no implementation with high level API which even approaches practical usefulness due to different shortcomings (find most of them outlined in my previous posts).

By contrast, trying to get CSS to do what you want is a gigantic pain every single day, as CSS is dramatically lower level than simply saying #thing[center] = #other[center], or specifying other such constraints.

The performance penalty of the constraint solvers I've seen so far is real indeed; hopefully more efficient ones exist and can be implemented, because CSS is the single worst-designed technology I have ever touched.

Here we univocally agree 😉.

@ghost
Copy link

ghost commented May 8, 2021

For 0.1, we need to review and complete the basics such as tab stops, event handling issues, and so on first. Then next step for widgets.

@sirinath
Copy link

Also moving to a non *GPL license should be considered.

@dumblob dumblob mentioned this issue May 28, 2021
7 tasks
@hubyhuby
Copy link

hubyhuby commented Jul 5, 2021

Some background :

  • The GUI is a corner stone for the developper's experience. GO has failed in this section.
  • 70% of the code we write at my company is App / UI side ...30% is server
  • Those days we do programing for web and app, and there has been this challenge of beeing able to do both...
  • We now have to take care of front and back dev to build something valuable....we usually end up with two ROUTINGS to organise the code : one for the API/server and one for the App. (I use meteor.js which solves some of those)

Questions :
1- How do we handel routing on the App side ? Is it part of a core package ? Is it correlated to UI ? Do we have a comon routing schem as with vweb ? (yes;) )
2 - Can we imagine compiling the UI library to wasm ? Can we have it interact with the DOM ? How ? Do we even need the DOM if we render opengl ?

@tzSharing
Copy link

tzSharing commented Sep 19, 2021

  • FileChooser
  • ColorChooser
  • Date 、Time and Number picker
  • FlowLayout
  • LazyListView
  • LoadingView
  • Tooltip
  • Alert Box
  • Dialog Box
  • Animation API
  • Touch, keyboard and mouse events API
  • View shapes, shadows API
  • Audio/Video Multimedia Operation API
  • Background tasks API
  • Print API
  • Device access (Wifi, Bluetooth, USB, NFC...) API
  • Log API
  • Privacy and Security API
  • Support character sets other than ASCII
  • Examples and documentation

@svelterust
Copy link

Also moving to a non *GPL license should be considered.

Why?

@exastencil
Copy link

Because it's copyleft. Meaning it can only be used by open-source projects. So if I use V UI, my app also has to use GPL.

@elimisteve
Copy link
Member

Or you have to pay for a license, which is the intent here, I believe. Finding ways to monetize V is really important for the sustainability and longevity of the project! Paying a bit in order to be able to create one graphical app in V + V UI and have it run everywhere would be an amazing deal.

@Wajinn
Copy link

Wajinn commented Jan 11, 2022

Or you have to pay for a license, which is the intent here, I believe. Finding ways to monetize V is really important for the sustainability and longevity of the project! Paying a bit in order to be able to create one graphical app in V + V UI and have it run everywhere would be an amazing deal.

It would be the beginning of the end to start pulling that and trying to force licenses, because there is already highly developed open-source competition. Look at the many Go GUI projects, for example. It would also be against the spirit and perception of how V is viewed, thus sending people away. The rest of V is MIT, so people expect for V UI to go that direction too (and has promised to do so). Debatably better to stay open source and go the donation route.

@benstigsen
Copy link
Contributor

The plan was to use MIT later. This current one is temporary.

@sirinath
Copy link

There are many projects under V umbrella which is *GPL which is irksome.

@benstigsen
Copy link
Contributor

I am assuming that many of these are temporary as well.

@hubyhuby
Copy link

Or you have to pay for a license, which is the intent here, I believe. Finding ways to monetize V is really important for the sustainability and longevity of the project! Paying a bit in order to be able to create one graphical app in V + V UI and have it run everywhere would be an amazing deal.

It would be the beginning of the end to start pulling that and trying to force licenses, because there is already highly developed open-source competition. Look at the many Go GUI projects, for example. It would also be against the spirit and perception of how V is viewed, thus sending people away. The rest of V is MIT, so people expect for V UI to go that direction too (and has promised to do so). Debatably better to stay open source and go the donation route.

Maybe we want to create another issue or thread to discuss this topic. My personal feeling is that :

  1. If people working on this projet wants to get funded for their work, that makes perfect sens. It s their choice.
  2. The community is building itself on its own values, "sending people away" is inevitable. And its good to have many projects for many different minded people out there.
  3. Finally its open. I suppose there is no opposition from the V community for another GUI project that would fite your licensing needs. Innovation is kinda darwinian, lets see ;)

@Wajinn
Copy link

Wajinn commented Jan 12, 2022

There are many projects under V umbrella which is *GPL which is irksome.

I agree that GPL is like Pandora's box. When going that direction, it looks to just as easily destroy or confuse, as it can also help and preserve. It's a matter of people knowing what they are doing, and the full consequences and ramifications that go along with it.

GPL isn't always bad, per se. For example in the case of V's Gitly, it's not likely anybody would be or want to be using it as a whole commercially or professionally. Rather, they use it to do tasks, not necessarily wanting to re-package it into anything. So there isn't as much concern that it's GPL, other than consistency with other V projects which are MIT (which how it looks is a concern). For example, a person may use a GPL project like NotePad++ to create files, but likely not need or want to use it directly for anything.

However, things like programming languages and UIs have a different usage. People would be very much incorporating them into their projects. People very much want to use them professionally or commercially. If TCC (which V uses) was GPL, it would create absolute havoc and confusion, thus they had enough sense to put it under at least LGPL.

A comparable project to V UI, would be one of Go's cluster of UI projects such as Fyne (github.com/fyne-io/fyne), which they smartly put under BSD, and not GPL. Most other open source programming language UI projects are under more permissive licenses such as LGPL, BSD, Apache, or MIT. Often in these days of open source competition, if they were or are commercial, they started that way (not switch up on their users). In various cases many commercial projects have ended up as free open source anyway, as were defeated by all the strong and free open source competitors that exist now.

Another aspect of this is the expectation of users. There is the perceived promise by V UI, "At some point in the future the library will be relicensed under MIT." So clearly people are going to feel some kind of way if that promise is broken.

Seems like better moves for projects which are and have started open source, would be to:

  1. Ask for donations (like make it apparent)
  2. Seek corporate sponsors (not be passive, and go ask)
  3. Write books/ebooks on using V UI and building GUI's the V way (advertises V/V UI and sponsors; stirs general interest)
  4. Make videos teaching V UI and put on places like Udemy

Quite sure supporters and interested people would buy a V UI ebook or training video. Very much liked "Getting Started with V Programming" from Packt.

@tzSharing
Copy link

Textbox adds copy-paste support for mouse or keyboard

@isaiahpettingill
Copy link

isaiahpettingill commented Jun 14, 2022

For WebView, you might look into the C Bindings for webview

I don't know exactly how you will be able to embed it into the UI framework, but it's probably the right starting point. A weakness of this solution is that it adds a dependency to the build output, but you would likely have that for any implementation of webview unless you built your own HTML/JS/CSS engine.

An alternative that may be more difficult is Mozilla's Servo browser. This could potentially have rust libraries that could be exported as C Shared libraries and imported by V. I'm not loving that idea, but it might be an option.

@netesy
Copy link

netesy commented Jul 19, 2022

Please update to show the completed features so we know what to focus on.

@seven1240
Copy link

For WebView, maybe a V based https://tauri.app/ instead of Rust?

@Bellisario
Copy link

Any update for web views?
I’m a web developer and I don’t like using Electron and Tauri.
Is there a V project for cross platform web rendering?
I like how V UI is going (SwiftUI style) but I would like to use a WebAPP as rendered app and V to implement app core functions as native.

@baxiry
Copy link

baxiry commented Jan 25, 2023

@Bellisario What do you think of Wailes ? I think it's fine, until vui is ready

@Bellisario
Copy link

Thanks @bashery! I definitely need to give it a try...

@makeshyft-tom-g
Copy link

Hello all,

Thank you for your effort thus far. My question is this, is there ANY .... any way at all ...... to track this roadmap in some more detail? I'm faced with the decision whether it is feasible to choose V as the right platform for our stack, and I really really want to choose V.

Can we have this roadmap put in as Projects? I could help with that.

I know that I can make it go faster by contributing with code, and thats on my roadmap as well. :)

@algoflows
Copy link

Databinding functionality and widget reactivity model.

@mark-summerfield
Copy link

I hope you will allow cursor blinking to be switched off application-wide (why). Qt and Gtk support this and Tk 9.0 will also.

@medvednikov
Copy link
Member

I hope you will allow cursor blinking to be switched off application-wide (why). Qt and Gtk support this and Tk 9.0 will also.

Already done :)

@Fierelier
Copy link

An option for software rendering (no OpenGL)? Would be pretty useful for older or embedded hardware. Even my 2011 Intel HD 3000 is not capable of rendering the UI, without emulating OGL in software. I honestly think it would fit better for what V is trying to be (minimal prerequisites and simplicity and all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests