6.2 KiB
Changelog
unreleased
Changes:
- Components that depend on session attributes (like
active_page_url) or session attachments are now automatically rebuilt when those values change - Components are now rebuilt immediately after a state change, not just after event handlers
TextStyleno longer has default values, omitted values are left unchanged instead Deprecations:- The
CursorStyleenum is deprecated in favor of string literals
Bugfixes:
- Fix
rio.Revealernot stretching its child - Fix various components propagating click events
Additions:
NumberInputcan now evaluate math expressionsPointerEventListenercan now listen to only specific button eventsPointerEventListenerandKeyEventListenernow support theevent_orderparameter to control whether events are handled before or after child componentsKeyEventListenercan now listen to only specifc hotkeysCalendarnow has ais_sensitiveparameter- New component:
rio.PdfViewer rio.Imagenow has a loading animation- Added
accessibility_roleparameter to all components - Added 'accessibility_relationship' parameter to
Linkcomponent - Added
auto_focusparameter to input components - Added
Session.pick_folder - Added
Font.from_google_fontsandFont.from_css_file - Added
rio.HttpOnly - Added
text_styleparameter torio.TextInput - Experimental additions:
rio.Listrio.Dictrio.Setrio.Dataclass
0.11
-
Added
tilefill mode torio.ImageFill -
Component.force_refreshis now synchronous -
Added
tilefill mode torio.ImageFill -
Colors now use Oklab instead of RGB
-
Breaking:
rio.Color.hexnow returns a 6-digit hex code instead of an 8-digit one. Userio.Color.hexato get the old behavior. -
Dialogs now apply a style by default
-
rio.Drawernow sizes itself to not only fit the anchor, but also the drawer content -
rio.Popupnow acceptsuser_closableandmodal, just like dialogs -
more styling options for cells in
rio.Table -
Expose additional platform information:
rio.Session.screen_widthrio.Session.screen_heightrio.Session.pixels_per_font_heightrio.Session.scroll_bar_sizerio.Session.primary_pointer_type
-
Themes now take an additional
header_fontparameter -
Breaking: Gradient stops can now be specified just as colors and Rio will infer their position (breaking, because the stops must be ordered now)
-
add icons for common brands
???
- New styles for input boxes: "rounded" and "pill"
- Improved mobile support: Dragging is now much smoother
- Improved tables
rio runnow also works when usingas_fastapi
0.10
rio.Dropdownwill now open a fullscreen popup on mobile devicesrio.MediaPlayernow also triggers theon_playback_endevent when the video loops- experimental support for base-URL
- dialogs!
- dialogs can now store a result value similar to futures
rio.Text.wrapis nowrio.Text.overflow. Same for markdown.- removed
rio.Popup.on_open_or_close. This event never actually fired. rio.Linkcan now optionally display an icon- Rio will automatically create basic navigation for you, if your app has more than one page
- Updated button styles: Added
colored-textand renamedplain->plain-text - Methods for creating dialogs are now in
rio.Sessionrather thanrio.Component. - Page rework
- Add
rio.Redirect - Still missing automatic page scan
- Add
- New experimental
rio.FilePickerAreacomponent
0.9.2
- restyled
rio.Switch - New
experimentalbroken componentAspectRatioContainer
0.9.1
- added gain_focus / lose_focus events to TextInput and NumberInput
.rioignorehas been superseeded by the newproject-filessetting inrio.toml- values in
rio.tomlare now written in kebab-case instead of all_lower_case. Rio will still recognize the old names and automatically fix them for you. - deprecated
lightparameter ofTheme.from_color, has been superseded bymode - Tooltips now default to
position="auto" - Icons now use
_instead of-in their names. This brings them more in line with Python naming conventions - Checkbox restyling
0.9
- Buttons now have a smaller minimum size when using a
rio.Componentas content FrostedGlassFilladded (Contributed by MiniTT)- added
@rio.event.on_window_size_change - popups now default to the "hud" color
- popups and tooltips are no longer cut off by other components
- Add HTML meta tags
- Add functions for reading and writing clipboard contents to the
Session(Contributed by MiniTT) - The color of drawers is now configurable, and also sets the theme context
- added
Calendarcomponent - added
DateInputcomponent - massive dev-tools overhaul
- new (but experimental)
Switchercomponent - TextInputs now update their text in real-time
rio runno longer opens a browserrio.HTMLcomponents now execute embedded<script>nodes- added
CheckboxComponent FlowContainernow has a conveniencespacingparameter which controls bothrow_spacingandcolumn_spacingat the same time
deprecations:
rio.Fillandrio.FillLikedeprecated. Most components only support specific fills, so these have no purpose any moredisplay_controlsparameter ofCodeBlockcomponent renamed toshow_controls
breaking:
Text.justifynow defaults to"left"FlowContainer.justifynow defaults to"left"rio.Themeis no longer frozen, and can now be modified. This is breaking, because thereplacemethod has been removed
0.8
- Rectangles now honor the theme's shadow color
- Renamed
Banner.markuptoBanner.markdown - Removed the "multiline" style from Banners
- Removed
Button.initially_disabled_for - Added a
text_colorparameter toTheme.from_colorsandTheme.pair_from_colors rio runnow checks that the installed version of Rio is up-to-date
0.7
- New example: multi-page website
- New component: CodeBlock
- UserSettings can now have mutable default values
- Removed "undefined space"