TUI | Follow-up from textual updates
-
Check if we can and should use new :odd/:evenTCSS pseudoselectors (e.g. to replace CLIVE_ODD_COLUMN_CLASS_NAME) (https://github.com/Textualize/textual/releases/tag/v0.84.0) -
Check if we can and should use new :first-of-type,:last-of-typeTCSS pseudoselectors (https://github.com/Textualize/textual/releases/tag/v0.84.0)- it looks like there should be places that can use that, however, it can be hard to determine and refactor all the places
-
Check if we can and should use new background-tintTCSS rule (https://github.com/Textualize/textual/releases/tag/v0.84.0)- it looks like there are places that could use that. Look for
rgba/rgb.
- it looks like there are places that could use that. Look for
-
Check if we can and should replace Button.Pressedwithactionparam (https://github.com/Textualize/textual/releases/tag/v0.85.0)- it looks like it's better not to combine
key bindingaction andbuttonaction into a single method
- it looks like it's better not to combine
-
Check if we can and should use the HorizontalGroup/VerticalGroup(https://github.com/Textualize/textual/releases/tag/v0.85.0)- looks like there should be places that could benefit from that.
-
Check if we can and should use the Select.selectioninstead ofSelect.value(e.g. inCliveSelect) (https://github.com/Textualize/textual/releases/tag/v0.87.0)looks like not, because the current Textual implementation could raise assertion while is typhinted to return None
-
Check if we can and should use border: tabTCSS rule (https://github.com/Textualize/textual/releases/tag/v0.89.0) -
Check if we can and should use text-overflow(and maybetext-wrap) TCSS rules (https://github.com/Textualize/textual/releases/tag/v2.0.0) -
Check if we can and should use text-paddingTCSS rule (https://github.com/Textualize/textual/releases/tag/v3.0.0) -
Check if we can and should use :first-childand:last-childpseudoclasses (https://github.com/Textualize/textual/releases/tag/v3.2.0) -
Check if we can and should use toggle_classof reactive (https://github.com/Textualize/textual/releases/tag/v3.2.0) -
Check if we can and should use compactinstead of e.g. OneLineButton (https://github.com/Textualize/textual/releases/tag/v3.2.0) -
Use textual-speedupswhen becomes production ready (https://github.com/Textualize/textual/releases/tag/v3.4.0) -
Content markup is now more lenient, looks like we don't need the markup=falseworkaround anymore (https://github.com/Textualize/textual/releases/tag/v3.4.0)): -
Check if we can use textualgetters(https://github.com/Textualize/textual/releases/tag/v3.7.0)- looks like we can replace them with
@propertythas does a query but looks like there is no getter yet for more saferquery_exactly_one
- looks like we can replace them with
-
Check if we can and should use new :emptyTCSS pseudoselector (https://github.com/Textualize/textual/releases/tag/v5.1.0) -
Check if we can and should use new Screen.action_focus(https://github.com/Textualize/textual/releases/tag/v5.1.0)- looks like can be used in
BINDINGS
- looks like can be used in
-
Check if we can and should use new reactive.Initialize(https://github.com/Textualize/textual/releases/tag/v5.3.0)- looks like in some cases we refer to default factory function defined outside of the class like
local_profile: Profile = var(get_default_profile, init=False)
- looks like in some cases we refer to default factory function defined outside of the class like
-
Check if we can and should use new Binding.Group(https://github.com/Textualize/textual/releases/tag/v6.0.0) -
Check if we can and should use new Button.flat(https://github.com/Textualize/textual/releases/tag/v6.1.0)
Edited by Mateusz Żebrak