Commit Graph

72 Commits

Author SHA1 Message Date
Will McGugan
49764a3ec7 improved color harmony 2022-07-19 21:41:34 +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
0ba3ffb171 size properties 2022-07-04 21:15:24 +01:00
Darren Burns
908e2e940a Feedback from code review 2022-06-29 13:30:21 +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
Darren Burns
7ebac6b860 Add wip test for user over widget css, use type alias 2022-06-28 13:52:58 +01:00
Will McGugan
2999626973 Merge branch 'css' into scroll-view 2022-06-21 10:33:29 +01:00
Will McGugan
f4c12704fe fix tests 2022-06-17 16:03:05 +01:00
Darren Burns
c9fb0f0423 Testing HSL and testing spaces in rgb(..), hsl(..) css declarations 2022-06-17 15:33:12 +01:00
Darren Burns
c4c7e537f2 Fix regex, fix some broken tests around HSL support 2022-06-17 15:33:12 +01:00
Darren Burns
be771a0fca Add extra test 2022-06-16 15:47:41 +01:00
Darren Burns
4dd0d9fae4 Add various additional tests around CSS specificity 2022-06-16 15:33:53 +01:00
Darren Burns
dc30ace121 Fix specificity ordering 2022-06-16 15:01:15 +01:00
Darren Burns
2d033d0e0f Checking empty rules 2022-06-16 14:33:27 +01:00
Darren Burns
a07f97e627 Take final rule in event of specificity clash 2022-06-16 14:32:38 +01:00
Darren Burns
2086062b56 Testing HSL and testing spaces in rgb(..), hsl(..) css declarations 2022-06-07 16:11:19 +01:00
Darren Burns
d7159d905a Fix regex, fix some broken tests around HSL support 2022-06-07 15:36:45 +01:00
Will McGugan
96c013aa39 Scroll view widget 2022-05-31 10:48:40 +01:00
Will McGugan
b806779267 Merge pull request #540 from Textualize/docs-structure
Docs Refresh
2022-05-27 12:01:25 +01:00
Will McGugan
303254f9ac test fixes 2022-05-27 10:24:32 +01:00
Olivier Philippon
159d52b0f3 [css] Fix a bug with our now-flexible scrollbars sizes
Also add test cases for it in order to prevent potential regressions on this
2022-05-25 16:33:19 +01:00
Olivier Philippon
685a2fb510 [css][scrollbar gutter] Manage the scrollbar-gutter: stable CSS property
(only for vertical content though; we may see later on if we want to also apply that logic for horizontal scrolls?)
https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter
2022-05-12 10:19:46 +01:00
Olivier Philippon
aa7b19a193 [css] Address PR feedback for "Did you mean" suggestions 2022-05-11 10:45:38 +01:00
Olivier Philippon
e37036c816 [css] Add a "Did you mean" suggestion when the value of a color is wrong but we can find a close one 2022-05-10 11:13:38 +01:00
Darren Burns
07c14c6e64 Fix broken overflow, add regression test 2022-05-04 12:11:12 +01:00
Darren Burns
4a6b5a31f4 Merge pull request #459 from Textualize/expanded-css-hex-support
Support 3 and 4 character hex strings for colours
2022-05-04 10:23:54 +01:00
Darren Burns
568f183862 Fix test asserting that we dont support hex3 values 2022-05-03 17:32:25 +01:00
Olivier Philippon
26f138e69b [css] Address "did you mean" PR feedback 2022-05-03 15:40:06 +01:00
Olivier Philippon
f5aac5d028 [css] Use a HelpText for unknown CSS property name errors 2022-05-03 14:52:32 +01:00
Olivier Philippon
2c03f8cfe1 [css] Add a "did you mean" suggestion when an unknown CSS property is spotted
So using "bckgroundu: red" in a CSS file will report _"unknown declaration 'bckgroundu'; did you mean 'background'?"_
2022-05-03 14:52:32 +01:00
Will McGugan
1a3f65bb76 Merge branch 'css' into style-error-improvements 2022-04-29 10:56:27 +01:00
Will McGugan
dd8b11be87 Merge branch 'css' into add-web-colors-management-and-prefix-ansi-ones 2022-04-29 10:47:40 +01:00
Will McGugan
8e821d4113 lazy parse_rules 2022-04-29 10:34:35 +01:00
Will McGugan
233c2c4075 fix css reload 2022-04-29 10:20:32 +01:00
Olivier Philippon
eedec6c863 [colors] Merge the first 16 ANSI colors with the named Web ones, add "transparent" 2022-04-28 15:00:26 +01:00
Olivier Philippon
a304334628 [colors] Add management of named Web colors to our CSS processing, prefix ANSI ones with ansi_ 2022-04-28 14:21:02 +01:00
Olivier Philippon
d0b8cacc35 [css][bugfix] CSS colors can now have digits at the end of their names 2022-04-28 10:44:05 +01:00
Darren Burns
91783b7c1e Testing for help text 2022-04-27 13:55:29 +01:00
Darren Burns
ef691019c4 Merge branch 'css' of github.com:Textualize/textual into style-error-improvements 2022-04-27 12:13:14 +01:00
Darren Burns
7329d6c200 Add help text for style-flags properties 2022-04-27 11:37:14 +01:00
Olivier Philippon
f7e72ed945 [widget] Better tests for types of values we handle or not in style's size 2022-04-27 11:26:33 +01:00
Darren Burns
eab5f8fae1 Fixing failing opacity test 2022-04-26 13:28:39 +01:00
Darren Burns
b4da94b151 Add tests for Scalar copy_with 2022-04-26 11:16:51 +01:00
Will McGugan
ba92ef0c3c test fix 2022-04-12 17:10:15 +01:00
Will McGugan
cbd258d93a fix tests 2022-04-12 16:49:36 +01:00
Will McGugan
e238bee274 ws 2022-04-12 16:37:32 +01:00
Will McGugan
4f63fc086f require semi-colons 2022-04-11 15:25:21 +01:00
Will McGugan
d234c54343 test fixes 2022-04-03 21:30:51 +01:00
Will McGugan
5508ece2e3 color animation 2022-03-30 15:04:36 +01:00