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
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
Jeremy Ruston
407e58f837
Add a basic dark palette
...
Obviously some things are hardcoded at the moment
2025-01-24 11:17:55 +00:00
Jeremy Ruston
9588b7f1a3
Autocompile palettes when they change
2025-01-24 11:16:31 +00:00
Jeremy Ruston
28c1e77b60
Make sure rootwidget is available before background actions start
2025-01-24 11:15:27 +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
62fb916a68
Merge branch 'master' into colour-improvements
2025-01-23 14:37:23 +00:00
Jeremy Ruston
3614236cfc
Paldette and style tweaks
2025-01-21 16:36:00 +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
55d9e92032
Edit text widget shouldn't fully refresh when default attribute changes
2025-01-09 10:51:02 +00:00
Jeremy Ruston
2edcf0f46b
Refactor TwentyTwenties editor
2025-01-09 10:50:37 +00:00
Jeremy Ruston
69363bf7ef
Palette manager should recompile palette on edits
2025-01-08 21:38:08 +00:00