Commit Graph

1003 Commits

Author SHA1 Message Date
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
Olivier Philippon
f7e72ed945 [widget] Better tests for types of values we handle or not in style's size 2022-04-27 11:26:33 +01:00
Olivier Philippon
9d1f9da641 [widget] Add a test for types of values we handle in style's size 2022-04-27 10:18:46 +01:00
Darren Burns
271e07eebf Add help text for offset-x and offset-y properies 2022-04-27 10:07:32 +01:00
Darren Burns
79e452fbee Display help text for offset property CSS 2022-04-26 17:00:39 +01:00
Darren Burns
bc00863147 Move alignment examples to more logical place 2022-04-26 15:46:32 +01:00
Darren Burns
eb65d9689d Add no-unit scalar property CSS example 2022-04-26 15:43:09 +01:00
Darren Burns
39412c11a9 Ensure help text for align appears 2022-04-26 15:41:33 +01:00
Will McGugan
a11d0b4ab5 Merge pull request #420 from Textualize/esc-fix
fix for escape key processing
2022-04-26 15:28:56 +01:00
Will McGugan
e0b80dd3d6 remove superfluouse instance 2022-04-26 15:26:37 +01:00
Will McGugan
8a7d52156c win fix 2022-04-26 15:12:02 +01:00
Will McGugan
3e3454552f parser tests 2022-04-26 14:22:12 +01:00
Darren Burns
e2dafb523c Help text for align, fix off-by-one in tokenizer error output 2022-04-26 14:06:57 +01:00
Will McGugan
a1cbd0c700 fix for escape key processing 2022-04-26 13:54:09 +01:00