Commit Graph

1519 Commits

Author SHA1 Message Date
Will McGugan
0ba3ffb171 size properties 2022-07-04 21:15:24 +01:00
Will McGugan
d7f463f3eb remove method 2022-07-04 21:01:11 +01:00
Will McGugan
415db09a4b docstrings 2022-07-04 20:53:53 +01:00
Will McGugan
12ce623ddf typing fix 2022-07-04 20:47:47 +01:00
Will McGugan
8b1babb179 typing fix 2022-07-04 20:46:36 +01:00
Will McGugan
2ac95c5922 render lines and scrollbars 2022-07-04 20:37:59 +01:00
Will McGugan
f3a7c9483f apply style to widget 2022-07-04 14:48:28 +01:00
Will McGugan
97c58a7b0a implemented outline 2022-07-02 14:37:00 +01:00
Will McGugan
81481a0e16 Added tint and opacity 2022-06-30 21:41:37 +01:00
Will McGugan
410fc91a0e styles renderer update 2022-06-30 10:54:37 +01:00
Will McGugan
b2f0dbb8a2 added line_trim 2022-06-29 20:42:55 +01:00
Will McGugan
ea29604c29 normalize border 2022-06-29 17:23:51 +01:00
Will McGugan
5c1b50fe43 styles renderer 2022-06-29 16:59:21 +01:00
Will McGugan
c723cbd356 Styles renderer 2022-06-29 15:46:06 +01:00
Will McGugan
32c34d1e54 Merge pull request #591 from Textualize/table-caret
Add a cursor to table
2022-06-28 13:59:46 +01:00
Will McGugan
8c623f9385 comment data table 2022-06-28 11:15:40 +01:00
Will McGugan
209a842ec6 docstring 2022-06-28 11:08:26 +01:00
Will McGugan
2ac4c1edd2 Added _cells 2022-06-28 11:02:16 +01:00
Will McGugan
cec49dbbc2 optimize from_union add docstrings 2022-06-28 10:36:16 +01:00
Will McGugan
86fdc96ab3 geometry tests 2022-06-27 10:11:57 +01:00
Will McGugan
82358fdb7b data table as widget 2022-06-25 14:55:19 +01:00
Will McGugan
4f02f17a38 more granular partial updates 2022-06-25 11:26:44 +01:00
Will McGugan
15039fa1ad simplify 2022-06-24 16:09:54 +01:00
Will McGugan
03bfe10e69 inter-widget updates 2022-06-24 16:00:12 +01:00
Olivier Philippon
aa125928bb Merge pull request #588 from Textualize/add-slight-animation-to-buttons-on-click
[button] Add a brief "active" effect when a button a clicked
2022-06-24 15:55:09 +01:00
Will McGugan
f06d2a3760 Merge pull request #587 from Textualize/tests-restore-layout-integration-tests
[tests] Restore layout integration tests
2022-06-24 15:50:49 +01:00
Olivier Philippon
c5285d3b48 [button] Add a brief "active" effect when a button a clicked
This effect is achieved by adding a `-active` class on the button instance when it's clicked, and removing it a few hundreds milliseconds later.
Our 4 default buttons types have default styles (background color is lightened) for this effect, with a transition to make it smoother.

How users can customise it:
 - The visual impact of the `-active` class is pure CSS, and thus can simply be overridden with custom userland CSS
 - The duration for which the `-active` class is added can be customised on each subclass of Button, or even at the Button instance level, by overriding the `ACTIVE_EFFECT_DURATION` property
2022-06-24 15:04:11 +01:00
Olivier Philippon
eb6370b167 [tests] Restore layout integration tests
These were broken-and-disabled in a previous PR because of 2 things:
 - The Widgets' default vertical scrollbar size is now 2: this has to be reflected in these tests, in order to benefit from their "regressions spotting" role
 - As long as textual#581 ("Default versus User CSS") is not solved, the Widget's default CSS overrides the custom Widgets' own CSS.
   The test now temporarily uses a more specific CSS selector in order to bypass this.
2022-06-24 11:58:44 +01:00
Will McGugan
fa8885d674 refactored to translate_inside method 2022-06-22 13:54:28 +01:00
Will McGugan
e85438c9e6 renamed Region.origin to offset 2022-06-22 11:47:58 +01:00
Will McGugan
3451152993 cursor and hover 2022-06-22 11:03:04 +01:00
Will McGugan
b2ed540c50 keyboard control of cursor 2022-06-21 17:49:28 +01:00
Will McGugan
a9be6aa32a Merge pull request #560 from Textualize/scroll-view
Scroll view and DataTable Widget
2022-06-21 14:41:09 +01:00
Will McGugan
b8e0143257 docstrings 2022-06-21 14:31:59 +01:00
Will McGugan
8378f507dd Update docstring 2022-06-21 14:28:03 +01:00
Will McGugan
4f6a71bc33 annotations 2022-06-21 14:11:18 +01:00
Will McGugan
ad0507cb27 added some more tests 2022-06-21 14:07:27 +01:00
Will McGugan
637b916ce7 comment 2022-06-21 13:38:34 +01:00
Will McGugan
c3dcc529b3 docstring name change 2022-06-21 13:33:49 +01:00
Will McGugan
e73d8d0a76 docstrings 2022-06-21 13:33:36 +01:00
Will McGugan
f21b32e7b4 Update src/textual/widgets/_data_table.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-06-21 13:31:23 +01:00
Will McGugan
98fcb1a4c8 Update src/textual/dom.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-06-21 13:23:35 +01:00
Will McGugan
414bcca31d comment 2022-06-21 13:22:40 +01:00
Will McGugan
83907930fc update comment 2022-06-21 13:16:10 +01:00
Will McGugan
c0ba93ec93 name change 2022-06-21 13:13:56 +01:00
Will McGugan
9479dfb489 remove sandbox script 2022-06-21 13:08:38 +01:00
Will McGugan
4f8dba7225 Merge pull request #585 from Textualize/add-space
add space to keys
2022-06-21 11:54:33 +01:00
Will McGugan
306cf22d5c add space to keys 2022-06-21 11:44:46 +01:00
Will McGugan
cc540809d2 fixed typing import 2022-06-21 11:39:49 +01:00
Will McGugan
695e03efca uncomment 2022-06-21 11:21:57 +01:00