2024-10-26 04:52:23 +00:00
|
|
|
title: $:/core/functions/themes
|
|
|
|
tags: $:/tags/Global
|
|
|
|
|
2024-10-26 09:23:14 +00:00
|
|
|
\function get.base.theme.metric.recursive(theme,metric) [<theme>get[dependents]enlist-input[]] :map[function[get.base.theme.metric],<currentTiddler>,<metric>]
|
2024-10-26 04:52:23 +00:00
|
|
|
|
|
|
|
\function get.base.theme.metric(theme,metric) [<theme>addsuffix[/metrics/]addsuffix<metric>!is[missing]] :else[<theme>addsuffix[/metrics/]addsuffix<metric>is[shadow]] :else[function[get.base.theme.metric.recursive],<theme>,<metric>]
|
|
|
|
|
2024-10-26 09:23:14 +00:00
|
|
|
\function get.base.theme(theme,metric) [function[get.base.theme.metric],<theme>,<metric>first[]removesuffix<metric>removesuffix[/metrics/]]
|
2024-10-26 04:52:23 +00:00
|
|
|
|
|
|
|
\function get.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},<metric>first[]get[text]]
|
|
|
|
|
2024-10-26 09:23:14 +00:00
|
|
|
\function get.base.theme.option.recursive(theme,option) [<theme>get[dependents]enlist-input[]] :map[function[get.base.theme.option],<currentTiddler>,<option>]
|
2024-10-26 06:13:14 +00:00
|
|
|
|
|
|
|
\function get.base.theme.option(theme,option) [<theme>addsuffix[/options/]addsuffix<option>!is[missing]] :else[<theme>addsuffix[/options/]addsuffix<option>is[shadow]] :else[function[get.base.theme.option.recursive],<theme>,<option>]
|
|
|
|
|
|
|
|
\function get.theme.option(option) [function[get.base.theme.option],{$:/theme},<option>first[]get[text]]
|
|
|
|
|
2024-10-26 04:52:23 +00:00
|
|
|
\function get.theme(metric) [function[get.base.theme],{$:/theme},<metric>addsuffix[/metrics/]addsuffix<metric>!is[missing]] :else[function[get.base.theme],{$:/theme},<metric>addsuffix[/metrics/]addsuffix<metric>is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix<metric>]
|
|
|
|
|
2024-10-26 14:03:02 +00:00
|
|
|
\function set.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},<metric>first[]is[shadow]] :else[function[get.base.theme.metric],{$:/theme},<metric>first[]!is[shadow]!is[missing]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix<metric>]
|
2024-10-26 04:52:23 +00:00
|
|
|
|
2024-10-26 09:23:14 +00:00
|
|
|
\function get.base.functions.theme.recursive(theme) [<theme>get[dependents]enlist-input[]] :map[function[get.base.functions.theme],<currentTiddler>]
|
2024-10-26 04:52:23 +00:00
|
|
|
|
|
|
|
\function get.base.functions.theme(theme) [<theme>addsufix[/functions]!is[missing]] :else[<theme>addsuffix[/functions]is[shadow]] :else[function[get.base.functions.theme.recursive],<theme>]
|
|
|
|
|