Commit Graph

1139 Commits

Author SHA1 Message Date
Darren Burns
28f01641ce Merge branch 'css' of github.com:Textualize/textual into text-input 2022-05-13 10:27:39 +01:00
Darren Burns
50987baa75 Create TextBackend interface for managing text widgets 2022-05-13 10:24:35 +01:00
Darren Burns
4a5db9b4b0 Some experimenting with using the widget in different ways 2022-05-12 16:22:35 +01:00
Will McGugan
96ce4202a5 Merge pull request #493 from Textualize/compositor-granularity
Optimize Compositor by combining updates
2022-05-12 11:41:02 +01:00
Darren Burns
c34973ce80 Simple multiline text widget to help model text base class 2022-05-12 11:15:41 +01:00
Will McGugan
1a13a9c8ec wait a bit 2022-05-11 15:25:17 +01:00
Will McGugan
a51cb0c329 Merge remote-tracking branch 'origin/css' into compositor-granularity 2022-05-11 15:20:24 +01:00
Will McGugan
83fab6a9e1 typos 2022-05-11 15:11:01 +01:00
Will McGugan
73a2dfb3c6 Merge pull request #494 from Textualize/tests-e2e-see-if-we-can-test-scroll-to-widget
[tests][e2e] Add a test for `Widget#scroll_to_widget()`
2022-05-11 14:52:40 +01:00
Will McGugan
b7a3a9b4c8 Merge pull request #486 from Textualize/css-add-did-you-mean-for-css-color-names
[css] Add a "Did you mean" suggestion when the value of a color is wrong but we can find a close one
2022-05-11 14:41:17 +01:00
Will McGugan
4cfc8f8947 merge 2022-05-11 14:33:12 +01:00
Will McGugan
477e19a012 remove debug 2022-05-11 14:31:19 +01:00
Will McGugan
760beac6be Merge pull request #479 from Textualize/render-style
Add style param to Widget render method
2022-05-11 13:32:35 +01:00
Olivier Philippon
e1c8ddf9c2 [scroll_to_widget] Add a quick sandbox to test the feature 2022-05-11 11:47:34 +01:00
Will McGugan
6763338c05 remove print 2022-05-11 11:31:55 +01:00
Will McGugan
999e84165d docstring and refinements 2022-05-11 11:31:13 +01:00
Will McGugan
08f90dc9ce refresh mechanism change 2022-05-11 11:07:41 +01:00
Darren Burns
75085a9f4f Move allow propagate into child TextInput 2022-05-11 11:01:51 +01:00
Olivier Philippon
aa7b19a193 [css] Address PR feedback for "Did you mean" suggestions 2022-05-11 10:45:38 +01:00
Darren Burns
595b944e0f Remove unecessary validate method call, stylize button properly 2022-05-11 10:23:51 +01:00
Darren Burns
0674f500ce text-input-1 2022-05-11 10:11:01 +01:00
Olivier Philippon
e70f8a4333 [tests][e2e] Add a test for Widget#scroll_to_widget() 2022-05-11 10:10:11 +01:00
Will McGugan
b2699706b3 Merge pull request #492 from Textualize/scroll-to-fix
Scroll to top when widget is larger than container
2022-05-11 10:07:39 +01:00
Will McGugan
509a49c594 fix scrollbar refresh 2022-05-11 09:31:57 +01:00
Will McGugan
8f38ea4494 span refinements 2022-05-10 17:37:27 +01:00
Will McGugan
f8c7566ecd Merge branch 'css' into compositor-granularity 2022-05-10 16:06:00 +01:00
Will McGugan
4a7bf0e060 spans tweak 2022-05-10 14:40:41 +01:00
Will McGugan
674d3aefa3 Scroll to top when widget is larger than container 2022-05-10 13:58:16 +01:00
Will McGugan
6bfe065150 Merge pull request #483 from Textualize/scroll_to_widget
Added scroll_to_widget
2022-05-10 13:43:54 +01:00
Will McGugan
295273c974 fix for test 2022-05-10 13:40:47 +01:00
Will McGugan
7508bd4d84 Merge branch 'css' into scroll_to_widget 2022-05-10 13:38:05 +01:00
Darren Burns
b61ee05c98 Applying styles to button 2022-05-10 11:22:04 +01:00
Olivier Philippon
e37036c816 [css] Add a "Did you mean" suggestion when the value of a color is wrong but we can find a close one 2022-05-10 11:13:38 +01:00
Will McGugan
816f4c9ba4 exposed duration and speed to scroll 2022-05-10 10:42:27 +01:00
Will McGugan
20c3220d73 improved compositor granularity 2022-05-10 10:30:16 +01:00
Will McGugan
231ad797d7 Merge pull request #482 from Textualize/bugfix-align-center-middle-not-working-correctly-with-scrollbars
[tests] Add an integration test for the vertical layout, fix the bug that messes up the layout when the children have `align: center top;`
2022-05-10 10:27:16 +01:00
Will McGugan
62582d0be3 Update src/textual/widget.py
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2022-05-10 10:11:04 +01:00
Darren Burns
055c43660c Fix typo 2022-05-10 09:58:47 +01:00
Darren Burns
b5bcc63511 Use Style.from_colors shortcut 2022-05-10 09:56:47 +01:00
Darren Burns
2425ba260f Ensure we dont overwrite style object injected into render 2022-05-10 09:55:04 +01:00
Olivier Philippon
72c9622b82 [layouts] Address feedback on "Fix vertical layout bug with centered content" PR 2022-05-10 09:12:55 +01:00
Will McGugan
0c83d20926 docstring fix 2022-05-09 08:48:54 +01:00
Will McGugan
c417e4656a update docstring 2022-05-09 08:48:03 +01:00
Will McGugan
f9f4cf43b0 better name 2022-05-06 17:38:27 +01:00
Will McGugan
cad971cb37 docstring 2022-05-06 17:29:40 +01:00
Will McGugan
580edb4f4b comment and tests 2022-05-06 16:39:03 +01:00
Olivier Philippon
7843683f5c [layouts] make integration test pass on Windows 2022-05-06 16:32:50 +01:00
Will McGugan
4a2588068c Comments 2022-05-06 16:13:34 +01:00
Will McGugan
a970193184 Added scroll_to_widget 2022-05-06 15:59:59 +01:00
Olivier Philippon
2d25807f49 [layouts] Fix vertical layout bug with centered content 2022-05-06 12:16:13 +01:00