diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-08-03 18:42:01 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-03 18:42:01 +0200 |
commit | 6f555f6ea6233875fd7e9a7e9041ab7c2df44664 (patch) | |
tree | 3c220b6229a6f413f73ae44fc69dd75112b5f3d4 /components/tweaks.tsx | |
parent | f2c340d2292a002cc9f51c00124590c41082a328 (diff) | |
parent | 65090cce57180c5492b30f62375879d616202411 (diff) |
Merge pull request #31 from blester125/main
Process org-roam-bibtex citations links differently depending on if they have an associated node.
Diffstat (limited to 'components/tweaks.tsx')
-rw-r--r-- | components/tweaks.tsx | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/components/tweaks.tsx b/components/tweaks.tsx index 39a8a35..e23476e 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -233,6 +233,15 @@ export const Tweaks = (props: TweakProps) => { isChecked={filter.parents} ></Switch> </Flex> + <Flex justifyContent="space-between"> + <Text>Citations without note files</Text> + <Switch + onChange={() => { + setFilter({ ...filter, fileless_cites: !filter.fileless_cites }) + }} + isChecked={filter.fileless_cites} + ></Switch> + </Flex> </VStack> <Accordion padding={0} allowToggle allowMultiple paddingLeft={3}> <AccordionItem> @@ -772,12 +781,55 @@ export const Tweaks = (props: TweakProps) => { /> <ColorMenu colorList={colorList} - label="Citation link highlight" + label="Reference link highlight" visuals={visuals} setVisuals={setVisuals} value={'citeLinkHighlightColor'} visValue={visuals.citeLinkHighlightColor} /> + <EnableSection + label="Dash ref links" + infoText="Add dashes to citation links, whose target has a note, made with org-roam-bibtex" + value={visuals.refDashes} + onChange={() => setVisuals({ ...visuals, refDashes: !visuals.refDashes })} + > + <SliderWithInfo + label="Dash length" + value={visuals.refDashLength / 10} + onChange={(value) => + setVisuals({ ...visuals, refDashLength: value * 10 }) + } + /> + <SliderWithInfo + label="Gap length" + value={visuals.refGapLength / 5} + onChange={(value) => setVisuals({ ...visuals, refGapLength: value * 5 })} + /> + </EnableSection> + <ColorMenu + colorList={colorList} + label="Reference node color" + visuals={visuals} + setVisuals={setVisuals} + value={'refNodeColor'} + visValue={visuals.refNodeColor} + /> + <ColorMenu + colorList={colorList} + label="Reference link color" + visuals={visuals} + setVisuals={setVisuals} + value={'refLinkColor'} + visValue={visuals.refLinkColor} + /> + <ColorMenu + colorList={colorList} + label="Reference link highlight" + visuals={visuals} + setVisuals={setVisuals} + value={'refLinkHighlightColor'} + visValue={visuals.refLinkHighlightColor} + /> <Box> <Flex alignItems="center" justifyContent="space-between"> <Text>Labels</Text> |