Settings UI, Welcome UI, Adaptive theme, crates.io and more
· 약 5분
This post also includes changes of v0.0.19.
Highlight #1: New window API (breaking change)
Configuration properties: window_height, window_width and window_opacity has been moved to a new window/background API:
# Window configuration
#
# • width - define the initial window width.
# Default: 600
#
# • height - define the initial window height.
# Default: 400
#
# • mode - define how the window will be created
# - "Windowed" (default) is based on width and height
# - "Maximized" window is created with maximized
# - "Fullscreen" window is created with fullscreen
#
[window]
width = 600
height = 400
mode = "Windowed"
From now and on you can also set image as background.
# Background configuration
#
# • opacity - changes the background transparency state
# Default: 1.0
#
# • mode - defines background mode between "Color" and "Image"
# Default: Color
#
# • image - Set an image as background
# Default: None
#
[background]
mode = "Image"
opacity = 1.0
[background.image]
path = "/Users/rapha/Desktop/eastward.jpg"
width = 200.0
height = 200.0
x = 0.0
Although you can define opacity though the new configuration API it does not work either for the image neither for the window. This something will be fixed in upcoming releases. An example below using the configuration we just saw.
note: The image above is from the Eastward game
Highlight #2: crates.io
Rio terminal is now also available in crates.io: https://crates.io/crates/rioterm .
cargo install rioterm