Will McGugan
0c86f2e4fa
update lock
2022-07-10 08:51:04 +01:00
Will McGugan
48c16e7c98
default rich
2022-07-10 08:48:53 +01:00
Will McGugan
d514193ea9
test fixes
2022-07-09 17:21:27 +01:00
Will McGugan
f47629623c
fixed underline style stretching on buttons
2022-07-09 15:03:36 +01:00
Will McGugan
f751426ef6
color an render
2022-07-08 21:08:17 +01:00
Will McGugan
d751048350
Merge pull request #602 from Textualize/render-cache
...
Render cache
2022-07-05 13:27:22 +01:00
Will McGugan
ca90053b4e
docstring
2022-07-05 13:20:54 +01:00
Will McGugan
53bb1b39a8
Update src/textual/geometry.py
...
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
2022-07-05 13:04:20 +01:00
Will McGugan
951c3c567e
docstring
2022-07-05 13:03:44 +01:00
Will McGugan
20130a4ecf
docstring
2022-07-04 21:21:09 +01:00
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
62f2ffee52
Merge pull request #595 from Textualize/user-css-over-widget-css
...
User CSS should always take precedence over Widget CSS
2022-06-29 14:03:14 +01:00
Darren Burns
908e2e940a
Feedback from code review
2022-06-29 13:30:21 +01:00
Darren Burns
c00de10262
Use more efficient bool to int conversion
2022-06-28 18:52:47 +01:00
Darren Burns
8617cbdc70
Update test over user css over widget css to show important widget css can be overridden by users too
2022-06-28 18:39:39 +01:00
Darren Burns
972aeece64
Add Specificity5 for user defined CSS
2022-06-28 17:26:18 +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
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
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
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
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