Commit Graph

5407 Commits

Author SHA1 Message Date
Dave Pearson
cd3a47b335 Swap to using a button change event for radio switching
This means that a developer can toggle any of the buttons in the set under
the hood and the set should respond accordingly.
2023-02-20 13:32:20 +00:00
Dave Pearson
594c1faad6 Start fleshing out a RadioSet widget
Much more to do with this, but I just wanted to get a feel for the core
working.
2023-02-20 11:51:29 +00:00
Dave Pearson
bf727fcb9f Add a selected message to the toggle button
While the user will often want to know when the value of a toggle button has
changed, it will be useful for them to also optionally know which toggle
button has caused a change to happen. This will become handy when we do a
radio set control.
2023-02-20 11:49:56 +00:00
Dave Pearson
122457a08a Swap the radio button to using a circular character for the inner 2023-02-20 11:12:40 +00:00
Dave Pearson
fb32e53e52 Swap the checkbox to using an actual check mark 2023-02-20 11:12:24 +00:00
Dave Pearson
7da9cbe2ac Add some initial component classes
This might be enough actually, still need to think on this some more. There
is another issue to think though here too. I'm leaning heavily on a base
"toggle" button class from which the checkbox and the radio button derive.
This makes a lot of sense -- they're so similar that it doesn't really make
sense to do it another way.

But... component classes lean on a common prefix; and I can't see an obvious
way of declaring component classes based off the owning class name; not at
the moment anyway. Perhaps I can make that work.
2023-02-20 10:49:02 +00:00
Dave Pearson
f785a51769 Add combined type CSS parsing tests 2023-02-20 10:08:02 +00:00
Dave Pearson
6f4dde42de Merge branch 'main' into toggle-boxen 2023-02-20 08:39:41 +00:00
Will McGugan
ebfced603b micro op 2023-02-20 08:20:43 +00:00
Will McGugan
9b9c878dad micro optimization 2023-02-19 22:28:23 +00:00
Will McGugan
52e522b2e8 test 2023-02-19 22:26:07 +00:00
Will McGugan
d18c794e69 call compute on demand 2023-02-19 22:24:28 +00:00
Will McGugan
433e371dc9 changelog and snapshots 2023-02-19 10:05:37 +00:00
Will McGugan
9b81e59ff8 Merge branch 'optimize-scroll' into batch-update 2023-02-19 10:02:50 +00:00
Dave Pearson
b340c27d6a Update the CHANGELOG 2023-02-19 09:49:40 +00:00
Dave Pearson
55b36ff109 Merge branch 'main' into bug/1836/selector-continue 2023-02-19 09:48:21 +00:00
Dave Pearson
956fd8b114 All numbers in continued selectors
See #1836.
2023-02-19 09:46:47 +00:00
Will McGugan
a63d07f619 enhanced ordered list 2023-02-19 09:18:26 +00:00
Will McGugan
434e6178d3 list item style 2023-02-18 23:25:17 +00:00
Will McGugan
de86b564bb styling for list items 2023-02-18 23:19:43 +00:00
Will McGugan
5a6d718344 list item improvements 2023-02-18 23:15:15 +00:00
Will McGugan
104f784a20 extra space around hr 2023-02-18 22:48:49 +00:00
Will McGugan
c3e5e0490c remove log 2023-02-18 22:46:43 +00:00
Will McGugan
724e0e3f58 Markdown and dictionary example 2023-02-18 22:43:13 +00:00
Will McGugan
665efa2d05 error handling in dictionary 2023-02-18 18:01:25 +00:00
Will McGugan
b6272a3b59 fix dictionary example going down 2023-02-18 17:57:48 +00:00
Will McGugan
463ff3fa8b fix horizontal scroll 2023-02-18 15:20:09 +00:00
Will McGugan
f94f6e4ba4 remote test code 2023-02-18 15:02:14 +00:00
Will McGugan
040e8c941a better thumb math 2023-02-18 14:55:42 +00:00
Will McGugan
017500e76a Merge branch 'optimize-scroll' into scroll-thumb 2023-02-18 12:55:06 +00:00
Will McGugan
16288bd145 Merge branch 'main' into optimize-scroll 2023-02-18 12:54:42 +00:00
Will McGugan
efdfc3846c Merge branch 'optimize-scroll' into scroll-thumb 2023-02-18 12:53:00 +00:00
Will McGugan
e143af1d3c speed up shutdown 2023-02-18 10:46:42 +00:00
Will McGugan
4d1a3a5dc9 speed up shutdown 2023-02-18 10:42:42 +00:00
Will McGugan
ff65748992 comment on test 2023-02-18 10:24:45 +00:00
Will McGugan
b9375c5a14 Added test for batch update 2023-02-18 10:22:29 +00:00
Will McGugan
00de6b5b9d extra chars 2023-02-18 10:17:30 +00:00
Will McGugan
7523637cb6 added batch update 2023-02-18 10:07:51 +00:00
Will McGugan
e65995e36c Merge branch 'optimize-scroll' into batch-update 2023-02-18 09:56:53 +00:00
Will McGugan
8e9d99cb22 fix for other size_updated 2023-02-18 09:56:31 +00:00
Will McGugan
7b654f53ae Added batching 2023-02-18 09:51:49 +00:00
Will McGugan
d8e17e98c2 size updated bool 2023-02-18 09:29:27 +00:00
Will McGugan
f5d64ebe8c fix for scrolling and events 2023-02-17 22:47:08 +00:00
Will McGugan
9e94046cc6 fix for events not sent on scroll 2023-02-17 22:35:00 +00:00
Will McGugan
5a4e935177 Merge branch 'main' into scroll-thumb 2023-02-17 20:42:11 +00:00
Will McGugan
31c8fb2818 tests 2023-02-17 18:14:18 +00:00
Will McGugan
0ac7eef4b5 docstrings and types 2023-02-17 18:14:18 +00:00
Will McGugan
c0c49978bd scrollbar fixes 2023-02-17 18:14:18 +00:00
Will McGugan
c61e3bab1a Update src/textual/_spatial_map.py
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-17 17:54:11 +00:00
Will McGugan
af554ca1c4 Update src/textual/_spatial_map.py
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-17 17:40:22 +00:00