Darren Burns
972aeece64
Add Specificity5 for user defined CSS
2022-06-28 17:26:18 +01:00
Darren Burns
aef7270863
Merge branch 'css' of github.com:Textualize/textual into user-css-over-widget-css
2022-06-28 13:53:08 +01:00
Darren Burns
7ebac6b860
Add wip test for user over widget css, use type alias
2022-06-28 13:52:58 +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
Darren Burns
b9b499fdc2
Merge branch 'css' of github.com:Textualize/textual into user-css-over-widget-css
2022-06-22 14:05:09 +01:00
Darren Burns
71536364a4
Copy buttons example into sandbox
2022-06-22 14:03:24 +01:00
Darren Burns
76b39747ca
Move files into darren sandbox
2022-06-22 14:02:24 +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
Will McGugan
c9591456ea
fix widgets import
2022-06-21 11:21:22 +01:00
Will McGugan
2630b7507d
update comment
2022-06-21 11:19:39 +01:00
Will McGugan
1ae2855f1f
broken merge
2022-06-21 11:17:20 +01:00
Will McGugan
74a93606ec
remove broken code
2022-06-21 11:16:50 +01:00
Will McGugan
a6e1fdb328
simplify
2022-06-21 11:09:05 +01:00
Will McGugan
9138c5fd2f
combined assigments
2022-06-21 11:08:03 +01:00
Will McGugan
a38ffd1bf5
modern typing in cache
2022-06-21 11:03:51 +01:00
Will McGugan
bbda4c3e0b
remove unaccurate comments
2022-06-21 10:54:10 +01:00
Will McGugan
2999626973
Merge branch 'css' into scroll-view
2022-06-21 10:33:29 +01:00
Will McGugan
c86bf797e8
remove broken alias
2022-06-21 10:32:39 +01:00
Will McGugan
50bc566c5d
Merge pull request #582 from Textualize/specificity-clash-order-fix
...
Tests around CSS specificity, and fix ordering in case of specificity clash
2022-06-21 10:28:10 +01:00
Will McGugan
7ea14a28b1
Merge pull request #584 from Textualize/lazy-load-widgets
...
[perf] Widget classes in `textual.widget.__init__.py` are now lazy-loaded
2022-06-21 10:27:08 +01:00
Will McGugan
9191d0e985
typing
2022-06-21 10:21:25 +01:00
Will McGugan
3857fa6887
comments
2022-06-21 10:17:31 +01:00
Will McGugan
069fde528e
restore accent color
2022-06-21 10:15:22 +01:00
Will McGugan
9f62e92803
merge
2022-06-21 10:13:11 +01:00
Darren Burns
a681165d11
Simplify
2022-06-21 10:06:22 +01:00
Will McGugan
96a98299c1
comment
2022-06-21 09:47:06 +01:00
Will McGugan
5163e5171a
commented lrucache
2022-06-21 09:40:19 +01:00
Will McGugan
a15e57ec74
Safer locking
2022-06-21 09:31:59 +01:00
Olivier Philippon
0bdd2be141
[perf] Widget classes lazy-loading follows a convention, rather than being implemented as a mapping
2022-06-21 09:24:03 +01:00
Will McGugan
5b56bc116a
variable sized rows
2022-06-19 13:23:35 +01:00