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
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
83c6223617
Refactor the interpolate operator so it can be used with the range operator
2025-02-12 10:05:16 +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
998d5c8d8f
The lingo macro shouldn't mess with currentTiddler
2025-02-04 21:02:47 +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
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
8957424e55
Start adding tests for palette operations
2025-01-25 17:28:00 +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
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
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
Jeremy Ruston
b54d56ec47
Support for imported palettes
...
Also consolidate the palette entries into a temporary palette before compiling them
Note that imported palettes is not currently recursive
2024-11-09 19:03:54 +00:00
Jeremy Ruston
4e2f2bebd0
Avoid redefining the colour function by adding a configuration variable
2024-11-09 17:02:00 +00:00
Jeremy Ruston
f88915728f
Introduce new static palette architecture
2024-11-09 16:15:33 +00:00
Jeremy Ruston
250e57cd79
Remove wikify operator and refactor palette preview
...
The implementation of the palette preview is much less elegant like this, but it does work
2024-11-07 18:30:39 +00:00
Jeremy Ruston
4445111a08
Merge branch 'master' into colour-improvements
2024-10-30 20:38:58 +00:00
Jeremy Ruston
b5a22e3e9e
Remove obsolete comment
2024-10-25 09:28:17 +01:00
Mario Pietsch
b68de0d69f
Toc uses currentTiddler as "tag" default parameter if it is missing ( #8291 )
...
* toc's use currentTiddler, if tag prameter is undefined
* add currentTiddler info to toc documentation
2024-10-24 17:39:18 +01:00
Simon Huber
8b60cab6a2
Keyboard driven input rework ( #8678 )
...
* Update tag-picker.tid
* rework kb-driven-input macro to procedures + new syntax
* rework change-input-tab to procedure
* fix
* remove console log :)
* replace defines with procedures
* fix link-dropdown
* fix focus-selector in new-field dropdown
* revert changing the footpring of change-input-tab + make it work as procedure
* update change-input-tab procedure
* refactor change-input-tab procedure and keep tags/Macro tag
* simplify complicated filter
* add tags/Global tag
* remove tags/Global tag
* rename variable
2024-10-24 14:34:23 +01:00
Jeremy Ruston
1e5c69eb99
Fix typo
2024-10-23 08:25:24 +01:00
Jeremy Ruston
e1e73d2aa0
Merge branch 'master' into colour-improvements
2024-10-23 08:22:01 +01:00
Jeremy Ruston
9635e2d8af
Revert refactoring CSS helper macros as functions
...
See discussion at https://github.com/TiddlyWiki/TiddlyWiki5/pull/7987#issuecomment-2431123638
2024-10-23 08:21:11 +01:00
Jeremy Ruston
a23ee165d8
Rewrite colour macro as a function
...
Using the new wikify operator.
Currently has a bug whereby redirected colours (like "tiddler-background") do not work. Direct colours like "background" do work.
Note the hacks needed to makeFakeWidgetWithVariables work
2024-10-22 17:26:04 +01:00
Jeremy Ruston
0a03ac8219
Revert to just using $:/tags/Macro for core macros
...
See #8683
2024-10-22 13:15:34 +01:00
Leilei332
a0caa0f12d
Fix timeline macro showing long list of tiddlers created the same day. ( #8690 )
2024-10-20 10:47:50 +01:00
Leilei332
2a77d6afdf
Fix confusing empty message in tag dropdown ( #8649 )
2024-09-30 13:40:45 +01:00
Leilei332
0f4d6e4e47
Fix extra p tag in colour-picker ( #8605 )
2024-09-16 11:38:55 +02:00
Leilei332
c7ca8359ab
Add drag and drop handling for export macro & rewrite using v5.3.2 syntax ( #8594 )
2024-09-12 19:33:57 +01:00
Mario Pietsch
4f4e055091
Add a search button to the control panel tiddler fields tab ( #8157 )
...
* add a search button to the control panel tiddler fields tab
* minor update
* use v5.3.x syntax
* use tf. prefix for the function
* make show-filter-count a global macro
* make table header translatable
* add documentation
* show-filter-count code cleanup
* remove the table-header
* remove erroneous caption field
2024-09-10 16:30:59 +01:00
Jeremy Ruston
1368cd67ca
Fix missing closing tag, and update erroneous docs ( #8340 )
2024-09-10 11:50:08 +01:00