Rodrigo Girão Serrão
e81779f97c
Add 'See also' sections to references.
2023-01-09 15:25:47 +00:00
Rodrigo Girão Serrão
8bf211b898
Fix typo.
2023-01-09 14:14:14 +00:00
Rodrigo Girão Serrão
8b7189ff52
Reorder subpages alphabetically.
2023-01-09 14:05:59 +00:00
Rodrigo Girão Serrão
1300807b3a
Put example outputs in first tab.
2023-01-09 13:57:04 +00:00
Rodrigo Girão Serrão
e7afcbc0b5
Add reference to 'textual borders' command.
2023-01-09 13:52:02 +00:00
Rodrigo Girão Serrão
dd6e73aa39
Add subsections for references with 2+ examples.
2023-01-09 13:50:45 +00:00
Rodrigo Girão Serrão
71b859b6e2
Add thorough example for all outlines.
2023-01-09 13:49:32 +00:00
Rodrigo Girão Serrão
da9a481f1c
Remove inclusion of old css types snippets.
...
Supposedly, this had been done in an earlier commit for all styles. Apparently, I forgot to open styles references that were one level deeper in the directory, so the pages about grid, links, and scrollbar colors still included the css types values directly in their reference pages.
2023-01-09 11:28:47 +00:00
Rodrigo Girão Serrão
196d430582
Style all Textual CSS as 'sass'
...
Textual CSS is better highlighted in SASS code blocks because the SASS parser seems to be more lenient.
2023-01-09 11:20:04 +00:00
Rodrigo Girão Serrão
40cbbc31b8
Add note about viewport size.
...
[skip ci]
2023-01-09 10:54:04 +00:00
Rodrigo Girão Serrão
1ef20eb4ec
Improve CSS type color reference.
...
[skip ci]
2023-01-09 10:29:47 +00:00
Rodrigo Girão Serrão
81ddae7933
Use specific rules in CSS type examples.
...
[skip ci]
2023-01-09 09:32:27 +00:00
Rodrigo Girão Serrão
c0d7f7cebf
Add note about Textual limitation.
2023-01-07 09:47:56 +00:00
Rodrigo Girão Serrão
aad41b8de0
Fix height example.
...
[skip ci]
2023-01-07 09:44:39 +00:00
Rodrigo Girão Serrão
08baaf11f3
Refactor width reference.
2023-01-07 09:40:32 +00:00
Rodrigo Girão Serrão
8de6d8fd69
Add new width comparison example.
2023-01-07 09:40:03 +00:00
Rodrigo Girão Serrão
e37b6e8cca
Update changelog.
2023-01-07 09:39:08 +00:00
Rodrigo Girão Serrão
4c3eb3e021
Update placeholder snapshot test.
...
Although there was no visual difference in the output, the snapshot tool was complaining because there are now less things to draw on the screen, thus the snapshots looked different. Hence, the placeholder snapshot needed to be updated.
2023-01-07 09:35:41 +00:00
Rodrigo Girão Serrão
94e8b77779
Simplify Placeholder implementation.
...
Instead of creating a private widget that is the only child of 'Placeholder', that was inheriting from 'Container', simplify everything. 'Placeholder' now inherits directly from 'Widget' and it saves a dictionary with its renderables per variant, instead of deferring that to the child '_PlaceholderLabel'.
2023-01-07 09:35:41 +00:00
darrenburns
c22cc30e71
Ensure pretty traceback for error in Widget compose method ( #1505 )
...
* Ensure pretty traceback for error in Widget compose method
* Fail fast and pretty tracebacks for Widget compose errors
2023-01-07 09:35:41 +00:00
Dave Pearson
1e8162e8d0
Add support for star/stop values on index
...
See https://github.com/Textualize/textual/pull/1495#pullrequestreview-1238616797
2023-01-07 09:35:41 +00:00
Dave Pearson
2bf41fe428
Correct docstring for the return type of index
2023-01-07 09:35:41 +00:00
Dave Pearson
53df47b401
Rename ImmutableSequence to ImmutableSequenceView
...
Also, in doing so, drop support for unrolling iterators and making them into
indexable sequences.
See the following feedback:
https://github.com/Textualize/textual/pull/1495#pullrequestreview-1238616797
https://github.com/Textualize/textual/pull/1495#issuecomment-1373553580
2023-01-07 09:35:41 +00:00
Dave Pearson
12c6129150
Tweak the unit tests for ImmutableSequence
...
Make it 100% clear that the tests that are about wrapping iterators actually
are wrapping iterators.
2023-01-07 09:35:41 +00:00
Dave Pearson
274bb634ca
Only convert to an indexable sequence if absolutely necessary
2023-01-07 09:35:41 +00:00
Dave Pearson
948cb6676f
Focus less on it being a list and more a thing that's wrapped
2023-01-07 09:35:41 +00:00
Dave Pearson
d95957188b
Simplify ImmutableSequence.__bool__
2023-01-07 09:35:41 +00:00
Dave Pearson
0029470b4b
Add read-only access to the children of a TreeNode
...
See #1398 .
2023-01-07 09:35:39 +00:00
Dave Pearson
2c827e18d0
Add a generic immutable sequence wrapper class
...
In anticipation of satisfying #1398 , this adds a generic immutable sequence
wrapper class. The idea being that it can be used to wrap up a list or
similar, that you don't want the caller to modify.
This commit aims to get the basics down for this, and also adds a minimal
set of unit tests.
2023-01-07 09:35:00 +00:00
Darren Burns
ad6a716d09
Fix mouse01 example background transparency
2023-01-07 09:35:00 +00:00
Dave Pearson
af56d88a6d
Add a public read-only parent property to TreeNode
...
See #1397 .
2023-01-07 09:34:56 +00:00
Rodrigo Girão Serrão
2867b09923
Update visibility reference.
2023-01-06 16:38:49 +00:00
Rodrigo Girão Serrão
2217a8f5fa
Add new visibility example.
...
This new example shows how we can have an invisible container with visible children.
2023-01-06 16:38:31 +00:00
Rodrigo Girão Serrão
d69168a922
Update visibility example to use labels.
2023-01-06 16:37:41 +00:00
Rodrigo Girão Serrão
498f452b88
Update tint reference.
2023-01-06 14:53:18 +00:00
Rodrigo Girão Serrão
ee4b2cfe9e
Update tint example to use labels.
2023-01-06 14:53:07 +00:00
Rodrigo Girão Serrão
69a143442c
Inline css type values in their reference.
...
[skip ci]
2023-01-06 14:50:31 +00:00
Rodrigo Girão Serrão
42baa0e074
Remove redundant values subsections.
...
[skip ci]
2023-01-06 14:41:13 +00:00
Rodrigo Girão Serrão
583b1273ac
Update text style reference.
...
[skip ci]
2023-01-06 14:18:50 +00:00
Rodrigo Girão Serrão
72d3171a79
Add example with all text styles.
2023-01-06 14:18:21 +00:00
Rodrigo Girão Serrão
1276629431
Update example.
2023-01-06 14:18:07 +00:00
Rodrigo Girão Serrão
c7c352a38a
Replace statics with labels.
...
[skip ci]
2023-01-06 10:56:55 +00:00
Rodrigo Girão Serrão
a25ba1bea4
Update *opacity references.
2023-01-06 10:47:31 +00:00
Rodrigo Girão Serrão
2dda286628
Fix alphabetical order of styles.
2023-01-06 10:42:18 +00:00
Rodrigo Girão Serrão
042bc3b3fe
Improve text-align example.
...
Replace statics with labels; change to a 2 x 2 grid layout to make it easier to see the difference between 'center' and 'justify'; increase readability by setting 'color: auto' in the labels.
2023-01-06 10:41:46 +00:00
Rodrigo Girão Serrão
7743feadff
Add GIF to show all scrollbar colors.
2023-01-06 10:28:54 +00:00
Rodrigo Girão Serrão
710697121d
Merge branch 'main' into review-styles-reference
...
[skip ci]
2023-01-06 10:05:16 +00:00
Will McGugan
85afdba125
Merge pull request #1480 from Textualize/fix-1479
...
Prevent scrollbar rules from being ignored
2023-01-06 01:58:35 -08:00
Will McGugan
70bded01f3
Merge pull request #1456 from nitzan-shaked/typing
...
basic typing fixes
2023-01-06 01:57:04 -08:00
Will McGugan
8ea2eae77b
Merge pull request #1500 from davep/faqtory-xkcd-327
...
Sanitise issue titles before running suggest on them
2023-01-06 01:53:58 -08:00