kojix2 / LibUI

A portable GUI library for Ruby
MIT License
208 stars 10 forks source link

Tooltips via libui-dev? #89

Open rubyFeedback opened 4 days ago

rubyFeedback commented 4 days ago

So I just found libui-dev due to kojix2 finding it first - when I snoop after kojix2 I find useful things. :)

One on the issues libui-dev marked as possible is "Tooltips (266)". Is there a possibility for ruby libui to cherry-pick something like that? Tooltips could be quite useful to have; it can give users additional information how to use the GUI, such as what a given entry is for, or what the function of a button may be (e. g. "update xyz"). I also think Andy will quickly add everything that is supported into glimmer-libui. Tooltips for rubio radio! :D

kojix2 commented 4 days ago

Hi

If you are interested in using libui-dev, the first step is to edit the LibUI Rakefile so that it downloads the latest (or stable version of) libui-dev shared library.

If you run rake -T, you will see that there is a task to download the libui shared library from the internet.

rake build # Build libui-0.1.3.pre.gem into the pkg directory
rake build:checksum # Generate SHA512 checksum of libui-0.1.3.pre.gem into the checksums directory
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake install # Build and install libui-0.1.3.pre.gem into system gems
rake install:local # Build and install libui-0.1.3.pre.gem into system gems without network access
rake release[remote] # Create tag v0.1.3.pre and build and push libui-0.1.3.pre.gem to rubygems.org
rake test # Run tests
rake vendor:build[hash] # Build libui-ng latest master [commit hash]
rake vendor:libui-ng:macos # Download latest official pre-build for Mac to vendor directory
rake vendor:libui-ng:ubuntu_x64 # Download latest official pre-build for Ubuntu to vendor directory
rake vendor:macos_arm64 # Download pre-build for Mac to vendor directory
rake vendor:macos_x64 # Download pre-build for Mac to vendor directory
rake vendor:raspbian_aarch64 # Download pre-build for Raspbian to vendor directory
rake vendor:ubuntu_x64 # Download pre-build for Ubuntu to vendor directory
rake vendor:windows_x64 # Download pre-build for Windows to vendor directory
rake vendor:windows_x86 # Download pre-build for Windows to vendor directory

These tasks are basically based on the work of the well-known Rubyist Andrew Kane. We are using the https://nightly.link/ service to download the shared libraries from GitHub Actions.

The first step will be to apply this mechanism to libui-dev. You can also submit pull requests, and you have commit access to this repository. Nothing will stop your contribution.

If you make a mistake, someone will fix your commit or pull request.