Jeremy Ruston
93f954411b
Merge branch 'master' into colour-improvements
2025-02-18 16:54:54 +00:00
Mario Pietsch
a1053ddc3d
list-tagged-draggable shows caption field if it is available ( #8721 )
2025-02-18 10:31:08 +00:00
Leilei332
fbe5a2f908
Fix incorrect downloaded file extension ( #8928 )
...
* Fix incorrect downloaded file extension
* Update docs
2025-02-14 18:17:00 +00:00
Jeremy Ruston
059e439702
Merge branch 'master' into colour-improvements
2025-02-14 16:46:02 +00:00
Jeremy Ruston
3051e8dddc
Don't show draft palettes in the switcher
2025-02-14 16:44:51 +00:00
Jeremy Ruston
2028420e3b
Fixes suggested by @pmario
2025-02-14 14:11:08 +00:00
Jeremy Ruston
d7df7eddb1
Introduce tf.colour function to make palette entries more concise
2025-02-13 16:26:22 +00:00
Jeremy Ruston
067a1a22c6
Move sample background item out of the core
...
It shouldn't be enabled by default, either, but we'll come back to that
2025-02-12 12:47:41 +00:00
Jeremy Ruston
83c6223617
Refactor the interpolate operator so it can be used with the range operator
2025-02-12 10:05:16 +00:00
Jeremy Ruston
71a144f6f9
Typo
2025-02-10 17:01:45 +00:00
Jeremy Ruston
7da70ecf6a
Add tabs and recent list to the sidebar
2025-02-10 13:47:41 +00:00
Jeremy Ruston
7c4938293e
Refactor the palette preview macros into a generic widget
...
Takes the opportunity to simplify things now that we don't have to worry about wikified palettes
2025-02-06 21:27:06 +00:00
Jeremy Ruston
1f4f164d5e
Take advantage of compiled palettes
...
More robust because previously we couldn't cope with indirect palette entries in these situations
2025-02-06 12:55:45 +00:00
Jeremy Ruston
bfea62b43b
The tags macros do not actually need access to the palette
2025-02-06 12:53:40 +00:00
Jeremy Ruston
4c216646a4
Introduce background palettes for plugins
2025-02-06 11:53:07 +00:00
Jeremy Ruston
961b26a984
Get rid of palette-types...
...
Instead, we'll special case transforming `<<colour X>>` into `[function[colour],[x]]`
Makes everything much easier and avoids all the kerfuffle of not being able to mix palettes
2025-02-06 11:27:04 +00:00
Jeremy Ruston
0d9ab2e2f6
Remove unneeded scheme processing
...
Now that we're dealing with the schemes during the import process it is no longer necessary for the compilation process to worry about it.
2025-02-05 18:05:57 +00:00
Jeremy Ruston
796c33bc46
Refactor some variable names
2025-02-05 17:11:51 +00:00
Jeremy Ruston
4d06ecd535
Only allow palettes to import palettes of the same type
2025-02-04 21:18:54 +00:00
Jeremy Ruston
6e4d7aa7f1
Give the AutoToggle palette a custom editor
2025-02-04 21:03:13 +00:00
Jeremy Ruston
998d5c8d8f
The lingo macro shouldn't mess with currentTiddler
2025-02-04 21:02:47 +00:00
Jeremy Ruston
38865a40ad
Palette should autocompile when the palette tiddler itself changes
2025-02-04 20:00:17 +00:00
Jeremy Ruston
a5c4d90154
Refactor palette switcher a little
2025-02-04 19:59:39 +00:00
Jeremy Ruston
2e5a988bb3
Clarify comment
2025-02-04 16:44:07 +00:00
Jeremy Ruston
c7f9dbfc29
Compile colour scheme handling
2025-02-04 16:26:15 +00:00
Jeremy Ruston
a053f03818
Remove logging
2025-02-04 16:10:38 +00:00
Jeremy Ruston
431149d20c
Introduce dynamic colour scheme mechanism
...
Also introduces palette inheritance
This finally allows us to have a palette that automatically switches between dark and light variants. The mechanism is more flexible that that, and allows for multiple colour schemes (night, morning, day, evening, for example) with automatic switching between them.
2025-02-03 13:26:25 +00:00
Jeremy Ruston
139b61fff1
Proper recursion detection for palettes
2025-01-28 19:18:58 +00:00
Jeremy Ruston
c1fd82f50f
Minor cleanups
2025-01-28 15:44:42 +00:00
Jeremy Ruston
effeed7ade
Remove extraneous logging
2025-01-27 21:47:03 +00:00
Jeremy Ruston
546e438943
Allow background actions to be scoped by platform
2025-01-27 21:45:17 +00:00
Jeremy Ruston
efcd23993e
Merge branch 'master' into colour-improvements
2025-01-27 16:55:03 +00:00
Leilei332
67e8670c73
Extend copy to clipborad function to support customized mime types ( #8912 )
...
* Extend copy to clipborad function to support customized mime types
* Remove function default parameter syntax
* Add plainText option
* Use plainText name
* Set "text/plain" data only when it exists
* Docs update
* Docs update
2025-01-27 16:45:26 +00:00
Jeremy Ruston
0c8aad49f9
Replace accumulate-palette-entries with new changecount filter
...
Much more direct and efficient
2025-01-27 11:09:18 +00:00
Jeremy Ruston
317e1245c8
Introduce an improved but temporary cache invalidation method for palettes
2025-01-26 17:54:47 +00:00
Jeremy Ruston
8957424e55
Start adding tests for palette operations
2025-01-25 17:28:00 +00:00
Jeremy Ruston
0dfde0660a
Detect darkmode at startup
2025-01-24 18:34:55 +00:00
Jeremy Ruston
8c619fd86e
Compile palette at startup
2025-01-24 18:32:00 +00:00
Jeremy Ruston
9588b7f1a3
Autocompile palettes when they change
2025-01-24 11:16:31 +00:00
Jeremy Ruston
0baf395030
Merge background actions and media tracker from #8555
...
The changes in #8555 are needed in order to be able to offer the desired user experience for dark mode changes.
2025-01-23 18:16:10 +00:00
Jeremy Ruston
c75f50e99a
Fix palette switcher used in the sidebar
...
by adding a new "thumbnails" parameter to the template
2025-01-09 14:51:48 +00:00
Jeremy Ruston
2b0c634fb8
Refactor actions for recompiling current palette
2025-01-08 21:37:44 +00:00
Jeremy Ruston
bd4b3e4107
Fix some old-style palette references
2025-01-08 16:00:29 +00:00
Jeremy Ruston
b90b449ceb
Use interpolation to derive colours
2025-01-02 17:10:29 +00:00
Jeremy Ruston
6a06df79c4
Fix palette switcher
2024-12-27 12:00:50 +00:00
Jeremy Ruston
2640406f5b
Include contrast value in contrast errors
2024-12-15 18:48:48 +00:00
Jeremy Ruston
fc695e7a50
Merge branch 'master' into colour-improvements
2024-12-05 17:38:50 +00:00
Leilei332
a9940506cf
Extend rendered-plain-text template to support more languages. ( #8780 )
2024-12-05 12:41:24 +00:00
Leilei332
2801eee905
Migrate some old macros to new syntax ( #8768 )
...
* Migrate some old macros to new syntax
* Rewrite more macros.
* Update image-picker
* Rewrite tabs macro
* Use more new syntax
* Revert thumbnail macro
* Avoid duplicated whitespace pragma
* Revert tabs macro
2024-12-05 12:40:13 +00:00
Jeremy Ruston
9efcad9360
Display test results at the bottom of the palette switcher
2024-11-19 09:09:11 +00:00