Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling of side panel #99

Open
partnerwerk opened this issue Sep 3, 2018 · 4 comments
Open

Styling of side panel #99

partnerwerk opened this issue Sep 3, 2018 · 4 comments

Comments

@partnerwerk
Copy link

I would like to be able to style the side panel (searches). I could not figure out how to do that. Is it possible? If so, how could I do it?

@renerocksai
Copy link
Owner

Currently there's no way you can do that from inside the app.

However, in your home directory, there's a folder named sublimeless_zk.rc. The subfolder themes contains the following 2 files:

  • search_results.json
  • saved_searches.json

So, if you create a theme my-side-panel, its .json file will appear in that themes folder. Just rename the above themes and make copies of your new theme, naming the copies like the 2 originals.

@partnerwerk
Copy link
Author

Thank you. It looks like the files

  • search_results.json
    
  • saved_searches.json
    

get overwritten any time I restart the app. So changing them does not help. Adding a folder with my new theme including those two files and changing the path in the app settings results in a startup crash.

@renerocksai
Copy link
Owner

Oh, I forgot! Sorry! True! I introduced new default themes some time ago to enable saved searches, etc. So I put in a forced upgrade of the themes folder on application start. I'll remove this behavior in the next version.

You would need to overwrite the original files from within themes of the app's folder. This depends on your OS.

On Windows it's simple, it's the unzipped folder that contains the .exe file. The themes folder is right there.

On a Mac right click on sublimeless_zk.app and hit "Show folder contents". From there go into Contents/MacOS/themes and overwrite the files there.

@partnerwerk
Copy link
Author

Thank you. That was helpful.

Is there also a way to seperately style the open notes panel? It seems I cannot control the background color or line-height. I found out that in the global app preferences there is a section to style the left panel. But so far I only get font face and font size addressed:

"ui.notepanel.font.face": "Menlo",
"ui.notepanel.font.size": 15,

This one does not work:

"ui.notepanel.background": "#ffffff",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants