Jeremy Ruston
7da70ecf6a
Add tabs and recent list to the sidebar
2025-02-10 13:47:41 +00:00
Jeremy Ruston
d8dfc10ea8
Typo
2025-02-09 21:54:31 +00:00
Jeremy Ruston
7df987803d
Move generic tests into a background palette
...
These are the generic tests that should be applied to every palette
2025-02-09 21:40:15 +00:00
Jeremy Ruston
4665bab700
AutoToggle should default to light mode so that static exports are light mode
2025-02-09 14:29:12 +00:00
Jeremy Ruston
e87aaff06b
Add tabs to the preview
2025-02-06 22:19:10 +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
eba73eebcb
Missed off 961b26a984fd93f94b8e2686771bc2e59f03c745
2025-02-06 17:28:28 +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
4fe90a6c73
Add VanillaCherry palette
2025-02-06 11:28:24 +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
f9e4dd8fd3
Rename custom palette editor to custom palette settings
...
To avoid confusion with existing usage of "palette editor"
2025-02-04 21:08:02 +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
0ee2f286aa
Set colour scheme property of root element
2025-02-04 16:40:48 +00:00
Jeremy Ruston
30a7d61e56
Easier for development if the prerelease uses the tw5.com palette
2025-02-04 16:26:46 +00:00
Jeremy Ruston
c7f9dbfc29
Compile colour scheme handling
2025-02-04 16:26:15 +00:00
Jeremy Ruston
c6bb2b51e6
Rethink palette manager
...
The current content of $:/PaletteManager is moved into $:/PaletteEditor, and $:/PaletteManager repurposed as the control panel palette switcher
2025-02-04 16:11:51 +00:00
Jeremy Ruston
a053f03818
Remove logging
2025-02-04 16:10:38 +00:00
Jeremy Ruston
6970ac24bf
Typo
2025-02-03 18:44:58 +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
a366d62358
Include tiddler borders in preview
...
Several of the core palettes have distinctive borders
2025-01-31 17:06:55 +00:00
Jeremy Ruston
a6a91d49b7
Restore accidentally deleted field
2025-01-30 18:35:58 +00:00
Jeremy Ruston
22cf3b25bd
Remove infinite loop that was added for testing
2025-01-28 21:40:34 +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
Saq Imtiaz
b1843837ea
Fixes unnecessary refresh in Genesis widget ( #8895 )
...
* fix: handle attributes correctly in genesis widget
* fix: handle attributes correctly in genesis widget
2025-01-27 11:00:26 +00:00
Saq Imtiaz
42c22acba6
Cleans up cruft from edit widget ( #8897 )
...
* chore: cleanup cruft from edit widget
* chore: cleanup cruft from edit widget
* chore: cleanup cruft from edit widget
2025-01-27 11:00:07 +00:00
Jeremy Ruston
317e1245c8
Introduce an improved but temporary cache invalidation method for palettes
2025-01-26 17:54:47 +00:00
Saq Imtiaz
f02c9ebba3
feat: support for avif images ( #8911 )
2025-01-26 12:25:01 +00:00
Jeremy Ruston
d2bbc56c78
Move modern palettes to correct directory
2025-01-25 17:28:06 +00:00
Jeremy Ruston
8957424e55
Start adding tests for palette operations
2025-01-25 17:28:00 +00:00
Jeremy Ruston
0fd5b04b9a
Merge branch 'master' into colour-improvements
2025-01-25 11:05:21 +00:00
Jeremy Ruston
3ea7cd3bf7
Palette editors no longer need to manually recompile the palette
2025-01-25 11:05:13 +00:00
Jeremy Ruston
7513e4426c
Allow text editor type=color for colours not in hex RGB format
...
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color#value
2025-01-25 11:03:53 +00:00
Rhys-T
94b325f41f
Fix: Don't set dirty flag when shadow tiddler changes ( #8903 )
...
Adds `shadow` and `normal` flags to each entry in `changedTiddlers`,
indicating whether the corresponding version of the tiddler has changed.
Makes the saver handler ignore any changes that aren't flagged `normal`.
Fixes #8902 .
2025-01-25 10:59:51 +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