Commit Graph

449 Commits

Author SHA1 Message Date
Darren Burns
ac81229564 Renaming some tests to improve clarity 2022-02-01 13:23:19 +00:00
Darren Burns
6da19868a4 Extracting some common regexes 2022-02-01 13:21:26 +00:00
Darren Burns
be091582ed Additional tests for variables with multiple values/comments 2022-02-01 13:07:32 +00:00
Darren Burns
9d5d6b1008 Renaming "declaration" tokens to differentiate between rule and variable declarations 2022-02-01 12:37:22 +00:00
Darren Burns
a99d60f9f8 Tokenising variable declarations 2022-02-01 11:52:15 +00:00
Darren Burns
ea2819f65b Tokenising variable declarations 2022-02-01 11:51:10 +00:00
Darren Burns
37668779da tests/test_css_parse.py -> tests/css/test_parse.py 2022-02-01 10:09:24 +00:00
Darren Burns
092dd569f4 Fix broken merge, use layout property 2022-01-27 13:11:50 +00:00
Will McGugan
833a4335fe Merge pull request #221 from Textualize/dont-render-margin
Margin spacing is now invisible
2022-01-27 10:44:48 +00:00
Darren Burns
3c730665f5 Merge branch 'css' into dont-render-margin 2022-01-25 16:42:34 +00:00
Darren Burns
07a053fdd4 Merge pull request #225 from Textualize/view-from-css
Use the `layout` as specified in CSS
2022-01-25 14:29:04 +00:00
Darren Burns
8c3bc4135e Add missing docstring, use explicit kwargs, remove id=_root 2022-01-25 14:20:32 +00:00
Darren Burns
cea331ef4d Ensure Python 3.7 support using typing_extensions 2022-01-21 16:04:29 +00:00
Darren Burns
89524e301e Remove some unused logging 2022-01-21 16:00:47 +00:00
Darren Burns
a8cd64964f Fix a docstring 2022-01-21 15:54:13 +00:00
Darren Burns
5690f946d1 Testing to ensure layout can properly be set via view 2022-01-21 15:50:58 +00:00
Darren Burns
deb7f1cb54 Use dock layout by default in View node-level CSS 2022-01-21 15:25:15 +00:00
Darren Burns
60134b650d Rename variable in a test 2022-01-21 14:39:20 +00:00
Darren Burns
e6919ac35b Add docstring to Stylesheet.apply 2022-01-21 14:36:48 +00:00
Darren Burns
837144cc13 Remove a log 2022-01-21 14:28:37 +00:00
Darren Burns
1bc4bf54ae Adding tests for layout factory 2022-01-21 14:27:47 +00:00
Darren Burns
489f2c48d2 Merge branch 'css' of github.com:willmcgugan/textual into view-from-css 2022-01-21 14:23:16 +00:00
Darren Burns
8601cea0fa Remove redundant block of code 2022-01-21 14:16:52 +00:00
Darren Burns
742104eb21 Remove _layout attribute from App 2022-01-21 14:15:09 +00:00
Darren Burns
d04c66291b Improve error message when layout doesnt exist, add tests for parsing layout from CSS 2022-01-21 14:14:40 +00:00
Darren Burns
9c2a125c24 Ensuring we get and set Layout as set in view.styles everywhere 2022-01-21 13:46:56 +00:00
Darren Burns
c6429e51ac Fixing transitive imports and circular imports 2022-01-21 13:18:39 +00:00
Darren Burns
5773e39845 Move LayoutProperty into styles, add some comments 2022-01-21 12:33:35 +00:00
Darren Burns
6a1c1cc874 Merge branch 'css' into dont-render-margin 2022-01-21 10:07:53 +00:00
Darren Burns
8406718cf3 Revert basic.py back to previous state 2022-01-20 17:16:26 +00:00
Darren Burns
c59dff5c15 Move logic for applying margin to widgets into WidgetPlacement 2022-01-20 17:12:00 +00:00
Will McGugan
60fdada61a Merge pull request #219 from Textualize/invisibility
Invisible widgets now dont render
2022-01-20 16:34:02 +00:00
Darren Burns
13d7580291 Remove unused import 2022-01-20 15:04:37 +00:00
Darren Burns
8b24a476f0 Remove redundant code, fix incorrect docstring 2022-01-20 14:50:35 +00:00
Darren Burns
e2fd92bda2 Margin space is now not rendered as solid colour 2022-01-20 14:47:37 +00:00
Darren Burns
1e92b08e1b Docstring improvements 2022-01-20 13:05:58 +00:00
Darren Burns
678a67ce2d Invisible widgets now dont render 2022-01-20 11:39:56 +00:00
Will McGugan
185788b760 Merge pull request #214 from Textualize/time-no-scalar
Splitting out parsing of durations into new token types, avoiding Scalar
2022-01-19 16:14:52 +00:00
Darren Burns
3af8c5ad9d Merge pull request #212 from Textualize/visibility
Visibility
2022-01-19 16:09:54 +00:00
Darren Burns
3640afc517 Add some docstrings 2022-01-19 16:04:11 +00:00
Darren Burns
c462beb312 Format exception message with !r 2022-01-19 15:51:52 +00:00
Darren Burns
768672c7f8 Add a couple of docstrings for DurationErrors 2022-01-19 15:50:03 +00:00
Darren Burns
077cd04071 Switch to relative imports 2022-01-19 15:41:03 +00:00
Darren Burns
6345850b69 Dont set error cause for StylesheetErrors 2022-01-19 15:30:25 +00:00
Darren Burns
f9f7efb1cf Ensure test accounts for negative values 2022-01-19 15:20:03 +00:00
Darren Burns
1103844708 Namespacing parsing tests into classes 2022-01-19 15:09:54 +00:00
Darren Burns
baba4ceed8 Stop black from formatting tests 2022-01-19 15:02:01 +00:00
Darren Burns
fd47ef491b Separate parsing of scalar, number, duration 2022-01-19 14:56:03 +00:00
Will McGugan
3f8d0c7c36 Merge pull request #213 from Textualize/display-setter
Rename visible property to display, add setter
2022-01-19 11:06:24 +00:00
Darren Burns
644fdc7ed1 Stop parsing time as scalar 2022-01-18 17:32:49 +00:00