Skip to content
/ ui Public
forked from vlang/ui

Cross-platform UI library written in V

License

Notifications You must be signed in to change notification settings

yuyi98/ui

This branch is 301 commits behind vlang/ui:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

00b78c0 · Jan 25, 2021
Jan 12, 2021
Jan 12, 2021
Jan 23, 2021
May 11, 2020
Jan 9, 2021
Jan 1, 2020
Dec 31, 2020
Jan 25, 2021
Jan 12, 2021
Nov 20, 2020
Aug 31, 2020
Jan 25, 2021
Jan 8, 2021
Sep 6, 2020
Oct 17, 2020
Sep 6, 2020
Oct 17, 2020
Jan 12, 2021
Oct 18, 2020
Jan 12, 2021
Jan 14, 2021
Oct 17, 2020
Jan 12, 2021
Jan 12, 2021
Aug 31, 2020
Jan 8, 2021
Dec 31, 2020
Jan 8, 2021
Jan 23, 2021
Jan 12, 2021
Jan 23, 2021
Jan 23, 2021
Jan 23, 2021
Dec 8, 2020
Oct 17, 2020
Jul 7, 2020
Jan 25, 2021

Repository files navigation

V UI 0.0.4

Build Status

Twitter handle

ui.window({
    width: 600
    height: 400
    title: 'V UI Demo'
}, [
    ui.row({
        stretch: true
        margin: {
            top: 10
            left: 10
            right: 10
            bottom: 10
        }
    }, [
        ui.column({
            width: 200
            spacing: 13
        }, [
            ui.textbox({
                max_len: 20
                width: 200
                placeholder: 'First name'
                text: &app.first_name
            }),
            ui.textbox({
                max_len: 50
                width: 200
                placeholder: 'Last name'
                text: &app.last_name
            }),
        ]),
    ]),
])

Installation

v up
v install ui

Running the examples

cd examples
v run users.v
v run temperature.v
v run ...

This is pre-alpha software.

V UI is a cross-platform UI toolkit written in the V programming language for Windows, macOS, Linux, and soon Android, iOS and the web (JS/WASM). V UI uses native widgets on Windows and macOS, on all other platforms the widgets are drawn by V UI. Right now only the non-native widgets are available.

This is a very early version of the library, lots of features are missing, lots of things will change.

The API is declarative, and there will be hot reloading, similar to SwiftUI and Flutter.

On Linux, V UI will be a full-featured lightweight alternative to GTK and Qt.

0.1 roadmap

Discord: #v-ui channel

Documentation will be available soon. In the meantime use the examples as the documentation. The framework is very simple and straightforward.

Dependencies

Binaries built with V UI will have no dependencies.

To develop V UI apps, you need to install V. This takes a couple of seconds.

On some Linux distros you also need a few development dependencies:

  • Debian/Ubuntu: sudo apt install libxi-dev libxcursor-dev mesa-common-dev
  • Fedora: sudo dnf install libxi-dev libxcursor-dev mesa-libGL-devel

License

V UI is licensed under GPL3. A commercial license will be available. Open-source projects will have access to the commercial license for free. Every single feature will be open-sourced right away and available under both licenses. At some point in the future the library will be relicensed under MIT.

Contributing

After the first contribution you will be asked to agree to a CLA, declaring that you have the right to, and actually do, grant us the rights to use your contribution.

About

Cross-platform UI library written in V

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • V 95.5%
  • Objective-C 3.0%
  • Verilog 1.3%
  • AMPL 0.2%