glance icon indicating copy to clipboard operation
glance copied to clipboard

defaults preferences?

Open resistor4u opened this issue 1 year ago • 3 comments

Thanks for your work on this project. I'm pulling in the most recent versions of goldmark and chroma and building glance from source and would like to experiment with changing the rendered appearance of markdown files and the output of the quicklook previews altogether---e.g., fontsize, font type, coloring, etc. Are there any defaults settings that handle this from the command line? Or if one wanted to tweak these settings, are these changes that have to be made in the go modules? Thanks!

resistor4u avatar Feb 06 '24 21:02 resistor4u

Hi resistor4u, these settings are not configurable from the command line. The changes need to be tweaked in the CSS files located here: https://github.com/chamburr/glance/tree/main/QLPlugin/Resources/shared.

chamburr avatar Feb 06 '24 22:02 chamburr

Great thanks! I've only messed with font size in shared-main.css so far, but I'm assuming all the values there can be changed without having to recompile? If this is right, it might make sense to notate that somewhere in the readme with a trivial example?

resistor4u avatar Feb 07 '24 06:02 resistor4u

Oh yeah they should work without recompiling. I don't think I want to include this in README since the changes don't persist across updates and reinstalls. Perhaps a feature we could work on is to read CSS files from some Library folder.

chamburr avatar Feb 07 '24 09:02 chamburr