Commit Graph

268 Commits

Author SHA1 Message Date
Dave Pearson
decc1e2f3c Rename Checkbox to Switch
A new form of Checkbox will be arriving in Textual soon, working in
conjunction with a RadioButton. What was called Checkbox is perhaps a wee
bit heavyweight in terms of visual design, but is a style of widget that
should remain.

With this in mind we're renaming the current Checkbox to Switch. In all
other respects its workings remains the same, only the name has changed.

Things for people to watch out for:

- Imports will need to be updated.
- Queries will need to be updated; special attention will need to be paid to
  any queries that are string-based.
- CSS will need to be changed if any Checkbox styling is happening, or if
  any Checkbox component styles are being used.

See #1725 as the initial motivation and #1746 as the issue for this
particular change.
2023-02-09 11:10:30 +00:00
Rodrigo Girão Serrão
e5e7c08afe Update docs accordingly. 2023-02-08 10:53:51 +00:00
Will McGugan
fb7fd14262 Merge pull request #1710 from Textualize/line-api-docs
Documented the Line API
2023-02-06 11:42:57 +00:00
Will McGugan
f8577f79d7 review fixes 2023-02-06 11:34:37 +00:00
Will McGugan
fb7c1642bc Checker example 4, docs and diagram 2023-02-04 15:40:36 +01:00
Will McGugan
25b498896d checker 4 and diagram 2023-02-04 11:28:07 +01:00
Will McGugan
a5808db8b8 more docs and diagrams 2023-02-03 19:10:03 +01:00
Will McGugan
2ff278874b docs examples and diagrams 2023-02-03 11:23:14 +01:00
Will McGugan
8ce76f4f89 fix title update 2023-02-01 18:01:34 +01:00
Will McGugan
806c80b8fe simplify 2023-02-01 17:14:53 +01:00
Will McGugan
0a5838d964 checker example 2023-02-01 16:26:55 +01:00
Rodrigo Girão Serrão
828d8d2cf1 Replace Static with Label. 2023-01-31 17:31:36 +00:00
Rodrigo Girão Serrão
c14f635244 Document setting app (sub)title. 2023-01-31 17:31:06 +00:00
Rodrigo Girão Serrão
0f3aff6fb1 Merge pull request #1408 from Textualize/review-styles-reference
Review styles reference
2023-01-10 14:20:11 +00:00
Ofek Lev
9b779c130d Fix typo 2023-01-10 01:42:16 -05:00
Rodrigo Girão Serrão
d41471034a Fix failing tests. 2023-01-09 16:39:12 +00:00
Rodrigo Girão Serrão
130d8b8d05 Increase negative y offset. 2023-01-09 16:34:24 +00:00
Rodrigo Girão Serrão
15691b4451 Remove debugging style. 2023-01-09 16:34:06 +00:00
Rodrigo Girão Serrão
a1b9d4b2c5 Fix examples. 2023-01-09 16:11:45 +00:00
Rodrigo Girão Serrão
2827edcd49 Add example with all padding types. 2023-01-09 15:43:34 +00:00
Rodrigo Girão Serrão
71b859b6e2 Add thorough example for all outlines. 2023-01-09 13:49:32 +00:00
Rodrigo Girão Serrão
aad41b8de0 Fix height example.
[skip ci]
2023-01-07 09:44:39 +00:00
Rodrigo Girão Serrão
8de6d8fd69 Add new width comparison example. 2023-01-07 09:40:03 +00:00
Darren Burns
ad6a716d09 Fix mouse01 example background transparency 2023-01-07 09:35:00 +00:00
Rodrigo Girão Serrão
2217a8f5fa Add new visibility example.
This new example shows how we can have an invisible container with visible children.
2023-01-06 16:38:31 +00:00
Rodrigo Girão Serrão
d69168a922 Update visibility example to use labels. 2023-01-06 16:37:41 +00:00
Rodrigo Girão Serrão
ee4b2cfe9e Update tint example to use labels. 2023-01-06 14:53:07 +00:00
Darren Burns
387a045cff Fix mouse01 example background transparency 2023-01-06 14:32:23 +00:00
Rodrigo Girão Serrão
72d3171a79 Add example with all text styles. 2023-01-06 14:18:21 +00:00
Rodrigo Girão Serrão
1276629431 Update example. 2023-01-06 14:18:07 +00:00
Rodrigo Girão Serrão
c7c352a38a Replace statics with labels.
[skip ci]
2023-01-06 10:56:55 +00:00
Rodrigo Girão Serrão
042bc3b3fe Improve text-align example.
Replace statics with labels; change to a 2 x 2 grid layout to make it easier to see the difference between 'center' and 'justify'; increase readability by setting 'color: auto' in the labels.
2023-01-06 10:41:46 +00:00
Rodrigo Girão Serrão
710697121d Merge branch 'main' into review-styles-reference
[skip ci]
2023-01-06 10:05:16 +00:00
Rodrigo Girão Serrão
f457afd826 Add example for all scrollbar size rules. 2023-01-05 12:01:41 +00:00
Rodrigo Girão Serrão
5b6bedd8c6 Fix example to use labels. 2023-01-05 12:01:23 +00:00
Rodrigo Girão Serrão
9b53c7a704 Update base scrollbar example. 2023-01-04 17:10:12 +00:00
Rodrigo Girão Serrão
14f0240d6a Add example for (background) scrollbar active/hover. 2023-01-04 17:09:58 +00:00
Rodrigo Girão Serrão
7fb00f531c Add example for corner colors. 2023-01-04 17:09:35 +00:00
Rodrigo Girão Serrão
454d36cdc7 Use labels instead of static. 2023-01-04 11:43:38 +00:00
Rodrigo Girão Serrão
52497172b0 Add example to compare border and outline. 2023-01-04 10:34:37 +00:00
Rodrigo Girão Serrão
0fe5a98033 Use labels instead of statics. 2023-01-04 10:34:22 +00:00
Rodrigo Girão Serrão
bebd054e5e Update opacity example. 2022-12-22 18:38:14 +00:00
Rodrigo Girão Serrão
289ec2556b Tweak example for offset. 2022-12-22 18:00:52 +00:00
Rodrigo Girão Serrão
d0c744d8d9 Add examples for min/max width/height. 2022-12-22 17:45:55 +00:00
Rodrigo Girão Serrão
164678ab66 Fix reference for layout. 2022-12-22 14:05:17 +00:00
Rodrigo Girão Serrão
e789c9c006 Use labels instead of statics. 2022-12-21 16:49:27 +00:00
Rodrigo Girão Serrão
a617d4091c Add example with all margin rules. 2022-12-21 16:48:43 +00:00
Rodrigo Girão Serrão
57af822730 Add example for link hover style. 2022-12-20 18:47:22 +00:00
Rodrigo Girão Serrão
8ce8b4c33a Add example for link hover background. 2022-12-20 18:47:15 +00:00
Rodrigo Girão Serrão
e68e02405f Add example for link hover color. 2022-12-20 18:47:05 +00:00