Commit Graph

2544 Commits

Author SHA1 Message Date
Dave Pearson
f127506e60 Remove some trailing whitespace 2022-10-13 11:03:17 +01:00
Will McGugan
bb18db5612 Merge pull request #893 from Textualize/input-fix
Use screen offset instead of offset
2022-10-13 10:50:00 +01:00
darrenburns
36ac94734f Move focus logic to screen, add more key replacements, collapse bindings in footer (#880)
* Move focusing logic to the Screen level

* Update tests to support per-screen focus management

* Some additional key name replacements

* Improve rendering of bindings in footer when multiple items have same action

* Clean up footer, allow key_displays csv

* Prevent exception when widget is not in screen
2022-10-13 10:43:16 +01:00
darrenburns
a16db13157 Fix :focus-within pseudo-selector (#885)
* Fix :focus-within pseudo-selector

* Remove debug prints
2022-10-13 10:42:46 +01:00
Darren Burns
a0fe9e2087 Use screen offset instead of offset 2022-10-13 10:35:11 +01:00
Will McGugan
43e5ac7d0f Merge pull request #887 from aaronst/css
docs: typos
2022-10-13 10:23:15 +01:00
Will McGugan
2d04a3aedd Merge pull request #889 from Textualize/focus-border
update borders with css
2022-10-13 10:22:26 +01:00
Will McGugan
fb60dc89c2 update borders with css 2022-10-13 09:45:13 +01:00
Dave Pearson
78ea2cd9f8 Modify the screen examples to import Screen from textual.screen
The surrounding text in the documentation states that Screen is imported
from textual.screen, but the code was importing the class from textual.app.
Further, I was getting warnings from pyright that I was using a class that
wasn't exported from the module I was importing from.
2022-10-13 09:10:40 +01:00
Aaron Stephens
b9493ae6ff docs: typos 2022-10-12 17:34:29 -07:00
Will McGugan
467700c759 Merge pull request #876 from davep/css-CSS_PATH-type-update
Harmonise the types of the App's css path declarations
2022-10-12 15:36:25 +01:00
Will McGugan
ee0a4f6bf1 Merge pull request #881 from Textualize/win-slow
Win slow
2022-10-12 15:34:06 +01:00
Will McGugan
010ccbcd6d Merge pull request #868 from Textualize/document-links
Document links
2022-10-12 15:31:35 +01:00
Will McGugan
b42b241b23 Merge pull request #883 from davep/css-query-specific-type
Provide extra hinting for App.query
2022-10-12 15:27:23 +01:00
Will McGugan
1bdea56bde Merge pull request #879 from lllama/patch-4
Update docs: fix copy/paste error for Timers
2022-10-12 14:52:41 +01:00
Dave Pearson
ea0c9bb464 Reformat to black standard 2022-10-12 14:40:49 +01:00
Dave Pearson
eef9c8157d Provide extra hinting for App.query
This change seeks to help silence some warnings that were appearing with
pylance/pyright when type checking was in strict mode. See #867.
2022-10-12 14:36:19 +01:00
Will McGugan
e7e6b56ea3 faster than inspect 2022-10-12 14:34:46 +01:00
Will McGugan
bc86cdd303 test fix 2022-10-12 14:19:44 +01:00
Will McGugan
091693b6c0 simplify log 2022-10-12 14:00:10 +01:00
Will McGugan
b593e6638c simplify 2022-10-12 13:45:30 +01:00
Will McGugan
713d7d921c speed up stack 2022-10-12 13:38:18 +01:00
Will McGugan
6dceb527a1 time for windows 2022-10-12 13:30:15 +01:00
Will McGugan
5fa606cf27 stack fix 2022-10-12 13:24:57 +01:00
Felix Ingram
b32e645e9f Fix copy/paste error 2022-10-12 12:28:03 +01:00
Dave Pearson
72a166ff1d Correctly specify the union of types 2022-10-12 10:45:38 +01:00
Dave Pearson
eb91adb15b Harmonise the types of the App's css path declarations
The CSS path for an app can be given either as an init parameter, or as a
class variable. The declared types for these two declarations didn't
match (the class variable didn't allow for a PurePath).

This ensures that the types are the same and any future changes will be made
to both routes of declaration.

See #866.
2022-10-12 10:36:00 +01:00
Will McGugan
31d41ce691 replace with time 2022-10-12 10:35:23 +01:00
Will McGugan
f6333004bc new time 2022-10-12 10:30:16 +01:00
Will McGugan
b605a2393a replace time with perf counter 2022-10-12 10:28:47 +01:00
Will McGugan
fed5ae1164 Merge pull request #869 from Textualize/max-idle
add max_idle for screen
2022-10-11 15:56:47 +01:00
Will McGugan
8a450d4303 add max_idle for screen 2022-10-11 15:40:41 +01:00
Will McGugan
49c6530955 Merge pull request #852 from Textualize/key-aliases
Support for key aliases, key handling tests
2022-10-11 15:39:01 +01:00
Darren Burns
c40327e812 Get rid of a property 2022-10-11 15:23:56 +01:00
Darren Burns
ddc269ecc0 Update key_aliases property 2022-10-11 15:14:43 +01:00
Will McGugan
1da5c297ad Merge pull request #859 from davep/layout-typo-squish
Typo fix: `styles` belong to a widget
2022-10-11 15:00:25 +01:00
Darren Burns
26edf5e758 Fix link color being forced to auto 2022-10-11 14:59:03 +01:00
Darren Burns
50bd8f3ec2 Add a TODO 2022-10-11 11:34:53 +01:00
Darren Burns
3619b8f27a Make example link italic in dos 2022-10-11 11:26:04 +01:00
Darren Burns
ba94892bdd Remove CSS that wasnt needed 2022-10-11 11:22:46 +01:00
Darren Burns
f6452bbbd5 Styles documentation for links properties 2022-10-11 11:22:24 +01:00
Will McGugan
1312765561 Merge pull request #863 from Textualize/cli-colors
Cli colors
2022-10-11 11:07:18 +01:00
Will McGugan
dda9aaf8b3 tweak padding 2022-10-11 10:53:17 +01:00
Will McGugan
058af88eb6 tweaks 2022-10-11 10:24:05 +01:00
Darren Burns
999f39034a Merge branch 'css' of github.com:Textualize/textual into document-links 2022-10-11 10:21:07 +01:00
Will McGugan
e2fcc64dfe color fixes 2022-10-11 10:14:07 +01:00
Will McGugan
7bca184192 tweak for colors 2022-10-11 10:04:38 +01:00
Darren Burns
56f56eec33 Renaming hover_color -> link_hover_color, and so on... 2022-10-10 16:58:13 +01:00
Darren Burns
8c4818ad8b Fix mapping of key aliases 2022-10-10 16:30:00 +01:00
Darren Burns
f5d921e831 Make bubble_to private again 2022-10-10 10:48:14 +01:00