docsify-darklight-theme icon indicating copy to clipboard operation
docsify-darklight-theme copied to clipboard

Can I move the trigger icon for changing the theme

Open hamishwillee opened this issue 2 years ago • 2 comments

Thank you for the theme. I want to add the icon to the navbar, so I tried moving it as shown below. However it gets recreated somehow in the original position, with the result that there are now two icons, and neither can trigger.

Is there any way to move the icon safely?

         hook.doneEach(function() {
			const darkLightLink = document.querySelector("#docsify-darklight-theme");
			const fred = document.getElementsByClassName("app-nav")[0].appendChild(darkLightLink); //
			darkLightLink.style.display = 'inline-block';
			darkLightLink.style.position = 'relative';
			darkLightLink.style.top = '15px';
          });

hamishwillee avatar Sep 12 '22 09:09 hamishwillee

Ignore that. I'll just rewrite the plugin to write to the app bar. Would be nice to have this as an option :-). Thanks again for your wonderful plugin.

hamishwillee avatar Sep 13 '22 09:09 hamishwillee

I agree, the icon is in a strange place, it would be better to allow the parent selector to be set in config.

TotallyInformation avatar May 04 '24 14:05 TotallyInformation