Commit Graph

1016 Commits

Author SHA1 Message Date
Darren Burns
568f183862 Fix test asserting that we dont support hex3 values 2022-05-03 17:32:25 +01:00
Darren Burns
6eca86a05d Update tokenizer and Color.parse to not break on triple/quad hex values 2022-05-03 17:31:31 +01:00
Will McGugan
6fba64face Merge pull request #448 from Textualize/features-env
Add TEXTUAL features env var
2022-04-29 15:18:17 +01:00
Will McGugan
23fdfa39c3 typing fix 2022-04-29 14:57:18 +01:00
Will McGugan
5026b21e26 features module 2022-04-29 14:53:53 +01:00
Will McGugan
eac5345886 simplified features 2022-04-29 14:35:30 +01:00
Will McGugan
547e515017 debug feature 2022-04-29 14:32:14 +01:00
Will McGugan
cbbcf72823 features tests 2022-04-29 14:20:43 +01:00
Will McGugan
10ea36b36b Add TEXTUAL features env var 2022-04-29 14:20:09 +01:00
Will McGugan
280fd2eacc Merge pull request #446 from Textualize/fix-parse-error
fix broken align and error logic
2022-04-29 13:43:50 +01:00
Will McGugan
191a6b7775 fix broken align and error logic 2022-04-29 11:52:38 +01:00
Will McGugan
884bd6d894 Merge pull request #408 from Textualize/style-error-improvements
Style error improvements
2022-04-29 11:05:39 +01:00
Will McGugan
6b23631716 formatting 2022-04-29 10:59:56 +01:00
Will McGugan
1a3f65bb76 Merge branch 'css' into style-error-improvements 2022-04-29 10:56:27 +01:00
Will McGugan
3bec5cfa40 Merge pull request #443 from Textualize/add-web-colors-management-and-prefix-ansi-ones
[colors] Add management of named Web colors to our CSS processing, prefix ANSI ones with `ansi_`
2022-04-29 10:52:13 +01:00
Will McGugan
dd8b11be87 Merge branch 'css' into add-web-colors-management-and-prefix-ansi-ones 2022-04-29 10:47:40 +01:00
Will McGugan
5cf061c31c Merge pull request #432 from Textualize/buttons
button widget
2022-04-29 10:44:11 +01:00
Will McGugan
8e821d4113 lazy parse_rules 2022-04-29 10:34:35 +01:00
Will McGugan
233c2c4075 fix css reload 2022-04-29 10:20:32 +01:00
Will McGugan
ee82f28407 Update src/textual/dom.py
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2022-04-28 15:26:32 +01:00
Will McGugan
ca62a0d533 fix property 2022-04-28 15:07:51 +01:00
Will McGugan
af3bb59ac0 Merge branch 'css' into buttons 2022-04-28 15:04:40 +01:00
Olivier Philippon
005943e79b Merge pull request #436 from Textualize/bugfix-display-none-is-being-ignored-in-vertical-and-horizontal-layouts
[layout][bugfix] Horizontal & Vertical layouts shouldn't display children that have `display: none`
2022-04-28 15:01:20 +01:00
Olivier Philippon
eedec6c863 [colors] Merge the first 16 ANSI colors with the named Web ones, add "transparent" 2022-04-28 15:00:26 +01:00
Will McGugan
d68caf0c7a Merge pull request #441 from Textualize/bugfix-css-color-names-should-be-able-to-include-digits
[css][bugfix] CSS colors can now have digits at the end of their names
2022-04-28 14:59:58 +01:00
Olivier Philippon
a304334628 [colors] Add management of named Web colors to our CSS processing, prefix ANSI ones with ansi_ 2022-04-28 14:21:02 +01:00
Will McGugan
9f9c681c01 docstirng 2022-04-28 13:57:05 +01:00
Will McGugan
a107663dfe removed code 2022-04-28 13:31:16 +01:00
Darren Burns
984d43e99d Add omit_empty to friendly_list 2022-04-28 13:28:18 +01:00
Will McGugan
c6f3252890 docstring 2022-04-28 13:27:45 +01:00
Will McGugan
2701172e76 docstrings 2022-04-28 13:27:03 +01:00
Will McGugan
4a20455838 moved layout 2022-04-28 13:26:29 +01:00
Will McGugan
8999ca5a3d docstring 2022-04-28 13:19:17 +01:00
Will McGugan
4090d35168 new layout 2022-04-28 13:17:10 +01:00
Olivier Philippon
72555f4a77 [dom] Simplify the implementation of the displayed_children property 2022-04-28 12:26:30 +01:00
Olivier Philippon
3ed17cb406 [css][bugfix] CSS tokens can now have digits in their names
...excepted for their first char of course
2022-04-28 12:18:23 +01:00
Darren Burns
22eef4c31e Remove redundant refresh calls in border property setter 2022-04-28 10:46:15 +01:00
Olivier Philippon
d0b8cacc35 [css][bugfix] CSS colors can now have digits at the end of their names 2022-04-28 10:44:05 +01:00
Darren Burns
bf1a77e09e Dont use Spacing.all in geometry 2022-04-28 10:23:34 +01:00
Darren Burns
2e906d8dfd Remove redundant help text words, StylingContext no longer optional 2022-04-28 10:21:18 +01:00
Olivier Philippon
f2bb9003c7 [layout][bugfix] Horizontal & Vertical layouts shouldn't display children that have display: none 2022-04-27 15:22:34 +01:00
Will McGugan
44c1f2373a button widget 2022-04-27 14:02:28 +01:00
Darren Burns
cd7f0f2713 Docstrings for spacing utility constructors 2022-04-27 13:59:35 +01:00
Darren Burns
91783b7c1e Testing for help text 2022-04-27 13:55:29 +01:00
Darren Burns
c2c29222e5 Docstrings 2022-04-27 12:39:53 +01:00
Darren Burns
ef691019c4 Merge branch 'css' of github.com:Textualize/textual into style-error-improvements 2022-04-27 12:13:14 +01:00
Olivier Philippon
efafbdfcc1 Merge pull request #428 from Textualize/bugfix-setting-inline-styles-width-or-height-to-an-integer-causes-a-crash
[widget] Add a test for types of values we handle in style's size
2022-04-27 12:06:16 +01:00
Darren Burns
6b2533fb65 Spacing tests 2022-04-27 11:59:09 +01:00
Darren Burns
65070195c2 Update StyleProperty docstring 2022-04-27 11:41:56 +01:00
Darren Burns
7329d6c200 Add help text for style-flags properties 2022-04-27 11:37:14 +01:00