CLI preview-window customization support for color, transparency , custom sizes , full screen and...
Currently the preview has it’s own default window color that is not changeable*. This can lead to a bit of confusion if using similar colors and transparency in the actual artboards. So it’s prototyping friction, and hinders possible evolution in other workflows like video+rive.
If we’re treating the preview window as an artboard for the sake of YAML properties like width & height when a preview starts, then another way to put it is the preview-window doesn’t respect artboard transparency in the background config /shrug.
Allow the CLI preview window to configured with specific colors including transparency, be able to set sizes or fullscreen without having to mess with artboard sizes, and optionally set a background image.
Settable in ~3 ways
projects yml file similar to the default artboards properties.
flags on the `rive <project-dir>` command
and `rive preview …` commands ; note ‘s’ & ‘z’ are currently used for Screenshots and resiZing artboards
rive.yml example
name: hello_rive
main: main
preview:
width: 800
height: 600
background: "#00FFFFFF"
fullscreen: false
background-image: "assets/logo.png"Some alternatives are, A) a defined YAML key to use an artboard’s values, or B) a convention of an artboard named “preview” in the project is used for the values by default.
rive.yml example using an artboard properties to define the preview-windows customization
name: hello_rive
main: main
preview:
artboard: preview
fullscreen: false
backgroundImage: "assets/watermark.png"Other workflow motivations
This would also be a stint for video support complaints , and requests such as #Embedded Video Support Inside Rive Animations , by letting the cli preview be used as an overlay for tasks like working out timings for a rive animation in a video sequence WITHOUT the img-sequence round tripping.
Since the cli also supports a bevy of commands for driving a rive interaction ,including data input!, this would be the start of utilities that can eat other softwares lunch without needing built in runtime support.
Or other situations where a file type (such as video, sketches, CAD) cannot be brought into rive at all. And other contexts such as visualizing floating widgets, or prototyping on a software that doesn’t have runtime support yet to fake insitu UI testing.
An important point being just to get the a proof of concept stage you don’t have to be someone that knows how to set all that up for real yet. So not forced to use the c++ runtime or know about things like rive-live and flutter-acrylic etc until after some faster validation.
If all or parts are limited to paid plans because of the status bar then a bare minimum for all plans is be able to toggle some default black/white grid, or use a custom background image for the preview window.
*There is a `window` key in rive.yaml with a but that is for titlebar & taskbar stuff and mainly for macOS.